]>
Commit | Line | Data |
---|---|---|
f4648ed1 SP |
1 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
2 | ||
3 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
4 | Early return without analyzing the data dependences if no | |
5 | transform has been done. Call restore_scattering if the transform | |
6 | is not legal. | |
7 | (graphite-interchange.c): Same. | |
8 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
9 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
10 | (apply_poly_transforms): Do not gcc_assert that | |
11 | the transform is legal. | |
12 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
13 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
14 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
15 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
16 | * graphite-poly.h (struct poly_scattering): New. | |
17 | (struct poly_bb): Add original, transformed, and saved fields. | |
18 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
19 | and nb_scattering_transform fields. | |
20 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
21 | (poly_scattering_new): New. | |
22 | (poly_scattering_free): New. | |
23 | (poly_scattering_copy): New. | |
24 | (store_scattering_pbb): New. | |
25 | (store_scattering): New. | |
26 | (restore_scattering_pbb): New. | |
27 | (restore_scattering): New. | |
28 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
29 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
30 | ||
e31a5bd4 SP |
31 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
32 | ||
33 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
34 | (print_scop): Same. | |
35 | ||
8e88f9fd SP |
36 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
37 | ||
38 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
39 | * graphite.c: Include predict.h. | |
40 | (graphite_finalize): Call tree_estimate_probability. | |
41 | * predict.c (predict_loops): Do not call scev_initialize and | |
42 | scev_finalize. | |
43 | (tree_estimate_probability_bb): New. | |
44 | (tree_estimate_probability): Do not initialize loops: move that | |
45 | code to the driver. Call tree_estimate_probability_bb. | |
46 | (tree_estimate_probability_driver): New. | |
47 | (pass_profile): Use tree_estimate_probability_driver. | |
48 | * predict.h (tree_estimate_probability): Declared. | |
49 | ||
87d4d0ee SP |
50 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
51 | ||
52 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
53 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
54 | TV_GRAPHITE_DATA_DEPS. | |
55 | (dependency_between_pbbs_p): Same. | |
56 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
57 | ||
58 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
59 | ||
60 | * Merge from mainline (r149952:150372). | |
61 | ||
2abae5f1 SP |
62 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
63 | ||
64 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
65 | * graphite-blocking.c: Same. | |
66 | * graphite-clast-to-gimple.c: Same. | |
67 | * graphite-dependences.c: Same. | |
68 | * graphite-poly.c: Same. | |
69 | * graphite-poly.h: Same. | |
70 | * graphite-ppl.c: Same. | |
71 | * graphite-scop-detection.c: Same. | |
72 | * graphite-sese-to-poly.c: Same. | |
73 | * graphite.c: Same. | |
74 | ||
75 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
76 | ||
77 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
78 | (remove_simple_copy_phi): New. | |
79 | (remove_invariant_phi): New. | |
80 | (simple_copy_phi_p): New. | |
81 | (reduction_phi_p): New. | |
82 | (gsi_for_ssa_name_def): New. | |
83 | (insert_out_of_ssa_copy): New. | |
84 | (insert_out_of_ssa_copy_on_edge): New. | |
85 | (create_zero_dim_array): New. | |
86 | (scalar_close_phi_node_p): New. | |
87 | (rewrite_close_phi_out_of_ssa): New. | |
88 | (rewrite_phi_out_of_ssa): New. | |
89 | (rewrite_reductions_out_of_ssa): New. | |
90 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
91 | ||
92 | * testsuite/gcc.dg/graphite/id-11.c: New. | |
93 | * testsuite/gcc.dg/graphite/id-15.c: New. | |
94 | * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
95 | * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
96 | * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
97 | * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
98 | * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
99 | * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
100 | * testsuite/gfortran.dg/graphite/id-13.f: New. | |
101 | * testsuite/gfortran.dg/graphite/id-5.f: New. | |
102 | ||
103 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
104 | ||
105 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
106 | check that nb_reductions_in_loop is zero. | |
107 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
108 | reduction phi nodes. | |
109 | (nb_reductions_in_loop): Removed. | |
110 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
111 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
112 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
113 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
114 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
115 | ||
116 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
117 | ||
118 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
119 | statements that have an empty iteration domain. | |
120 | * testsuite/gfortran.dg/graphite/id-16.f: New. | |
121 | ||
122 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
123 | ||
124 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
125 | chrec_dont_know when the result is not above instantiate_below. | |
126 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
127 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
128 | the tree has a known scalar evolution. | |
129 | * testsuite/gfortran.dg/graphite/id-14.f: New. | |
130 | * testsuite/gfortran.dg/graphite/id-15.f: New. | |
131 | ||
132 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
133 | ||
134 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
135 | insert_gsi. | |
136 | (rename_variables): Keep inserting renames after the ones already | |
137 | inserted. | |
138 | ||
139 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
140 | ||
141 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
142 | (graphite_sort_dominated_info): New. | |
143 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
144 | (build_scop_scattering): Fix comment. | |
145 | ||
146 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
147 | ||
148 | * graphite.c (graphite_finalize): Call print_loops instead of | |
149 | dump_function_to_file. | |
150 | * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting. | |
151 | * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
152 | loops generated in the graphite output file. | |
153 | * testsuite/gcc.dg/graphite/pr35356-2.c: New. | |
154 | * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
155 | * testsuite/gfortran.dg/graphite/id-12.f: New. | |
156 | ||
157 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
158 | ||
159 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: | |
160 | Remove 2 XFAIL. | |
161 | ||
162 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
163 | Tobias Grosser <grosser@fim.uni-passau.de> | |
164 | ||
165 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
166 | alias set number build alias in ACCESSES polyhedron. | |
167 | (build_alias_set_for_drs): New. | |
168 | (build_pbb_drs): Added build_alias_set_for_drs. | |
169 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
170 | (graphite_carried_dependence_level_k): Check alias information | |
171 | before building polyhedron. | |
172 | ||
173 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
174 | ||
175 | * Makefile.in (lambda-code.o): Fix formatting. | |
176 | ||
177 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
178 | ||
179 | * Merge from mainline (r149350-149952) | |
180 | ||
181 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
182 | ||
183 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
184 | before interchange to prepare for loop blocking. | |
185 | ||
186 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
187 | ||
188 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
189 | transformation. | |
190 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
191 | done in apply_poly_transforms. | |
192 | ||
193 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
194 | ||
195 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
196 | Replace RES parameter with *RES. | |
197 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
198 | instead of value of RES. | |
199 | ||
200 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
201 | ||
202 | * graphite.c (graphite_finalize): Fix comment. | |
203 | (graphite_transform_loops): Reset scev info after code generation | |
204 | of each scop. | |
205 | ||
206 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
207 | ||
208 | * graphite.c (graphite_finalize): Call scev_reset. | |
209 | ||
210 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
211 | ||
212 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
213 | GBB_CLOOG_IV_TYPES hash table twice. | |
214 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
215 | (add_condition_to_domain): Clear GMP values. | |
216 | ||
217 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
218 | ||
219 | * graphite-dependences.c: Fix formatting. | |
220 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
221 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
222 | * graphite-sese-to-poly.c: Fix formatting. | |
223 | * graphite.c (graphite_transform_loops): Create the hash table | |
224 | after the early return. | |
225 | ||
226 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
227 | ||
228 | * testsuite/gcc.dg/graphite/id-14.c: New. | |
229 | * testsuite/gcc.dg/graphite/pr40157.c: New. | |
230 | * testsuite/gfortran.dg/graphite/id-11.f: New. | |
231 | ||
232 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
233 | ||
234 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
235 | (build_poly_scop): Return false when there are no pbbs within | |
236 | loops to avoid to pass to cloog scops with no loops. | |
237 | ||
238 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
239 | ||
240 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
241 | useless test "i % 2". | |
242 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
243 | (build_poly_dr): Same. | |
244 | * graphite.c (graphite_transform_loops): Restructure. | |
245 | ||
246 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
247 | ||
248 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
249 | reduction_list parameter. | |
250 | (rewrite_all_phi_nodes_with_iv): Same. | |
251 | (canonicalize_loop_ivs): Same. | |
252 | * tree-parloops.c (struct brli): Removed. | |
253 | (build_reduction_list_info): Removed. | |
254 | (build_new_reduction): New. | |
255 | (analyze_reduction_list): Removed. | |
256 | (gather_scalar_reductions): Find reductions instead of phi | |
257 | nodes that can't be canonicalized. | |
258 | (try_create_reduction_list): Remove reduction_list parameter. | |
259 | (gen_parallel_loop): Same. | |
260 | (parallelize_loops): Remove analyze_reductions variable, | |
261 | initialization and free. | |
262 | Change reduction_list htab initialization to reduction_info | |
263 | elements instead of ssa names. | |
264 | Call try_create_reduction_list and gen_parallel_loop without | |
265 | analyzed_reduction argument. | |
266 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
267 | canonicalize_loop_ivs with one less argument. | |
268 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
269 | ||
270 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
271 | ||
272 | * graphite-dependences.c (new_poly_dr_pair): New. | |
273 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
274 | (new_poly_dr_pair): New. | |
275 | (eq_poly_dr_pair_p): New. | |
276 | (hash_poly_dr_pair_p): New. | |
277 | * graphite-dependences.h (struct poly_dr_pair): New. | |
278 | (eq_poly_dr_pair_p): Declared. | |
279 | (hash_poly_dr_pair_p): Declared. | |
280 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
281 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
282 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
283 | * Makefile.in (graphite-poly.o): Add dependence on | |
284 | graphite-dependences.h. | |
285 | ||
286 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
287 | ||
288 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
289 | polynomials of degree > 1 pass to Graphite. | |
290 | * tree-chrec.c (scev_is_linear_expression): Call | |
291 | evolution_function_is_affine_multivariate_p. | |
292 | * testsuite/gfortran.dg/graphite/id-10.f90: New. | |
293 | ||
294 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
295 | ||
296 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
297 | Instantiate scevs varying in outer loops. | |
298 | * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase. | |
299 | ||
300 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
301 | ||
302 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
303 | redundant constraint. | |
304 | ||
305 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
306 | ||
307 | * testsuite/gcc.dg/graphite/graphite.exp: Fix comments. | |
308 | * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions | |
309 | based on the file names as in the C testsuite. | |
310 | * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns. | |
311 | * testsuite/gfortran.dg/graphite/block-2.f: Same. | |
312 | * testsuite/gfortran.dg/graphite/block-3.f90: Same. | |
313 | * testsuite/gfortran.dg/graphite/block-4.f90: Same. | |
314 | * testsuite/gfortran.dg/graphite/id-1.f90: Same. | |
315 | * testsuite/gfortran.dg/graphite/id-2.f90: Same. | |
316 | * testsuite/gfortran.dg/graphite/id-3.f90: Same. | |
317 | * testsuite/gfortran.dg/graphite/id-4.f90: Same. | |
318 | * testsuite/gfortran.dg/graphite/id-6.f: Same. | |
319 | * testsuite/gfortran.dg/graphite/id-9.f: Same. | |
320 | * testsuite/gfortran.dg/graphite/interchange-1.f: Same. | |
321 | * testsuite/gfortran.dg/graphite/interchange-2.f: Same. | |
322 | * testsuite/gfortran.dg/graphite/scop-1.f: Same. | |
323 | ||
324 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
325 | ||
326 | * sese.c (expand_scalar_variables_call): New. | |
327 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
328 | ||
329 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
330 | ||
331 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: | |
332 | Expect to see the pattern twice. | |
333 | * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL. | |
334 | * testsuite/gcc.dg/graphite/interchange-5.c: Same. | |
335 | * testsuite/gcc.dg/graphite/interchange-6.c: Same. | |
336 | ||
337 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
338 | ||
339 | * testsuite/gcc.dg/graphite/id-10.c: New. | |
340 | * testsuite/gcc.dg/graphite/id-12.c: New. | |
341 | * testsuite/gfortran.dg/graphite/id-7.f: New. | |
342 | * testsuite/gfortran.dg/graphite/id-8.f: New. | |
343 | ||
344 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
345 | ||
346 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
347 | zero. | |
348 | ||
349 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
350 | ||
351 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
352 | ||
353 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
354 | ||
355 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
356 | ||
357 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
358 | ||
359 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
360 | building PDR subscripts. | |
361 | ||
362 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
363 | ||
364 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
365 | computation of array sizes. | |
366 | ||
367 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
368 | ||
369 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
370 | ||
371 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
372 | ||
373 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
374 | build_pairwise_constraint, dr_equality_constraints, | |
375 | build_pairwise_scheduling_equality, | |
376 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
377 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
378 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
379 | Move from NNC_Polyhedron to C_Polyhedron. | |
380 | * graphite-interchange.c (compute_array_size_poly, | |
381 | gather_access_strides): Dito. | |
382 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
383 | free_scop, pbb_number_of_iterations): Dito. | |
384 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
385 | pbb_dim_iter_domain, struct scop): Dito. | |
386 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
387 | new_Cloog_Domain_from_ppl_Polyhedron, | |
388 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
389 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
390 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
391 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
392 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
393 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
394 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
395 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
396 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
397 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
398 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
399 | build_scop_iteration_domain, build_poly_dr): Dito | |
400 | ||
401 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
402 | ||
403 | * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute | |
404 | run-id-*.c files. | |
405 | * testsuite/gcc.dg/graphite/run-id-1.c: New. | |
406 | ||
407 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
408 | ||
409 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
410 | positivity constraint on the symbolic number of iterations. | |
411 | ||
412 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
413 | ||
414 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
415 | ||
416 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
417 | Tobias Grosser <grosser@fim.uni-passau.de> | |
418 | ||
419 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
420 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
421 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
422 | (free_scop): Free SCOP_CONTEXT. | |
423 | (print_scop_context): New. | |
424 | (print_scop): Call print_scop_context. | |
425 | (debug_scop_context): New. | |
426 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
427 | (struct scop): Added field context. | |
428 | (SCOP_CONTEXT): New. | |
429 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
430 | (build_scop_context): New. | |
431 | (build_poly_scop): Call build_scop_context. | |
432 | ||
433 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
434 | ||
435 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
436 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
437 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
438 | * graphite-ppl.h: Include double-int.h and tree.h. | |
439 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
440 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
441 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
442 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
443 | ||
444 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
445 | ||
446 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
447 | POINTER_PLUS_EXPR for pointer types. | |
448 | (clast_to_gcc_expression): Same. | |
449 | ||
450 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
451 | ||
452 | * graphite-poly.c (print_scattering_function): Early return when | |
453 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
454 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
455 | ||
456 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
457 | ||
458 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
459 | to fix bootstrap. | |
460 | ||
461 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
462 | ||
463 | * tree-parloops.c (analyze_reduction_list): Change return | |
464 | value to void. | |
465 | (try_create_reduction_list): Move the call to | |
466 | analyze_reduction_list to the beginining. | |
467 | Call reduction_phi with analyzed_reductions as argument | |
468 | instead of reduction_list. | |
469 | ||
470 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
471 | ||
472 | * Merge from mainline (r148296:149346) | |
473 | ||
474 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
475 | ||
476 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
477 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
478 | check that the initial value does not contain multiplications of | |
479 | parameters. | |
480 | (stmt_has_simple_data_refs_p): New. | |
481 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
482 | (is_simple_operand): Fix formatting. | |
483 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
484 | ||
485 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
486 | ||
487 | * testsuite/gcc.dg/graphite/id-13.c: New. | |
488 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call | |
489 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
490 | (scan_tree_for_params_right_scev): Add extra assert. | |
491 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
492 | (idx_record_params): Use scalar_evolution_in_region. | |
493 | (find_params_in_bb): Same. | |
494 | (find_scop_parameters): Same. | |
495 | (build_loop_iteration_domains): Same. | |
496 | (create_linear_expr_from_tree): Same. | |
497 | * sese.c (scalar_evolution_in_region): New. | |
498 | * sese.h (scalar_evolution_in_region): Declared. | |
499 | (defined_in_sese_p): New. | |
500 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
501 | static anymore. | |
502 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
503 | Declared. | |
504 | ||
505 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
506 | ||
507 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
508 | TREE_DATA_REF_H also implies SCEV_H. | |
509 | ||
510 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
511 | ||
512 | * graphite-poly.c (print_scop_params): New. | |
513 | (print_scop): Call print_scop_params. | |
514 | (debug_scop_params): New. | |
515 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
516 | ||
517 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
518 | ||
519 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. | |
520 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
521 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
522 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
523 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
524 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
525 | ||
526 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
527 | ||
528 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
529 | for dependency checking part. | |
530 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add | |
531 | tests for dependency checking. | |
532 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. | |
533 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
534 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
535 | flag -fdump-tree-graphite-all for autopar testsuites. | |
536 | ||
537 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
538 | ||
539 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
540 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
541 | canonicalize_loop_ivs): Moved... | |
542 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
543 | ||
544 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
545 | ||
546 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
547 | argument analyzed_reductions. Call analyze_reduction_list. | |
548 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
549 | (parallelize_loops): Init and finalize analyzed_reductions. | |
550 | ||
551 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
552 | ||
553 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: | |
554 | Added flag -fno-loop-strip-mine for autopar testcase. | |
555 | ||
556 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
557 | ||
558 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
559 | transformed scattering dimension instead of unmatch orignal when | |
560 | calling dependence_polyhedron. | |
561 | ||
562 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
563 | ||
564 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
565 | ||
566 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
567 | ||
568 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
569 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
570 | ||
571 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
572 | ||
573 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
574 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
575 | * graphite-poly.c (pbb_number_of_iterations): New. | |
576 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
577 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
578 | ||
579 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
580 | ||
581 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
582 | last commit on type of lower and upper bound of loops. | |
583 | ||
584 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
585 | ||
586 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
587 | graphite-dependences.h. | |
588 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
589 | (mark_bb_with_pbb): New. | |
590 | (get_stmtfor_depth): New. | |
591 | (find_pbb_via_hash): New. | |
592 | (dependency_in_loop_p): New. | |
593 | (mark_loops_parallel): New. | |
594 | (free_aux_in_new_loops): New. | |
595 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
596 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
597 | innermost loop parallel without checking. | |
598 | (gloog): Add parameter BB_PBB_MAPPING. | |
599 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
600 | (gloog): Change declaration. | |
601 | (mark_loop_parallel): Make extern. | |
602 | (free_aux_in_new_loops): Declare. | |
603 | (bb_pbb_map_hash): New. | |
604 | (eq_bb_pbb_map): New. | |
605 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
606 | auto parallelization when flag_graphite_force_parallel is set. | |
607 | (graphite_finalize): Added free_aux_in_new_loops. | |
608 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
609 | the innermost loop that marked parallel. Use | |
610 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
611 | (loop_parallel_p): Move inner most checking out of function. | |
612 | ||
613 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
614 | ||
615 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
616 | type of lower and upper bound of loops signed long int. | |
617 | ||
618 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
619 | ||
620 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
621 | expression outside the loop. | |
622 | ||
623 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
624 | ||
625 | * gcc.dg/graphite/interchange-8.c: New. | |
626 | ||
627 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
628 | ||
629 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
630 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
631 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
632 | ||
633 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
634 | ||
635 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
636 | recursion should return 1. | |
637 | ||
638 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
639 | ||
640 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
641 | subscript multiplier to be -1. | |
642 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
643 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
644 | data_container. Initializes PDR_DATA_CONTAINER. | |
645 | (print_pdr_access_layout): New. | |
646 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
647 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
648 | data_container. | |
649 | (PDR_DATA_CONTAINER): New. | |
650 | (new_poly_dr): Update declaration. | |
651 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
652 | (build_poly_dr): Call pdr_add_data_dimensions. | |
653 | ||
654 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
655 | ||
656 | * graphite-poly.h (struct poly_dr): Fix comment. | |
657 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
658 | (pdr_add_memory_accesses): New. | |
659 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
660 | ||
661 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
662 | ||
663 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
664 | (print_pbb): Add call to print_pdrs. | |
665 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
666 | ||
667 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
668 | Li Feng <nemokingdom@gmail.com> | |
669 | ||
670 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
671 | (dependency_between_pbbs_p): New. | |
672 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
673 | intersection assign. | |
674 | (build_lexicographically_gt_constraint): Correct lexicographically | |
675 | judging. | |
676 | * graphite-dependences.h: New. | |
677 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
678 | ||
679 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
680 | ||
681 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
682 | (gloog): Print to dump_file the generated clast. | |
683 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
684 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
685 | ||
686 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
687 | ||
688 | * graphite-poly.c (extend_scattering): Increment | |
689 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
690 | ||
691 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
692 | ||
693 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
694 | recursion condition. Continue iterating even after the first equality. | |
695 | (compute_array_size): Same. | |
696 | ||
697 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
698 | ||
699 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update | |
700 | -fdump-tree-final_cleanup to -fdump-tree-optimized. | |
701 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. | |
702 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
703 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
704 | ||
705 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
706 | ||
707 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
708 | only when the use verifies is_gimple_reg. | |
709 | ||
710 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
711 | ||
712 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
713 | Allocate scaldims after call to unify_scattering_dimensions. | |
714 | ||
715 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
716 | ||
717 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
718 | ||
719 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
720 | Albert Cohen <albert.cohen@inria.fr> | |
721 | ||
722 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
723 | variables for the strip mining. | |
724 | ||
725 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
726 | Pranav Garg <pranav.garg2107@gmail.com> | |
727 | ||
728 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
729 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
730 | (graphite-blocking.o): New rule. | |
731 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
732 | * graphite-blocking.c: New. | |
733 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
734 | flag_loop_strip_mine. | |
735 | (psct_scattering_dim_for_loop_depth): New. | |
736 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
737 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
738 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
739 | flag_loop_strip_mine. | |
740 | ||
741 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
742 | ||
743 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
744 | a GMP value and a PPL coefficient at each iteration of a loop. | |
745 | ||
746 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
747 | ||
748 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
749 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
750 | pbb_nb_scattering_transform. | |
751 | (graphite_legal_transform_dr): Same. | |
752 | * graphite-poly.c (extend_scattering): Same. | |
753 | (unify_scattering_dimensions): Same. | |
754 | (print_scattering_function): Same. | |
755 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
756 | PBB_NB_LOCAL_VARIABLES. | |
757 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
758 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
759 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
760 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
761 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
762 | (pbb_nb_scattering_transform): New. | |
763 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
764 | (psco_scattering_dim): Add assert on parameters. | |
765 | (psct_scattering_dim): Same. | |
766 | (psct_scattering_dim_for_loop_depth): Declared. | |
767 | (psct_local_var_dim): New. | |
768 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
769 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
770 | correct layout, call pbb_nb_local_vars. | |
771 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
772 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
773 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
774 | ||
775 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
776 | ||
777 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
778 | (set_coef): Renamed ppl_set_coef. | |
779 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
780 | ||
781 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
782 | ||
783 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
784 | test a boolean against 1. | |
785 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
786 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
787 | (pbb_do_interchange): Returns true when a transform has been performed. | |
788 | (scop_do_interchange): Same. | |
789 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
790 | scop_do_interchange. | |
791 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
792 | ||
793 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
794 | ||
795 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
796 | after last use. | |
797 | * sese.c (sese_reset_aux_in_loops): New. | |
798 | * sese.h (sese_reset_aux_in_loops): New. | |
799 | ||
800 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
801 | ||
802 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
803 | multiplier and multiply the constant by the multiplier. | |
804 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
805 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
806 | ||
807 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
808 | ||
809 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
810 | compiler's data reference. Initialize PDR_CDR. | |
811 | (print_pdr): Call dump_data_reference. | |
812 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
813 | Add compiler_dr field. | |
814 | (PDR_BB): Renamed PDR_PBB. | |
815 | (PDR_CDR): New. | |
816 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
817 | GCC's data reference representation. | |
818 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
819 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
820 | ||
821 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
822 | ||
823 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
824 | * graphite-poly.h (pbb_nb_local_vars): New. | |
825 | ||
826 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
827 | ||
828 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
829 | ||
830 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
831 | ||
832 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
833 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
834 | (PDR_BASE): Removed. | |
835 | ||
836 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
837 | ||
838 | * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of | |
839 | ltrans-{1..6,8}.c. | |
840 | ||
841 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
842 | ||
843 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
844 | subscript identification column. | |
845 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
846 | interchanged". Rely on that chain of characters in the testcases. | |
847 | * gcc.dg/graphite/interchange-0.c: New. | |
848 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
849 | interchange-*.c files and compile them with -floop-interchange. | |
850 | ||
851 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
852 | ||
853 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
854 | pbb_interchange_profitable_p. | |
855 | ||
856 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
857 | Harsha Jagasia <harsha.jagasia@amd.com> | |
858 | Pranav Garg <pranav.garg2107@gmail.com> | |
859 | ||
860 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
861 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
862 | scop_do_interchange): New. | |
863 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
864 | for flag_loop_interchange. | |
865 | * graphite-poly.h (scop_do_interchange): Declared. | |
866 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
867 | flag_loop_interchange is used. | |
868 | ||
869 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
870 | ||
871 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
872 | pbb_nb_scattering_dims. | |
873 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
874 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
875 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
876 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
877 | ||
878 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
879 | ||
880 | * graphite.c: Cleanup foo. | |
881 | ||
882 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
883 | ||
884 | * Merge from mainline (r143684:148293). | |
885 | * Disabled libpcp until it gets fixed. | |
886 | ||
887 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
888 | Harsha Jagasia <harsha.jagasia@amd.com> | |
889 | ||
890 | * graphite-interchange.c: New. | |
891 | * Makefile.in (graphite-interchange.o): New. | |
892 | * graphite-poly.h (interchange_profitable_p): Declared. | |
893 | * graphite-ppl.h (value_max): New. | |
894 | ||
895 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
896 | ||
897 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
898 | * graphite-poly.h: Fix some comments. | |
899 | (pdr_dim): New. | |
900 | (pdr_scop): New. | |
901 | ||
902 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
903 | ||
904 | * graphite-poly.h | |
905 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
906 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
907 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
908 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
909 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
910 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
911 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
912 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
913 | * graphite-clast-to-gimple.c: Same. | |
914 | * graphite-dependences.c: Same. | |
915 | * graphite-poly.c: Same. | |
916 | * graphite-sese-to-poly.c: Same. | |
917 | ||
918 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
919 | ||
920 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
921 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
922 | (copy_renames): Rename new_name to expr. | |
923 | * sese.c (debug_rename_elt): Same. | |
924 | (get_rename): Same. | |
925 | (set_rename): Same. | |
926 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
927 | the information from the rename map. | |
928 | (rename_variables_in_stmt): Same. | |
929 | (add_loop_exit_phis): Rename new_name to expr. | |
930 | (insert_loop_close_phis): Same. | |
931 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
932 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
933 | (new_rename_map_elt): Same. | |
934 | ||
935 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
936 | ||
937 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
938 | * sese.c (set_rename): Make it extern. | |
939 | * sese.h (set_rename): Declared. | |
940 | ||
941 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
942 | ||
943 | * graphite-poly.c (extend_scattering): Free values. | |
944 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
945 | Free iterators. | |
946 | (ppl_print_powerset_matrix): Same. | |
947 | * graphite-scop-detection.c (free_scops_1): New. | |
948 | (limit_scops): Call free_scops_1. | |
949 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
950 | (build_poly_dr): Free PPL coefficients. | |
951 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
952 | ||
953 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
954 | ||
955 | * graphite-dependences.c: New. | |
956 | * graphite-data-ref.c: Removed. | |
957 | * graphite-data-ref.h: Removed. | |
958 | * Makefile.in (graphite-data-ref.o): Removed. | |
959 | (graphite-dependences.o): Added. | |
960 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
961 | * graphite-poly.c: Same. | |
962 | Move the data dependence testing to graphite-dependences.c. | |
963 | ||
964 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
965 | ||
966 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
967 | from graphite_cannot_represent_loop. Code refactored. | |
968 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
969 | ||
970 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
971 | ||
972 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: | |
973 | Cover all the testcases (not only the filtered ones). | |
974 | ||
975 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
976 | ||
977 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
978 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
979 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
980 | done in (stmt_simple_for_scop_p). | |
981 | ||
982 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
983 | ||
984 | * graphite.c (print_global_statistics): New. | |
985 | (print_graphite_scop_statistic): New. | |
986 | (print_graphite_statistics): New. | |
987 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
988 | * graphite-scop-detection (build_scops): Print statistics. | |
989 | (print_graphite_scop_statistics): New. | |
990 | (print_graphite_statistics): New. | |
991 | ||
992 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
993 | ||
994 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
995 | (debug_clast_name_index): Removed. | |
996 | (debug_clast_name_indexes_1): Removed. | |
997 | (debug_clast_name_indexes): Removed. | |
998 | (clast_name_index_elt_info): Removed. | |
999 | (eq_clast_name_indexes): Removed. | |
1000 | (clast_name_to_index): Removed. | |
1001 | (new_clast_name_index): Removed. | |
1002 | (save_clast_name_index): Removed. | |
1003 | (save_var_name): Moved... | |
1004 | (init_sese_params_index): Removed. | |
1005 | (clast_name_to_gcc): Remove use of name_tree. | |
1006 | (initialize_cloog_names): Same. | |
1007 | (gloog): Do not call init_sese_params_index. | |
1008 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
1009 | (parameter_index_in_region): New. | |
1010 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
1011 | (parameter_index_in_region): Removed. | |
1012 | (is_parameter): Remove use of name_tree. | |
1013 | * sese.h (struct name_tree): Removed. | |
1014 | (struct sese): Remove use of name_tree. New field params_names. | |
1015 | (SESE_PARAMS_NAMES): New. | |
1016 | (SESE_PARAMS): Remove duplicate. | |
1017 | (parameter_index_in_region): Removed. | |
1018 | (sese_nb_params): Remove use of name_tree. | |
1019 | (struct clast_name_index): New. | |
1020 | (new_clast_name_index): New. | |
1021 | (clast_name_to_index): New. | |
1022 | (save_clast_name_index): New. | |
1023 | (debug_clast_name_index): New. | |
1024 | (debug_clast_name_indexes_1): New. | |
1025 | (debug_clast_name_indexes): New. | |
1026 | (clast_name_index_elt_info): New. | |
1027 | (eq_clast_name_indexes): New. | |
1028 | ||
1029 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1030 | ||
1031 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
1032 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
1033 | (graphite_loop_normal_form): Do not pass region. Do not | |
1034 | initialize SESE_OLDIVS. | |
1035 | (build_graphite_loop_normal_form): Update call to | |
1036 | graphite_loop_normal_form. | |
1037 | * sese.c (debug_oldivs): Removed. | |
1038 | (new_sese): Do not initialize SESE_OLDIVS. | |
1039 | (free_sese): Do not free SESE_OLDIVS. | |
1040 | (oldiv_for_loop): Removed. | |
1041 | * sese.h (struct sese): Remove old_ivs. | |
1042 | (SESE_OLDIVS): Removed. | |
1043 | (oldiv_for_loop): Removed. | |
1044 | ||
1045 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1046 | ||
1047 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
1048 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
1049 | replaced by a call to newivs_to_depth_to_newiv. | |
1050 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
1051 | (clast_to_gcc_expression_red): Same. | |
1052 | (gcc_type_for_clast_expr): Same. | |
1053 | (gcc_type_for_clast_eq): Same. | |
1054 | (graphite_translate_clast_equation): Same. | |
1055 | (graphite_create_guard_cond_expr): Same. | |
1056 | (graphite_create_new_guard): Same. | |
1057 | (graphite_create_new_loop): Same. | |
1058 | (build_iv_mapping): Same. | |
1059 | (translate_clast): Same. | |
1060 | (gloog): Same. | |
1061 | (loop_iv_stack_patch_for_consts): Removed. * | |
1062 | sese.c (iv_stack_entry_is_constant): Removed. | |
1063 | (iv_stack_entry_is_iv): Removed. | |
1064 | (loop_iv_stack_push_iv): Removed. | |
1065 | (loop_iv_stack_insert_constant): Removed. | |
1066 | (loop_iv_stack_pop): Removed. | |
1067 | (loop_iv_stack_get_iv): Removed. | |
1068 | (loop_iv_stack_get_iv_from_name): Removed. | |
1069 | (debug_loop_iv_stack): Removed. | |
1070 | (free_loop_iv_stack): Removed. | |
1071 | (loop_iv_stack_remove_constants): Removed. * | |
1072 | sese.h (iv_stack_entry_kind): Removed. | |
1073 | (iv_stack_entry_data_union): Removed. | |
1074 | (iv_stack_entry_struct): Removed. | |
1075 | (iv_stack_entry_p): Removed. | |
1076 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
1077 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
1078 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
1079 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
1080 | (gbb_loop_at_index): Fix indenting. | |
1081 | (gbb_loop_index): Removed. | |
1082 | ||
1083 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1084 | ||
1085 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
1086 | Call clast_name_to_index. | |
1087 | ||
1088 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1089 | ||
1090 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
1091 | do not pass params. Get params from SESE_PARAMS. | |
1092 | (clast_to_gcc_expression): Same. | |
1093 | (clast_to_gcc_expression_red): Same. | |
1094 | (gcc_type_for_clast_eq): Same. | |
1095 | (graphite_translate_clast_equation): Same. | |
1096 | (graphite_create_new_loop): Same. | |
1097 | * sese.c (rename_variables_in_stmt): Fix comment. | |
1098 | ||
1099 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1100 | ||
1101 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
1102 | newivs_index. | |
1103 | Call save_clast_name_index. | |
1104 | (translate_clast): Pass newivs_index. | |
1105 | (gloog): Create and free newivs_index. | |
1106 | ||
1107 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1108 | ||
1109 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
1110 | (clast_name_index_p): New type. | |
1111 | (debug_clast_name_index): New. | |
1112 | (debug_clast_name_indexes_1): New. | |
1113 | (debug_clast_name_indexes): New. | |
1114 | (clast_name_index_elt_info): New. | |
1115 | (eq_clast_name_indexes): New. | |
1116 | (clast_name_to_index): New. | |
1117 | (new_clast_name_index): New. | |
1118 | (save_clast_name_index): New. | |
1119 | (init_sese_params_index): New. | |
1120 | (gloog): Call init_sese_params_index. | |
1121 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
1122 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
1123 | (free_sese): Free SESE_PARAMS_INDEX. | |
1124 | * sese.h (struct sese): Add params_index. | |
1125 | (SESE_PARAMS_INDEX): New. | |
1126 | ||
1127 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1128 | ||
1129 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
1130 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
1131 | newly created IV to newivs. | |
1132 | (translate_clast): Pass the newivs vector. | |
1133 | (gloog): Create and destroy the newivs vector. | |
1134 | ||
1135 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
1136 | ||
1137 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
1138 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
1139 | IV that has been created. | |
1140 | ||
1141 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
1142 | ||
1143 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
1144 | scev with parameters in the base part. They where forbidden | |
1145 | exidently. | |
1146 | ||
1147 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
1148 | ||
1149 | * testsuite/gcc.dg/graphite/graphite.exp: Set different default | |
1150 | compile options by file names. | |
1151 | * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line. | |
1152 | * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto. | |
1153 | * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
1154 | * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto. | |
1155 | ||
1156 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
1157 | ||
1158 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. | |
1159 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
1160 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
1161 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
1162 | ||
1163 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
1164 | ||
1165 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
1166 | by final cleanup. | |
1167 | ||
1168 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
1169 | ||
1170 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
1171 | allow integer constant strides. | |
1172 | (graphite_can_represent_expr): Depend on outermost_loop. | |
1173 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
1174 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
1175 | build_scops_1): Same. | |
1176 | (scopdet_basic_block_info): Same and insert layered SCoP | |
1177 | detection. | |
1178 | (try_generate_gimple_bb): Cleanup. | |
1179 | (build_scops): Enable data references. | |
1180 | ||
1181 | * testsuite/gcc.dg/graphite/id-5.c: New. | |
1182 | * testsuite/gcc.dg/graphite/id-9.c: New. | |
1183 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. | |
1184 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
1185 | ||
1186 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
1187 | ||
1188 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
1189 | that we have not yet built for this SCoP. | |
1190 | ||
1191 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
1192 | ||
1193 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
1194 | for complex numbers. | |
1195 | ||
1196 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
1197 | ||
1198 | * graphite-ppl.c: Fix build if cloog is not available. | |
1199 | ||
1200 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
1201 | ||
1202 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
1203 | NITER and REDUCTION_LIST. | |
1204 | (try_get_loop_niter): New. | |
1205 | (try_create_reduction_list): New. | |
1206 | (parallelize_loops): Bypass the failed checkings in autopar | |
1207 | when can_be_parallel in loop structure is set to true. | |
1208 | ||
1209 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
1210 | ||
1211 | * testsuite/gcc.dg/graphite/id-6.c: Update testcase. | |
1212 | * testsuite/gcc.dg/graphite/scop-3.c: Dito. | |
1213 | ||
1214 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
1215 | ||
1216 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
1217 | Enable EQ_EXPR and NE_EXPR again. | |
1218 | ||
1219 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
1220 | ||
1221 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
1222 | Add check if scev is affine multivariate. | |
1223 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
1224 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
1225 | harmful_stmt_in_bb. | |
1226 | * testsuite/gcc.dg/graphite/id-7.c: New. | |
1227 | ||
1228 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
1229 | ||
1230 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
1231 | Check all bbs in region, not only the bbs that are represented in | |
1232 | GRAPHITE. | |
1233 | (build_poly_scop): Add newline. | |
1234 | * testsuite/gcc.dg/graphite/id-8.c: New. | |
1235 | ||
1236 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
1237 | ||
1238 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
1239 | when loop initialize. | |
1240 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
1241 | * common.opt: Declare flag_graphite_force_parallel. | |
1242 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
1243 | loop parallel. | |
1244 | * graphite-poly.c (apply_poly_transforms): Introduce | |
1245 | flag_graphite_force_parallel. | |
1246 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
1247 | * toplev.c (process_options): ditto and replace a not correctly | |
1248 | encoded space. | |
1249 | ||
1250 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
1251 | ||
1252 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
1253 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
1254 | to the redefinition. | |
1255 | (compute_cloog_iv_types_1): ditto. | |
1256 | (build_iv_mapping): ditto. | |
1257 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
1258 | initialization. | |
1259 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
1260 | (build_bb_loops): Removed. | |
1261 | * sese.h (struct gimple_bb): Removed loops. | |
1262 | (GBB_LOOPS): Removed. | |
1263 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
1264 | (gbb_loop_index): ditto. | |
1265 | ||
1266 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
1267 | ||
1268 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
1269 | allow non constant strides. | |
1270 | * testsuite/gcc.dg/graphite/scop-20.c: New. | |
1271 | ||
1272 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1273 | ||
1274 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
1275 | return value warning. | |
1276 | (dot_scop): Same. | |
1277 | ||
1278 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1279 | ||
1280 | * testsuite/gcc.dg/graphite/id-6.c: Fix pattern. | |
1281 | * testsuite/gcc.dg/graphite/scop-3.c: Same. | |
1282 | ||
1283 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1284 | ||
1285 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
1286 | build_pairwise_constraint, dr_equality_constraints, | |
1287 | build_pairwise_scheduling_equality, | |
1288 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
1289 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
1290 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
1291 | graphite_legal_transform): New. | |
1292 | * graphite-poly.h (graphite_legal_transform): Declared. | |
1293 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
1294 | graphite_legal_transform is disabled for the moment. | |
1295 | ||
1296 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1297 | ||
1298 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
1299 | (pbb_nb_scattering): Use it. | |
1300 | ||
1301 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1302 | ||
1303 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
1304 | Pointset_Powerset version of ppl_insert_dimensions. | |
1305 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
1306 | ||
1307 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1308 | ||
1309 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
1310 | ||
1311 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1312 | ||
1313 | * graphite-poly.h: Fix comment. | |
1314 | ||
1315 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
1316 | ||
1317 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
1318 | ||
1319 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
1320 | ||
1321 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
1322 | statements. | |
1323 | ||
1324 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
1325 | ||
1326 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
1327 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
1328 | conditions. | |
1329 | ||
1330 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
1331 | ||
1332 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
1333 | handle EQ_EXPR and NE_EXPR. | |
1334 | ||
1335 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
1336 | ||
1337 | * graphite-poly.h (poly_dr): Fix comment. | |
1338 | ||
1339 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
1340 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1341 | ||
1342 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
1343 | with a zero dimension polyhedron. | |
1344 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
1345 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
1346 | domain polyhedron. | |
1347 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
1348 | by any loop in scop. | |
1349 | (build_poly_scop): Do not call scop_set_nb_params. | |
1350 | ||
1351 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
1352 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1353 | ||
1354 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
1355 | add_condition_to_domain not GT_EXPR. | |
1356 | ||
1357 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
1358 | ||
1359 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
1360 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
1361 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
1362 | upper_bound_assign to calculate unions. | |
1363 | * testsuite/gcc.dg/graphite/id-6.c: New. | |
1364 | ||
1365 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
1366 | ||
1367 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
1368 | handle abnormal edges. | |
1369 | ||
1370 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
1371 | ||
1372 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
1373 | (free_poly_bb): Also free poly_drs. | |
1374 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
1375 | (poly_dr): Polyhedron to Pointset_Powerset. | |
1376 | (pdr_accessp_nb_subscripts): Same. | |
1377 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
1378 | poly_drs. | |
1379 | ||
1380 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1381 | ||
1382 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
1383 | names into more meaningful names. | |
1384 | ||
1385 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1386 | ||
1387 | * testsuite/gfortran.dg/graphite/interchange-1.c: New. | |
1388 | * testsuite/gfortran.dg/graphite/interchange-2.c: New. | |
1389 | ||
1390 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1391 | ||
1392 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
1393 | the reduction_list. | |
1394 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
1395 | (rewrite_all_phi_nodes_with_iv): New. | |
1396 | (canonicalize_loop_ivs): Call them. | |
1397 | ||
1398 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1399 | ||
1400 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
1401 | graphite_find_data_references_in_stmt. | |
1402 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
1403 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
1404 | ||
1405 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1406 | ||
1407 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
1408 | ||
1409 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1410 | ||
1411 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
1412 | instead of bb_in_region. | |
1413 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
1414 | (build_sese_conditions): Use flag_bb_in_sese. | |
1415 | * sese.c (register_bb_in_sese): Removed. | |
1416 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
1417 | (free_sese): Do not free SESE_REGION_BBS. | |
1418 | * sese.h (struct sese): Remove field region_basic_blocks. | |
1419 | (SESE_REGION_BBS): Removed. | |
1420 | (bb_in_sese_p): Implement in function of bb_in_region. | |
1421 | ||
1422 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
1423 | ||
1424 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
1425 | loops. | |
1426 | ||
1427 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
1428 | ||
1429 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
1430 | and EQ_EXPR. | |
1431 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
1432 | (add_condition_to_domain): New. | |
1433 | (add_condition_to_pbb): New. | |
1434 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
1435 | * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. | |
1436 | ||
1437 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
1438 | ||
1439 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
1440 | ppl_Pointset_Powerset. | |
1441 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
1442 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
1443 | (pbb_nb_loops): Same. | |
1444 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
1445 | add_conditions_to_domain): Same. | |
1446 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
1447 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
1448 | ppl_const_Polyhedron_t. | |
1449 | (ppl_print_powerset_matrix): New. | |
1450 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
1451 | ppl_print_powerset_matrix): New. | |
1452 | (ppl_print_polyhedron_matrix): Updated. | |
1453 | ||
1454 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
1455 | ||
1456 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
1457 | ||
1458 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
1459 | ||
1460 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
1461 | (print_iteration_domains, debug_iteration_domain, | |
1462 | debug_iteration_domains): New. | |
1463 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
1464 | debug_iteration_domains): Declared. | |
1465 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
1466 | indenting. | |
1467 | ||
1468 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
1469 | Sebastian Pop <sebastian.pop@amd.com> | |
1470 | ||
1471 | * graphite-poly.h (print_iteration_domain): New. | |
1472 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
1473 | (build_sese_conditions_1, build_sese_conditions_after, | |
1474 | build_sese_conditions_before): New. | |
1475 | (build_sese_conditions): Rewritten. | |
1476 | ||
1477 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
1478 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1479 | ||
1480 | Cleanup of code generation liveouts. | |
1481 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
1482 | rename_map instead of one per translated statement. | |
1483 | Do not use SESE_LIVEOUT_RENAMES. | |
1484 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
1485 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
1486 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
1487 | phi node of a reduction: when a loop contains a reduction used outside | |
1488 | the loop, there should be a scalar close phi node on the exit block. | |
1489 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
1490 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
1491 | (free_sese): Do not free them. | |
1492 | (sese_build_liveouts_use): Do not use them. | |
1493 | (sese_build_liveouts_bb): Same. | |
1494 | (sese_build_liveouts): Same. | |
1495 | (sese_insert_phis_for_liveouts): Same. | |
1496 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
1497 | (defined_in_loop_p): New. | |
1498 | (alive_after_loop): New. | |
1499 | (close_phi_not_yet_inserted_p): New. | |
1500 | (struct alep, alep_p): New. | |
1501 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
1502 | in the code generated loop. | |
1503 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
1504 | Don't use SESE_LIVEOUT_RENAMES. | |
1505 | (default_liveout_before_guard): Renamed default_before_guard. | |
1506 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
1507 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
1508 | (register_sese_liveout_renames): Removed. | |
1509 | (copy_bb_and_scalar_dependences): Do not call it. | |
1510 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
1511 | reduction_list. | |
1512 | (SESE_LIVEOUT): Removed. | |
1513 | (SESE_LIVEOUT_RENAMES): Removed. | |
1514 | (SESE_REDUCTION_LIST): Removed. | |
1515 | (sese_build_liveouts): Removed. | |
1516 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
1517 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
1518 | (insert_guard_phis): Same. | |
1519 | (rename_map_elt): Declare a VEC of them. | |
1520 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
1521 | trees not pointers to trees. | |
1522 | ||
1523 | Rewrite in canonical close SSA form: | |
1524 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
1525 | (limit_scops): Close the scop after the block containing the close phi | |
1526 | nodes. | |
1527 | (canonicalize_loop_closed_ssa): New. | |
1528 | (canonicalize_loop_closed_ssa_form): New. | |
1529 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
1530 | ||
1531 | * graphite-sese-to-poly.c: Fix typos. | |
1532 | ||
1533 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
1534 | ||
1535 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
1536 | Extended. | |
1537 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
1538 | (print_pbb): Add conditions. | |
1539 | ||
1540 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
1541 | Sebastian Pop <sebastian.pop@amd.com> | |
1542 | ||
1543 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
1544 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
1545 | (build_scop_bbs_1): New. | |
1546 | (build_scop_bbs): Rewrite. | |
1547 | * sese.h (bb_in_region): New. | |
1548 | ||
1549 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
1550 | ||
1551 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
1552 | poly_drs vector. | |
1553 | (print_scop): Style. | |
1554 | * graphite-poly.h (poly_bb): Add drs vector. | |
1555 | (PBB_DRS): Add accessor. | |
1556 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
1557 | (build_pbb_drs, build_scop_drs): New. | |
1558 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
1559 | ||
1560 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
1561 | ||
1562 | * tree-ssa-loop.c: Include forgotten toplev.h | |
1563 | ||
1564 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
1565 | ||
1566 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
1567 | * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-* | |
1568 | * testsuite/gcc.dg/graphite/pr37928.c: Same | |
1569 | * testsuite/gcc.dg/graphite/pr38409.c: Same | |
1570 | * testsuite/gcc.dg/graphite/pr38498.c: Same | |
1571 | * testsuite/gcc.dg/graphite/pr38559.c: Same | |
1572 | * testsuite/gcc.dg/graphite/pr39335.c: Same | |
1573 | * testsuite/gcc.dg/graphite/pr39335_1.c: Same | |
1574 | * testsuite/gfortran.dg/graphite/block-2.f: Same | |
1575 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called | |
1576 | with -floop-*. | |
1577 | ||
1578 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
1579 | ||
1580 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
1581 | build_access_matrix, build_scop_data_accesses): Remove access function | |
1582 | building. (We get a new version soon). | |
1583 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
1584 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
1585 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
1586 | ||
1587 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
1588 | Sebastian Pop <sebastian.pop@amd.com> | |
1589 | ||
1590 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
1591 | field to exit. | |
1592 | (scopdet_basic_block_info, build_scops_1): Don't use | |
1593 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
1594 | ||
1595 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
1596 | Sebastian Pop <sebastian.pop@amd.com> | |
1597 | ||
1598 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
1599 | * sese.c (sese_build_liveouts_use): Renamed from | |
1600 | sese_build_livein_liveouts_use. Remove liveins. | |
1601 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
1602 | Call sese_build_liveouts_use. | |
1603 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
1604 | Call sese_build_liveouts_bb. | |
1605 | (new_sese, free_sese): Remove liveins. | |
1606 | (sese_add_exit_phis_var): Deleted. | |
1607 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
1608 | directly. | |
1609 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
1610 | ||
1611 | * sese.h (sese): Remove num_ver and livein. | |
1612 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
1613 | ||
1614 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
1615 | ||
1616 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
1617 | ||
1618 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
1619 | ||
1620 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
1621 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
1622 | (nb_common_loops): New. | |
1623 | ||
1624 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1625 | ||
1626 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
1627 | (register_old_and_new_names): Renamed set_rename. | |
1628 | ||
1629 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1630 | ||
1631 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
1632 | of the decl from the previous commit. | |
1633 | ||
1634 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1635 | ||
1636 | * graphite-scop-detection.c (dot_scop): New. | |
1637 | * graphite-scop-detection.h (dot_scop): Declared. | |
1638 | ||
1639 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1640 | ||
1641 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
1642 | ||
1643 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1644 | ||
1645 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
1646 | condition at the end of the loop. | |
1647 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
1648 | dump_file the compiled function. | |
1649 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
1650 | of create_empty_loop_on_edge. | |
1651 | (translate_clast): Update the code generation of loops for the new | |
1652 | shape of loops. | |
1653 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
1654 | ||
1655 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
1656 | ||
1657 | Reverted the patch from 2009-03-19. | |
1658 | ||
1659 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
1660 | ||
1661 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
1662 | poly_drs vector. | |
1663 | (print_scop): Style. | |
1664 | * graphite-poly.h (poly_bb): Add drs vector. | |
1665 | (PBB_DRS): Add accessor. | |
1666 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
1667 | (build_access_matrix_with_af, build_access_matrix, | |
1668 | build_scop_data_accesses): Delete. | |
1669 | (build_poly_dr): New. | |
1670 | (build_pbb_drs, build_scop_drs): New. | |
1671 | (build_poly_scop): call build_scop_drs. | |
1672 | ||
1673 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
1674 | ||
1675 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
1676 | once per basic block. | |
1677 | ||
1678 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
1679 | ||
1680 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
1681 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
1682 | and enhanced. | |
1683 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
1684 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
1685 | (scopdet_basic_block_info): Actually define entry_block. | |
1686 | (stmt_simple_memref_p): Moved here from ... | |
1687 | ||
1688 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
1689 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
1690 | ||
1691 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
1692 | ||
1693 | * testsuite/gcc.dg/graphite/id-4.c: New. | |
1694 | ||
1695 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
1696 | ||
1697 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
1698 | (register_old_and_new_names): Update the content of the map. | |
1699 | When there was already a rename_map_elt in the map at that | |
1700 | location, free it. | |
1701 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
1702 | expand_scalar_variables. | |
1703 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
1704 | of the map. When there was already a rename_map_elt in the | |
1705 | map at that location, free it. | |
1706 | (translate_clast): Pass the rename_map. Do not initialize and free | |
1707 | a rename_map per stmt_user. | |
1708 | (gloog): Initialize and free one rename_map and pass it to | |
1709 | translate_clast. | |
1710 | ||
1711 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
1712 | ||
1713 | * sese.c (expand_scalar_variables_stmt, | |
1714 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
1715 | parameter. | |
1716 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
1717 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
1718 | the gimple_stmt_iterator of the statement to be expanded. | |
1719 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
1720 | REALPART_EXPR. | |
1721 | ||
1722 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
1723 | ||
1724 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
1725 | REALPART_EXPR. | |
1726 | * testsuite/gcc.dg/graphite/id-2.c: New. | |
1727 | ||
1728 | * graphite-sese-to-poly.c (build_bb_loops, | |
1729 | add_value_to_dim, scan_tree_for_params_right_scev, | |
1730 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
1731 | find_params_in_bb, build_loop_iteration_domains, | |
1732 | add_conditions_to_domain): Remove subtract. | |
1733 | ||
1734 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
1735 | ||
1736 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
1737 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
1738 | pbb_loop_at_index -> gbb_loop_at_index. | |
1739 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
1740 | (debug_loop_vec): Delete. | |
1741 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
1742 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
1743 | (PBB_LOOPS): Removed. | |
1744 | (PBB_BLACK_BOX): Insert cast. | |
1745 | (pbb_set_black_box): New setter. | |
1746 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
1747 | (scop_set_region, scop_set_nb_params): New. | |
1748 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
1749 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
1750 | (build_poly_scop): Use scop_set_nb_params. | |
1751 | * sese.h (gimple_bb): Add LOOPS. | |
1752 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
1753 | ||
1754 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
1755 | ||
1756 | Revert previous commit. | |
1757 | ||
1758 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
1759 | ||
1760 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
1761 | (register_old_and_new_names): Update the content of the map. | |
1762 | When there was already a rename_map_elt in the map at that | |
1763 | location, free it. | |
1764 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
1765 | expand_scalar_variables. | |
1766 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
1767 | of the map. When there was already a rename_map_elt in the | |
1768 | map at that location, free it. | |
1769 | (translate_clast): Pass the rename_map. Do not initialize and free | |
1770 | a rename_map per stmt_user. | |
1771 | (gloog): Initialize and free one rename_map and pass it to | |
1772 | translate_clast. | |
1773 | ||
1774 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
1775 | ||
1776 | Remove forgotten line in revert. | |
1777 | ||
1778 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
1779 | ||
1780 | Revert previous commit. | |
1781 | ||
1782 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
1783 | ||
1784 | * sese.c (register_old_and_new_names): Update the content | |
1785 | of the map. When there was already a rename_map_elt in the | |
1786 | map at that location, free it. | |
1787 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
1788 | expand_scalar_variables. | |
1789 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
1790 | of the map. When there was already a rename_map_elt in the | |
1791 | map at that location, free it. | |
1792 | (translate_clast): Pass the rename_map. Do not initialize and free | |
1793 | a rename_map per stmt_user. | |
1794 | (gloog): Initialize and free one rename_map and pass it to | |
1795 | translate_clast. | |
1796 | ||
1797 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
1798 | ||
1799 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
1800 | is never NULL. | |
1801 | ||
1802 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
1803 | Sebastian Pop <sebastian.pop@amd.com> | |
1804 | ||
1805 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
1806 | of the use of ppl_Polyhedron_map_space_dimensions. | |
1807 | ||
1808 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
1809 | Sebastian Pop <sebastian.pop@amd.com> | |
1810 | ||
1811 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
1812 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
1813 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
1814 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
1815 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
1816 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
1817 | pbb_nb_params): New. | |
1818 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
1819 | nb_loops_around_pbb): Adapt return types. | |
1820 | ||
1821 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
1822 | ||
1823 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
1824 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
1825 | graphite-scop-detection.o, graphite-poly.o): Add | |
1826 | more headers. | |
1827 | ||
1828 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
1829 | ||
1830 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
1831 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
1832 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
1833 | ||
1834 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
1835 | ||
1836 | * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block | |
1837 | * testsuite/gcc.dg/graphite/pr37828.c: Same. | |
1838 | * testsuite/gcc.dg/graphite/pr37684.c: Same. | |
1839 | * testsuite/gcc.dg/graphite/block-0.c: Same. | |
1840 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
1841 | * testsuite/gcc.dg/graphite/block-2.c: Same. | |
1842 | * testsuite/gcc.dg/graphite/block-3.c: Same. | |
1843 | * testsuite/gcc.dg/graphite/block-4.c: Same. | |
1844 | * testsuite/gcc.dg/graphite/block-5.c: Same. | |
1845 | * testsuite/gcc.dg/graphite/block-6.c: Same. | |
1846 | * testsuite/gfortran.dg/graphite/pr38083.f90: Same. | |
1847 | * testsuite/gfortran.dg/graphite/block-1.f90: Same. | |
1848 | * testsuite/gfortran.dg/graphite/block-3.f90: Same. | |
1849 | * testsuite/gfortran.dg/graphite/pr37852.f90: Same. | |
1850 | * testsuite/gfortran.dg/graphite/block-4.f90: Same. | |
1851 | * testsuite/gfortran.dg/graphite/pr37980.f90: Same. | |
1852 | * testsuite/gfortran.dg/graphite/pr38953.f90: Same. | |
1853 | * testsuite/gfortran.dg/graphite/pr37857.f90: Same. | |
1854 | * opts.c: Remove -floop-block from -O2. | |
1855 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
1856 | -floop-strip-mine are used. | |
1857 | ||
1858 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
1859 | Sebastian Pop <sebastian.pop@amd.com> | |
1860 | ||
1861 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
1862 | dimensions. | |
1863 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
1864 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
1865 | strip_mine_profitable_p, is_interchange_valid, | |
1866 | graphite_trans_bb_block, graphite_trans_loop_block, | |
1867 | graphite_trans_scop_block): Temporary removed. | |
1868 | (extend_scattering, unify_scattering_dimensions): New. | |
1869 | (print_scattering_function, graphite_read_transforms): | |
1870 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
1871 | (graphite_generate_scattering_fns): Removed. | |
1872 | (apply_poly_transforms): Cleanup. | |
1873 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
1874 | (schedule_to_scattering): Moved. | |
1875 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
1876 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
1877 | (pbb_nb_scattering): New. | |
1878 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
1879 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
1880 | Removed. | |
1881 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
1882 | shift_poly. | |
1883 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
1884 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
1885 | -> PBB_TRANSFORMED_SCATTERING. | |
1886 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
1887 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
1888 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
1889 | (check_poly_representation): Do not return bool. | |
1890 | (graphite_transform_loops): Reformat. | |
1891 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
1892 | ||
1893 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
1894 | ||
1895 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
1896 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
1897 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
1898 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
1899 | ||
1900 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
1901 | ||
1902 | PR middle-end/39335 | |
1903 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
1904 | when the type precision of the induction variable should be | |
1905 | larger than the type precision of nit. | |
1906 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
1907 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
1908 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
1909 | ||
1910 | * testsuite/gcc.dg/graphite/pr39335_1.c: New. | |
1911 | * testsuite/gcc.dg/graphite/pr39335.c: New. | |
1912 | ||
1913 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
1914 | ||
1915 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
1916 | SSA_NAMES not struct reduction_info. | |
1917 | ||
1918 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
1919 | ||
1920 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
1921 | ||
1922 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
1923 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1924 | ||
1925 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
1926 | (free_sese): Free SESE_REDUCTION_LIST. | |
1927 | * sese.h (struct sese): Add field reduction_list. | |
1928 | (SESE_REDUCTION_LIST): New. | |
1929 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
1930 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
1931 | ||
1932 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
1933 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1934 | ||
1935 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
1936 | of loop_p. | |
1937 | ||
1938 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
1939 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1940 | ||
1941 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
1942 | analyze_reduction_list, gather_scalar_reductions): New. | |
1943 | (loop_parallel_p): Build a reduction list containing only | |
1944 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
1945 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
1946 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
1947 | * tree-flow.h (gather_scalar_reductions): Declared. | |
1948 | ||
1949 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
1950 | ||
1951 | PR middle-end/39308 | |
1952 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
1953 | number_of_iterations_exit from a gcc_assert. | |
1954 | ||
1955 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
1956 | Jan Sjodin <jan.sjodin@amd.com> | |
1957 | ||
1958 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
1959 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
1960 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
1961 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
1962 | Don't call schedule_to_scattering. | |
1963 | * common.opt (fgraphite-write, fgraphite-read): New. | |
1964 | * graphite-poly.c: Include output.h. | |
1965 | (print_scattering_function, print_scattering_functions, | |
1966 | debug_scattering_function, debug_scattering_functions, | |
1967 | graphite_write_transforms, graphite_read_transforms, | |
1968 | graphite_generate_scattering_fns): New. | |
1969 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
1970 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
1971 | graphite_read_transforms. | |
1972 | (new_poly_bb): Initialize PBB_SCATTERING. | |
1973 | (free_poly_bb): Free PBB_SCATTERING. | |
1974 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
1975 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
1976 | (PBB_SCATTERING): New. | |
1977 | (print_scattering_function, print_scattering_functions, | |
1978 | debug_scattering_function, debug_scattering_functions): Declared. | |
1979 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
1980 | GMP values, not integers! | |
1981 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
1982 | ppl_read_polyhedron_matrix): New. | |
1983 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
1984 | debug_ppl_polyhedron_matrix, | |
1985 | ppl_read_polyhedron_matrix): Declared. | |
1986 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
1987 | ||
1988 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
1989 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1990 | ||
1991 | Revert this change: | |
1992 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
1993 | scalar evolutions in the scop_entry->loop_father. | |
1994 | ||
1995 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
1996 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1997 | ||
1998 | * graphite.h (ref_nb_loops): Remove declaration. | |
1999 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
2000 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
2001 | debug_gbb): Moved to sese.h. | |
2002 | * sese.h: As said. | |
2003 | ||
2004 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
2005 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2006 | ||
2007 | * graphite-data-ref.[ch]: Disable. | |
2008 | ||
2009 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
2010 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2011 | ||
2012 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
2013 | scalar evolutions in the scop_entry->loop_father. | |
2014 | ||
2015 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
2016 | ||
2017 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
2018 | (graphite_cannot_represent_loop_niter): Renamed | |
2019 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
2020 | (limit_scops): build_sese_loop_nests does not return a bool. | |
2021 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
2022 | * sese.c (nb_reductions_in_loop): ... from here. | |
2023 | (graphite_loop_normal_form): ... from here. | |
2024 | (sese_record_loop): Does not fail, so does not return a bool. | |
2025 | (build_sese_loop_nests): Same. | |
2026 | * sese.h (build_sese_loop_nests): Update declaration. | |
2027 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
2028 | (build_graphite_loop_normal_form): New. | |
2029 | (gloog): Call build_graphite_loop_normal_form. | |
2030 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
2031 | build_sese_loop_nests. | |
2032 | ||
2033 | * testsuite/gcc.dg/graphite/id-1.c: New. | |
2034 | ||
2035 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
2036 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2037 | ||
2038 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
2039 | The SCoP detection fix is sufficient. | |
2040 | ||
2041 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
2042 | ||
2043 | PR tree-optimization/39260 | |
2044 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
2045 | the basic block contains a condition with a real type. | |
2046 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
2047 | ||
2048 | * gcc.dg/graphite/pr39260.c: New. | |
2049 | ||
2050 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
2051 | ||
2052 | * graphite-poly.c: Inlcude params.h. | |
2053 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
2054 | the size of a tile. | |
2055 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
2056 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
2057 | ||
2058 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
2059 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2060 | ||
2061 | * graphite-scop-detection.c (dot_all_scops_1, | |
2062 | dot_all_scops): Moved here. | |
2063 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
2064 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
2065 | (graphite_transform_loops): Cleaned up. | |
2066 | * sese.c (debug_oldivs): Moved here. | |
2067 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
2068 | apply_poly_transforms. | |
2069 | (debug_loop_vec): Moved here. | |
2070 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
2071 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
2072 | find_scop_parameters, build_scop_iteration_domain, | |
2073 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
2074 | build_scop_data_accesses): Now static. | |
2075 | (build_poly_scop, check_poly_representation): New. | |
2076 | ||
2077 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
2078 | ||
2079 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
2080 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
2081 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
2082 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
2083 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
2084 | scan_tree_for_params, struct irp_data, dx_record_params, | |
2085 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
2086 | build_loop_iteration_domains, add_conditions_to_domain, | |
2087 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
2088 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
2089 | build_sese_conditions, add_conditions_to_constraints, | |
2090 | build_scop_iteration_domain, build_access_matrix_with_af, | |
2091 | build_access_matrix, | |
2092 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
2093 | ||
2094 | * graphite-sese-to-poly.c: New. | |
2095 | * graphite-sese-to-poly.h: New. | |
2096 | ||
2097 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
2098 | ||
2099 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
2100 | ||
2101 | * graphite.c: Split graphite code generation to a new file. | |
2102 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
2103 | max_precision_type, clast_to_gcc_expression_red, | |
2104 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
2105 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
2106 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
2107 | graphite_create_new_guard, clast_get_body_of_loop, | |
2108 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
2109 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
2110 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
2111 | compute_cloog_iv_types, free_scattering, save_var_name, | |
2112 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
2113 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
2114 | print_generated_program, debug_generated_program, | |
2115 | gloog): Moved to graphite-clast-to-gimple.c. | |
2116 | ||
2117 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
2118 | ||
2119 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
2120 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
2121 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
2122 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
2123 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
2124 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
2125 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
2126 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
2127 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
2128 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
2129 | get_vdef_before_sese, sese_adjust_vphi, | |
2130 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
2131 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
2132 | is_iv, expand_scalar_variables_ssa_name, | |
2133 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
2134 | expand_scalar_variables, rename_variables, remove_condition, | |
2135 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
2136 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
2137 | default_liveout_before_guard, add_guard_exit_phis, | |
2138 | insert_guard_phis, register_old_and_new_names, | |
2139 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
2140 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
2141 | if_region_set_false_region, create_if_region_on_edge, | |
2142 | move_sese_in_condition): Moved to sese.c. | |
2143 | ||
2144 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
2145 | if_region_exit, if_region_get_condition_block, | |
2146 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
2147 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
2148 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
2149 | ivtype_map_elt, new_ivtype_map_elt, | |
2150 | recompute_all_dominators): Moved to sese.h. | |
2151 | ||
2152 | * graphite-clast-to-gimple.c: New. | |
2153 | * graphite-clast-to-gimple.h: New. | |
2154 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
2155 | * sese.c: Modified as said above. | |
2156 | * sese.h: Same. | |
2157 | ||
2158 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
2159 | ||
2160 | * graphite.c: Split scop detection to a new file. | |
2161 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
2162 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
2163 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
2164 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
2165 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
2166 | find_single_entry_edge, find_single_exit_edge, | |
2167 | create_single_entry_edge, sd_region_without_exit, | |
2168 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
2169 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
2170 | Moved to graphite-scop-detection.c. | |
2171 | ||
2172 | * graphite-scop-detection.c: New. | |
2173 | * graphite-scop-detection.h: New. | |
2174 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
2175 | ||
2176 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
2177 | tree-scalar-evolution.h. | |
2178 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
2179 | build_sese_loop_nests): Moved here from graphite.c. | |
2180 | (param_index): Renamed parameter_index_in_region. | |
2181 | ||
2182 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
2183 | Sebastian Pop <sebastian.pop@amd.com> | |
2184 | ||
2185 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
2186 | * gcc.dg/graphite/block-1.c: Same. | |
2187 | * gcc.dg/graphite/block-5.c: Same. | |
2188 | * gcc.dg/graphite/block-6.c: Same. | |
2189 | ||
2190 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
2191 | Sebastian Pop <sebastian.pop@amd.com> | |
2192 | ||
2193 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
2194 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
2195 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
2196 | graphite-data-ref.h. | |
2197 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
2198 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
2199 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
2200 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
2201 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
2202 | scop_nb_params): Moved to graphite-poly.h. | |
2203 | * graphite-data-ref.c: Same. | |
2204 | * graphite-data-ref.h: New. | |
2205 | * graphite.c: Same. | |
2206 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
2207 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
2208 | is_interchange_valid, graphite_trans_bb_block, | |
2209 | graphite_trans_loop_block, scop_max_loop_depth, | |
2210 | graphite_trans_scop_block, graphite_apply_transformations, | |
2211 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
2212 | graphite-poly.c. | |
2213 | * graphite-poly.h: New. | |
2214 | * graphite-poly.c: New. | |
2215 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
2216 | (graphite-poly.o): New rule. | |
2217 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
2218 | (DR_SCOP): Removed. | |
2219 | ||
2220 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
2221 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2222 | ||
2223 | * graphite.c: Replace gb -> gbb. | |
2224 | * graphite.h: Same. | |
2225 | * graphite-data-ref.c: Same. | |
2226 | ||
2227 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
2228 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2229 | ||
2230 | * Makefile.in (OBJS-commmon): Add sese.o. | |
2231 | (sese.o): New. | |
2232 | (graphite.o): Add sese.h. | |
2233 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
2234 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
2235 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
2236 | Move to sese. | |
2237 | (block_before_scop): Add missing return. | |
2238 | (new_scop, free_scop): Remove SESE data structures. | |
2239 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
2240 | find_scop_parameters, build_loop_iteration_domains, | |
2241 | add_conditions_to_domain, register_scop_liveout_renames, | |
2242 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
2243 | ||
2244 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
2245 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
2246 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
2247 | non iv scalar phi nodes. | |
2248 | (print_scop_statistics): New. | |
2249 | (graphite_transform_loops): Cleanup. | |
2250 | ||
2251 | * graphite.h: Move to sese & cleanup. | |
2252 | * sese.c: New. | |
2253 | * sese.h: New. | |
2254 | ||
2255 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2256 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2257 | ||
2258 | * graphite.c (build_scop_conditions_1): Conditions are only | |
2259 | at the end of a basic block. | |
2260 | ||
2261 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2262 | Tobias Grosser <grosser@fim.uni-passau> | |
2263 | ||
2264 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
2265 | field. | |
2266 | (GBB_ALPHA): Removed. | |
2267 | ||
2268 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2269 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2270 | ||
2271 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
2272 | GBB_DYNAMIC_SCHEDULE. | |
2273 | * graphite.c (new_graphite_bb): Same. | |
2274 | (free_graphite_bb): Same. | |
2275 | (build_scop_dynamic_schedules): Removed. | |
2276 | (graphite_transform_loops): Don't call it. | |
2277 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
2278 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
2279 | ||
2280 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2281 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2282 | ||
2283 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
2284 | (print_graphite_bb): Same. | |
2285 | (build_cloog_prog): Same. | |
2286 | ||
2287 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2288 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2289 | ||
2290 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
2291 | ||
2292 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2293 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2294 | ||
2295 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
2296 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
2297 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
2298 | ||
2299 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2300 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2301 | ||
2302 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
2303 | liveout_renames, add_params fields... | |
2304 | (struct sese): ... here. | |
2305 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
2306 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
2307 | ||
2308 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2309 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2310 | ||
2311 | * graphite.c (print_scop): Do not print the CLooG program. | |
2312 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
2313 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
2314 | (find_transform): Renamed scop_to_clast. | |
2315 | (print_generated_program, debug_generated_program): New. | |
2316 | (graphite_transform_loops): Adapt to new interface. | |
2317 | * graphite.h (struct scop): Remove program field. | |
2318 | (SCOP_PROG): Removed. | |
2319 | (print_generated_program, debug_generated_program): Declared. | |
2320 | ||
2321 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
2322 | ||
2323 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
2324 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
2325 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
2326 | free_graphite_bb, build_scop_canonical_schedules, | |
2327 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
2328 | schedules are now represented using a ppl_Linear_Expression_t. | |
2329 | * graphite.h (struct graphite_bb): Same. | |
2330 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
2331 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
2332 | ||
2333 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
2334 | ||
2335 | * graphite.c: Free local memory. | |
2336 | * graphite-ppl.c: Same. | |
2337 | ||
2338 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
2339 | ||
2340 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
2341 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
2342 | swap_constraint_variables, scale_constraint_variable): Removed. | |
2343 | (graphite_trans_bb_strip_mine): Remove pong. | |
2344 | * graphite-ppl.c: Include missing header files. | |
2345 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
2346 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
2347 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
2348 | ||
2349 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
2350 | ||
2351 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
2352 | (build_scop_iteration_domain): Same. | |
2353 | ||
2354 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
2355 | ||
2356 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
2357 | ping pong. | |
2358 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
2359 | scan_tree_for_params_int): New. | |
2360 | * graphite-ppl.c (oppose_constraint): New. | |
2361 | (insert_constraint_into_matrix): Implement missing cases. | |
2362 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
2363 | ||
2364 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
2365 | ||
2366 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
2367 | use ppl_move_dimension. | |
2368 | ||
2369 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
2370 | ||
2371 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
2372 | * graphite.c: Same. | |
2373 | * graphite.h: Same. | |
2374 | * graphite-ppl.c: Same. | |
2375 | * graphite-ppl.h: Same. | |
2376 | ||
2377 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
2378 | ||
2379 | Revert last 3 commits. | |
2380 | ||
2381 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
2382 | ||
2383 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
2384 | ping pong. | |
2385 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
2386 | scan_tree_for_params_int): New. | |
2387 | * graphite-ppl.c (oppose_constraint): New. | |
2388 | (insert_constraint_into_matrix): Implement missing cases. | |
2389 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
2390 | ||
2391 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
2392 | ||
2393 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
2394 | ||
2395 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
2396 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2397 | ||
2398 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
2399 | use ppl_move_dimension. | |
2400 | * graphite-ppl.c (ppl_move_dimension): New. | |
2401 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
2402 | ||
2403 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
2404 | ||
2405 | * graphite.c: Do not include cloog/cloog.h. | |
2406 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
2407 | ||
2408 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
2409 | ||
2410 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
2411 | (graphite.o): Add dependence on graphite-ppl.h. | |
2412 | (graphite-ppl.o): New. | |
2413 | (graphite-data-ref.c): Ping pong between PPL data structures | |
2414 | and matrices. | |
2415 | * graphite-ppl.c: New. | |
2416 | * graphite-ppl.h: New. | |
2417 | * graphite.c: Include graphite-ppl.h. | |
2418 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
2419 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
2420 | Ping pong between PPL data structures and matrices. | |
2421 | (new_graphite_bb): Create a PPL constraint system. | |
2422 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
2423 | (build_loop_iteration_domains): Use PPL functions. | |
2424 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
2425 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
2426 | CloogMatrix for representing the domain. | |
2427 | (scop): Remove static_schedule. | |
2428 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
2429 | ||
2430 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
2431 | ||
2432 | * graphite.c: Fix some comments. | |
2433 | ||
2434 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
2435 | ||
2436 | PR middle-end/38953 | |
2437 | * graphite.c (if_region_set_false_region): After moving a region | |
2438 | in the false branch of a condition, remove the empty dummy | |
2439 | basic block. | |
2440 | (gloog): Remove wrong fix for PR38953. | |
2441 | ||
2442 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
2443 | ||
2444 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
2445 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
2446 | register_bb_in_sese, new_sese, free_sese): Moved. | |
2447 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
2448 | outermost_loop_in_scop, build_scop_iteration_domain, | |
2449 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
2450 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
2451 | Use loop_in_sese_p instead of loop_in_scop_p. | |
2452 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
2453 | (free_scop): Do not free SCOP_BBS_B. | |
2454 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
2455 | ref_nb_loops): Moved here... | |
2456 | * graphite.h (ref_nb_loops): ... from here. | |
2457 | (struct scop): Remove bbs_b bitmap. | |
2458 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
2459 | * testsuite/gcc.dg/graphite/scop-19.c: New | |
2460 | ||
2461 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
2462 | ||
2463 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
2464 | detection. | |
2465 | ||
2466 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
2467 | ||
2468 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
2469 | eq_loop_to_cloog_loop): Remove. | |
2470 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
2471 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
2472 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
2473 | ||
2474 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
2475 | ||
2476 | * opts.c (decode_options): Only add graphite options to O2 | |
2477 | if we compile with graphite enabled. | |
2478 | ||
2479 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
2480 | ||
2481 | * Merge from mainline (r143163:143684). | |
2482 | ||
2483 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
2484 | ||
2485 | * graphite.c (debug_value): Removed. | |
2486 | * graphite.h (debug_value): Removed. | |
2487 | ||
2488 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
2489 | ||
2490 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
2491 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
2492 | SSA form. pass_copy_prop should be fixed. | |
2493 | ||
2494 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
2495 | ||
2496 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
2497 | ||
2498 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
2499 | ||
2500 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
2501 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
2502 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
2503 | changed the CFG. | |
2504 | ||
2505 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
2506 | ||
2507 | * graphite.c (gloog): Return true when code gen succeeded. | |
2508 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
2509 | the code of the function did not changed. After cleanup_tree_cfg | |
2510 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
2511 | form. | |
2512 | ||
2513 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
2514 | ||
2515 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
2516 | gimple_call_lhs is NULL. | |
2517 | ||
2518 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
2519 | Tobias Grosser <tobi.grosser@amd.com> | |
2520 | ||
2521 | * graphite.c (graphite_trans_scop_block): Do not block single | |
2522 | nested loops. | |
2523 | ||
2524 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
2525 | Tobias Grosser <tobi.grosser@amd.com> | |
2526 | ||
2527 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
2528 | zero. | |
2529 | ||
2530 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
2531 | Tobias Grosser <tobi.grosser@amd.com> | |
2532 | ||
2533 | * graphite.c (compare_prefix_loops): New. | |
2534 | (build_scop_canonical_schedules): Rewritten. | |
2535 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
2536 | after build_scop_iteration_domain. | |
2537 | ||
2538 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
2539 | Tobias Grosser <tobi.grosser@amd.com> | |
2540 | ||
2541 | * graphite.c (add_conditions_to_domain): Add the loops to | |
2542 | the dimension of the iteration domain. Do copy the domain | |
2543 | only when it exists. | |
2544 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
2545 | (add_conditions_to_constraints): New. | |
2546 | (can_generate_code_stmt, can_generate_code): Removed. | |
2547 | (gloog): Do not call can_generate_code. | |
2548 | (graphite_transform_loops): Call add_conditions_to_constraints | |
2549 | after building the iteration domain. | |
2550 | ||
2551 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
2552 | Tobias Grosser <tobi.grosser@amd.com> | |
2553 | Jan Sjodin <jan.sjodin@amd.com> | |
2554 | ||
2555 | * graphite.c (scan_tree_for_params): On substractions negate | |
2556 | all the coefficients of the term. | |
2557 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
2558 | of more than two operands. | |
2559 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
2560 | (get_vdef_before_scop): Handle also the case of default definitions. | |
2561 | ||
2562 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
2563 | ||
2564 | PR middle-end/38431 | |
2565 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
2566 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
2567 | (gloog): Do not call cleanup_tree_cfg. | |
2568 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
2569 | scops have been code generated. | |
2570 | ||
2571 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
2572 | ||
2573 | * passes.c (init_optimization_passes): Schedule after | |
2574 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
2575 | ||
2576 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
2577 | ||
2578 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
2579 | Fix comment. | |
2580 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
2581 | Set the type of an expression to the type of its assign statement. | |
2582 | (expand_scalar_variables_expr): Do not pass loop_p. | |
2583 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
2584 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
2585 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
2586 | ||
2587 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
2588 | ||
2589 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
2590 | an expression to the gimple_expr_type of its assign statement. | |
2591 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
2592 | or tcc_declaration. | |
2593 | ||
2594 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
2595 | ||
2596 | PR tree-optimization/38786 | |
2597 | * testsuite/gcc.dg/graphite/pr38786.c: New. | |
2598 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from | |
2599 | the SSA_NAME case of expand_scalar_variables_expr. | |
2600 | (expand_scalar_variables_expr): Also gather the scalar computation | |
2601 | used to index the memory access. | |
2602 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
2603 | the gimple_stmt_iterator where it inserts new code. | |
2604 | ||
2605 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
2606 | ||
2607 | * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit. | |
2608 | ||
2609 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
2610 | ||
2611 | * opts.c (decode_options): Enable flag_graphite_identity and | |
2612 | flag_loop_block in -O2 and above. | |
2613 | ||
2614 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
2615 | ||
2616 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
2617 | Fix merge problem: replace with the file from trunk. | |
2618 | ||
2619 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
2620 | ||
2621 | * Merge from mainline (r141727:143163). | |
2622 | ||
2623 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
2624 | Jan Sjodin <jan.sjodin@amd.com> | |
2625 | ||
2626 | PR tree-optimization/38559 | |
2627 | * testsuite/gcc.dg/graphite/pr38559.c: New. | |
2628 | ||
2629 | * graphite.c (debug_value, copy_constraint, | |
2630 | swap_constraint_variables, scale_constraint_variable, ): New. | |
2631 | (get_lower_bound, get_upper_bound): Removed. | |
2632 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
2633 | only for constant number of iterations. Fully copy upper and | |
2634 | lower bound constraints, not only the constant part of them. | |
2635 | * graphite.h (debug_value): Declared. | |
2636 | ||
2637 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
2638 | ||
2639 | PR tree-optimization/38492 | |
2640 | PR tree-optimization/38498 | |
2641 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
2642 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
2643 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
2644 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
2645 | (graphite_loop_normal_form): Use gcc_assert. | |
2646 | (scan_tree_for_params): Use CASE_CONVERT. | |
2647 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
2648 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
2649 | Use gcc_assert. Discard scops that contain unhandled cases. | |
2650 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
2651 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
2652 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
2653 | recompute it wrongly. | |
2654 | (graphite_trans_bb_block): Same. | |
2655 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
2656 | (graphite_trans_scop_block): Do not print that the loop has been | |
2657 | blocked. | |
2658 | (graphite_transform_loops): Do not handle scops that contain condition | |
2659 | scalar phi nodes. | |
2660 | ||
2661 | * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed | |
2662 | in trunk. | |
2663 | * testsuite/gcc.dg/graphite/block-0.c: Update test. | |
2664 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
2665 | * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for | |
2666 | blocking. | |
2667 | * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine. | |
2668 | * testsuite/gcc.dg/graphite/block-3.c: New. | |
2669 | * testsuite/gcc.dg/graphite/pr38498.c: New. | |
2670 | ||
2671 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
2672 | ||
2673 | PR tree-optimization/38510 | |
2674 | * gcc.dg/graphite/pr38510.c: New. | |
2675 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
2676 | (translate_clast): Call recompute_all_dominators before | |
2677 | graphite_verify. | |
2678 | (gloog): Call recompute_all_dominators before graphite_verify. | |
2679 | ||
2680 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
2681 | ||
2682 | PR tree-optimization/38492 | |
2683 | * graphite.c (rename_map_elt, debug_rename_elt, | |
2684 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
2685 | rename_map_elt_info, eq_rename_map_elts, | |
2686 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
2687 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
2688 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
2689 | (sese_build_livein_liveouts): New. | |
2690 | (new_sese, free_sese): New. | |
2691 | (new_scop): Call new_sese. | |
2692 | (free_scop): Call free_sese. | |
2693 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
2694 | (register_old_new_names): Renamed register_old_and_new_names. | |
2695 | (register_scop_liveout_renames, add_loop_exit_phis, | |
2696 | insert_loop_close_phis, struct igp, | |
2697 | default_liveout_before_guard, add_guard_exit_phis, | |
2698 | insert_guard_phis, copy_renames): New. | |
2699 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
2700 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
2701 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
2702 | (scop_adjust_phis_for_liveouts): New. | |
2703 | (gloog): Call scop_adjust_phis_for_liveouts. | |
2704 | ||
2705 | * graphite.h (struct sese): Documented. Added fields liveout, | |
2706 | num_ver and livein. | |
2707 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
2708 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
2709 | (struct scop): Added field liveout_renames. | |
2710 | (SCOP_LIVEOUT_RENAMES): New. | |
2711 | ||
2712 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
2713 | ||
2714 | PR tree-optimization/38409 | |
2715 | * gcc.dg/graphite/pr38409.c: New. | |
2716 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
2717 | ||
2718 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
2719 | ||
2720 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
2721 | integer_type_node. | |
2722 | (graphite_create_new_loop): Don't fold_convert the already | |
2723 | fold_convert-ed expression. | |
2724 | ||
2725 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
2726 | ||
2727 | PR tree-optimization/38446 | |
2728 | * gcc.dg/graphite/pr38446.c: New. | |
2729 | * graphite.c (register_bb_in_sese): New. | |
2730 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
2731 | looking at the bbs in the region. | |
2732 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
2733 | structure and initialize at the time of defining new scop. | |
2734 | ||
2735 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
2736 | ||
2737 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
2738 | (find_params_in_bb): Do not free data refs. | |
2739 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
2740 | ||
2741 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
2742 | ||
2743 | * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info. | |
2744 | * testsuite/gcc.dg/graphite/scop-17.c: Same. | |
2745 | * testsuite/gcc.dg/graphite/block-5.c: New. | |
2746 | * testsuite/gcc.dg/graphite/block-6.c: New. | |
2747 | * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after. | |
2748 | * testsuite/gcc.dg/graphite/pr37684.c: Same. | |
2749 | * testsuite/gcc.dg/graphite/block-2.c: Same. | |
2750 | ||
2751 | * graphite.c (struct ivtype_map_elt): New. | |
2752 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
2753 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
2754 | gcc_type_for_cloog_iv): New. | |
2755 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
2756 | variable from the original loop, except for the automatically | |
2757 | generated loops, i.e., in the case of a strip-mined loop, in | |
2758 | which case there is no original loop: in that case just use | |
2759 | integer_type_node. | |
2760 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
2761 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
2762 | (clast_name_to_gcc): Accept params to be NULL. | |
2763 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
2764 | Convert to that type all the expressions built by this function. | |
2765 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
2766 | (graphite_translate_clast_equation): Compute the type of the | |
2767 | clast_equation before translating its LHS and RHS. | |
2768 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
2769 | (graphite_create_new_loop): Compute the type of the induction | |
2770 | variable before translating the lower and upper bounds and before | |
2771 | creating the induction variable. | |
2772 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
2773 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
2774 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
2775 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
2776 | compute_cloog_iv_types): New. | |
2777 | (gloog): Call compute_cloog_iv_types before starting the | |
2778 | translation of the clast. | |
2779 | ||
2780 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
2781 | (GBB_CLOOG_IV_TYPES): New. | |
2782 | (debug_ivtype_map): Declared. | |
2783 | (oldiv_for_loop): New. | |
2784 | ||
2785 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
2786 | ||
2787 | PR middle-end/38459 | |
2788 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
2789 | (param_index): Assert if parameter is not know after parameter | |
2790 | detection. | |
2791 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
2792 | (find_scop_parameters): Mark, that we have finished parameter | |
2793 | detection. | |
2794 | (graphite_transform_loops): Move condition detection before parameter | |
2795 | detection. | |
2796 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
2797 | * testsuite/gfortran.dg/graphite/pr38459.f90: New. | |
2798 | ||
2799 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
2800 | ||
2801 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
2802 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
2803 | generate code. | |
2804 | ||
2805 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
2806 | ||
2807 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
2808 | (print_scop): Ditto. | |
2809 | ||
2810 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
2811 | ||
2812 | PR middle-end/38084 | |
2813 | Fix testsuite/gfortran.dg/graphite/id-3.f90. | |
2814 | * graphite.c (scopdet_basic_block_info): Fix bug that found some | |
2815 | regions more than once. | |
2816 | ||
2817 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
2818 | ||
2819 | Fix testsuite/gfortran.dg/graphite/id-4.f90. | |
2820 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand | |
2821 | when not needed. | |
2822 | ||
2823 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
2824 | ||
2825 | Fix testsuite/gfortran.dg/graphite/id-1.f90. | |
2826 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. | |
2827 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
2828 | (max_precision_type): New. | |
2829 | (value_clast): Removed. | |
2830 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
2831 | Use max_precision_type and update use of gmp_cst_to_tree. | |
2832 | (graphite_translate_clast_equation): Use max_precision_type. | |
2833 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
2834 | use the type of the condition. | |
2835 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
2836 | max_precision_type of lb and ub. | |
2837 | ||
2838 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
2839 | ||
2840 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
2841 | and sinfo.last. | |
2842 | ||
2843 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
2844 | ||
2845 | * testsuite/gcc.dg/graphite/pr38084.c: New. | |
2846 | * testsuite/gfortran.dg/graphite/id-1.f90: New. | |
2847 | * testsuite/gfortran.dg/graphite/id-2.f90: New. | |
2848 | * testsuite/gfortran.dg/graphite/id-3.f90: New. | |
2849 | * testsuite/gfortran.dg/graphite/id-4.f90: New. | |
2850 | * testsuite/gfortran.dg/graphite/pr37857.f90: New. | |
2851 | ||
2852 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
2853 | Jan Sjodin <jan.sjodin@amd.com> | |
2854 | Harsha Jagasia <harsha.jagasia@amd.com> | |
2855 | ||
2856 | PR middle-end/37852 | |
2857 | PR middle-end/37883 | |
2858 | PR middle-end/37928 | |
2859 | PR middle-end/37980 | |
2860 | PR middle-end/38038 | |
2861 | PR middle-end/38039 | |
2862 | PR middle-end/38073 | |
2863 | PR middle-end/38083 | |
2864 | PR middle-end/38125 | |
2865 | ||
2866 | * testsuite/gcc.dg/graphite/pr38073.c: New. | |
2867 | * testsuite/gcc.dg/graphite/pr37928.c: New. | |
2868 | * testsuite/gcc.dg/graphite/pr37883.c: New. | |
2869 | * testsuite/gcc.dg/graphite/pr38125.c: New. | |
2870 | * testsuite/gfortran.dg/graphite/pr38083.f90: New. | |
2871 | * testsuite/gfortran.dg/graphite/pr37852.f90: New. | |
2872 | * testsuite/gfortran.dg/graphite/pr37980.f90: New. | |
2873 | ||
2874 | * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for | |
2875 | the number of detected scops. Copy exact same test for loop | |
2876 | blocking... | |
2877 | * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected | |
2878 | loops to be blocked as reductions are not handled. | |
2879 | * testsuite/gcc.dg/graphite/block-4.c: ...here. New. | |
2880 | ||
2881 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
2882 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
2883 | ...here. | |
2884 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
2885 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
2886 | (graphite.o-warn): Removed -Wno-error. | |
2887 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
2888 | to be a NULL pointer. Call update_stmt. Return the newly created | |
2889 | cannonical induction variable. | |
2890 | ||
2891 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
2892 | ||
2893 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
2894 | Include value-prof.h. | |
2895 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
2896 | (get_old_iv_from_ssa_name): Removed. | |
2897 | (graphite_stmt_p): New. | |
2898 | (new_graphite_bb): Test for useful statements before building a | |
2899 | graphite statement for the basic block. | |
2900 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
2901 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
2902 | reason. | |
2903 | (recompute_all_dominators, graphite_verify, | |
2904 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
2905 | (scop_record_loop): Call graphite_loop_normal_form. | |
2906 | (build_scop_loop_nests): Iterate over all the blocks of the | |
2907 | function instead of relying on the incomplete information from | |
2908 | SCOP_BBS. Return the success of the operation. | |
2909 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
2910 | (add_bb_domains): Removed. | |
2911 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
2912 | Add the iteration domain only to the basic blocks that have been | |
2913 | translated to graphite. | |
2914 | (build_scop_conditions_1): Add constraints only if the basic | |
2915 | block have been translated to graphite. | |
2916 | (build_scop_data_accesses): Completely disabled until data | |
2917 | dependence is correctly implemented. | |
2918 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
2919 | (remove_all_edges_1, remove_all_edges): Removed. | |
2920 | (get_new_name_from_old_name): New. | |
2921 | (graphite_rename_variables_in_stmt): Renamed | |
2922 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
2923 | Use replace_exp and update_stmt. | |
2924 | (is_old_iv): Renamed is_iv. | |
2925 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
2926 | Use replace_exp and update_stmt. | |
2927 | (expand_scalar_variables_expr): Same. Use the map to get the | |
2928 | new names for the renaming of induction variables and for the | |
2929 | renaming of variables after a basic block has been copied. | |
2930 | (expand_scalar_variables): Same. | |
2931 | (graphite_rename_variables): Renamed rename_variables. | |
2932 | (move_phi_nodes): Removed. | |
2933 | (get_false_edge_from_guard_bb): New. | |
2934 | (build_iv_mapping): Do not insert the induction variable of a | |
2935 | loop in the renaming iv map if the basic block does not belong | |
2936 | to that loop. | |
2937 | (register_old_new_names, graphite_copy_stmts_from_block, | |
2938 | copy_bb_and_scalar_dependences): New. | |
2939 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
2940 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
2941 | At each translation step call graphite_verify ensuring the | |
2942 | consistency of the SSA, loops and dominators information. | |
2943 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
2944 | find_vdef_for_var_1, find_vdef_for_var, | |
2945 | patch_phis_for_virtual_defs): Removed huge hack. | |
2946 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
2947 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
2948 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
2949 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
2950 | if_region_get_condition_block, if_region_set_false_region, | |
2951 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
2952 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
2953 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
2954 | rewrite_into_sese_closed_ssa): New. | |
2955 | (gloog): Remove dead code. Early return if code cannot be | |
2956 | generated. Call cleanup_tree_cfg once the scop has been code | |
2957 | generated. | |
2958 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
2959 | block loops with less than two loops. | |
2960 | (graphite_apply_transformations): Remove the call to | |
2961 | scop_remove_ignoreable_gbbs. | |
2962 | (limit_scops): When build_scop_loop_nests fails, continue on | |
2963 | the next scop. Fix open_scop.entry. | |
2964 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
2965 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
2966 | Call initialize_original_copy_tables and free_original_copy_tables | |
2967 | to be able to copy basic blocks during code generation. | |
2968 | When build_scop_loop_nests fails, continue on next scop. | |
2969 | (value_clast): New union. | |
2970 | (clast_to_gcc_expression): Fix type cast warning. | |
2971 | ||
2972 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
2973 | ||
2974 | * Merge from mainline (r140838:141727). | |
2975 | ||
2976 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
2977 | ||
2978 | PR middle-end/37833 | |
2979 | ||
2980 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
2981 | ||
2982 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
2983 | ||
2984 | PR middle-end/37943 | |
2985 | ||
2986 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
2987 | exits and conditions. | |
2988 | * testsuite/gcc.dg/graphite/pr37943.c: New. | |
2989 | ||
2990 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
2991 | ||
2992 | PR middle-end/37886 | |
2993 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
2994 | ||
2995 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
2996 | ||
2997 | * doc/invoke.texi: Fix spaces. | |
2998 | ||
2999 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
3000 | ||
3001 | PR tree-optimization/37891 | |
3002 | Reverted last commit. | |
3003 | * graphite.c (create_single_entry_edge): Set | |
3004 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
3005 | ||
3006 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
3007 | Mitul Thakkar <mitul.thakkar@amd.com> | |
3008 | ||
3009 | * graphite.c (create_single_entry_edge): Set | |
3010 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
3011 | ||
3012 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
3013 | ||
3014 | * doc/invoke.texi: Add -fgraphite-identity. | |
3015 | * graphite.c (graphite_apply_transformations): Check for | |
3016 | -fgraphite-identity. | |
3017 | * toplev.c (process_options): Add flag_graphite_identity. | |
3018 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
3019 | ||
3020 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
3021 | ||
3022 | Undo changes from 2008-10-02: | |
3023 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
3024 | operand type when copying the operand to a variable of different type. | |
3025 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
3026 | with the IV name after increment. | |
3027 | ||
3028 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
3029 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3030 | ||
3031 | PR tree-optimization/37828 | |
3032 | * testsuite/gcc.dg/graphite/pr37828.c: New. | |
3033 | * graphite.c (graphite_trans_loop_block): Do not loop block | |
3034 | single nested loops. | |
3035 | ||
3036 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
3037 | Sebastian Pop <sebastian.pop@amd.com> | |
3038 | ||
3039 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
3040 | rename_map_elt_info, eq_rename_map_elts): New. | |
3041 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
3042 | (expand_scalar_variables_expr): Change parameters. | |
3043 | (expand_scalar_variables_stmt): Same. | |
3044 | (expand_scalar_variables): Same. | |
3045 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
3046 | (build_iv_mapping): New. | |
3047 | (translate_clast): Call build_iv_mapping. | |
3048 | * graphite.h (gbb_p): New name. | |
3049 | ||
3050 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
3051 | ||
3052 | PR tree-optimization/37684 | |
3053 | * gcc.dg/graphite/pr37684.c: New. | |
3054 | * graphite.c (exclude_component_ref): New. | |
3055 | (is_simple_operand): Call exclude_component_ref. | |
3056 | ||
3057 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
3058 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3059 | ||
3060 | PR tree-optimization/37485 | |
3061 | * gcc.dg/graphite/block-2.c: New | |
3062 | * graphite.c (gmp_cst_to_tree): Moved. | |
3063 | (iv_stack_entry_is_constant): New. | |
3064 | (iv_stack_entry_is_iv): New. | |
3065 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
3066 | (loop_iv_stack_insert_constant): New. | |
3067 | (loop_iv_stack_pop): Use new datatpype. | |
3068 | (loop_iv_stack_get_iv): Same. | |
3069 | (loop_iv_stack_get_iv_from_name): Same. | |
3070 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
3071 | (loop_iv_stack_patch_for_consts): New. | |
3072 | (loop_iv_stack_remove_constants): New. | |
3073 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
3074 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
3075 | loop_iv_stack_remove_constants. | |
3076 | (gloog): Use new datatype. Redirect construction edge to end | |
3077 | block to avoid accidental deletion. | |
3078 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
3079 | iv stack entry. | |
3080 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
3081 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
3082 | ||
3083 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
3084 | ||
3085 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
3086 | operand type when copying the operand to a variable of different type. | |
3087 | ||
3088 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
3089 | ||
3090 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
3091 | with the IV name after increment. | |
3092 | ||
3093 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
3094 | ||
3095 | * Merge from mainline (r140164:140838). | |
3096 | ||
3097 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
3098 | ||
3099 | * graphite-data-ref.c: New. | |
3100 | * graphite.c (print_scop): Also dump the dependence graph. | |
3101 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
3102 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
3103 | (build_scop_dynamic_schedules): New. | |
3104 | (build_access_matrix_with_af): Fixed column numbering. | |
3105 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
3106 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
3107 | (struct scop): Add dep_graph field. | |
3108 | (SCOP_DEP_GRAPH): Defined. | |
3109 | (ref_nb_loops): Fixed and moved to other position. | |
3110 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
3111 | (nb_loops_around_loop_in_scop): New. | |
3112 | (graphite_dump_dependence_graph): Declared. | |
3113 | (graphite_build_rdg_all_levels): Declared. | |
3114 | (graphite_test_dependence): Declared. | |
3115 | * Makefile.in (graphite-data-ref.o): New target. | |
3116 | ||
3117 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
3118 | ||
3119 | * Merge from mainline (139870:140164). | |
3120 | ||
3121 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
3122 | ||
3123 | * Merge from mainline (138275:139870). | |
3124 | * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of | |
3125 | the commits from trunk broke the niter detection. | |
3126 | ||
3127 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
3128 | ||
3129 | * graphite.c: Add more documentation. Fix formatting. | |
3130 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
3131 | loop_iv_stack_debug): Moved... | |
3132 | (schedule_to_scattering): Move before use. | |
3133 | (dot_all_scops): Include in "#if 0" the code for system | |
3134 | call dotty. | |
3135 | ||
3136 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
3137 | loop_iv_stack_debug): ...here. | |
3138 | ||
3139 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
3140 | ||
3141 | * tree-phinodes.c (make_phi_node): Extern. | |
3142 | (add_phi_node_to_bb): New. | |
3143 | (create_phi_node): Call add_phi_node_to_bb. | |
3144 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
3145 | (remove_statement): Handle case where stored phi was updated | |
3146 | and is no longer the same. | |
3147 | * graphite.c (is_parameter): New. | |
3148 | (is_old_iv): New. | |
3149 | (expand_scalar_variables_expr): New. | |
3150 | (expand_scalar_variables_stmt): New. | |
3151 | (expand_scalar_variables): New. | |
3152 | (move_phi_nodes): Create new phi instead of moving old one. | |
3153 | (translate_clast): Call expand_scalar_variables. | |
3154 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
3155 | (skip_phi_defs): New. | |
3156 | (collect_scop_exit_phi_args): New. | |
3157 | (patch_scop_exit_phi_args): New. | |
3158 | (gloog): Patch phis after scop. | |
3159 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
3160 | (make_phi_node): Declared. | |
3161 | ||
3162 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
3163 | ||
3164 | * graphite.c (end_scop): Split the entry of the scop when it | |
3165 | is the header of the loop in which the scop is ending. | |
3166 | (build_scops_1, limit_scops): Update uses of end_scop. | |
3167 | ||
3168 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
3169 | ||
3170 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
3171 | SCOP_ENTRY or SCOP_EXIT. | |
3172 | ||
3173 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3174 | ||
3175 | * graphite.c (get_construction_edge): Removed. | |
3176 | (gloog): Construction edge is the scop entry edge. | |
3177 | ||
3178 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3179 | ||
3180 | * graphite.c (can_generate_for_scop): Removed. | |
3181 | (gloog): Do not call it. | |
3182 | ||
3183 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3184 | ||
3185 | * graphite.c (new_scop): Entry of a scop is an edge. | |
3186 | Initialize SESE region. | |
3187 | (free_scop): Free SESE region. | |
3188 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
3189 | (split_difficult_bb): New, split from end_scop. | |
3190 | (end_scop): Exit of a scop is an edge. | |
3191 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
3192 | not automatically updated and thus is always wrong. | |
3193 | * graphite.h (struct sese): New. | |
3194 | (SESE_ENTRY): New. | |
3195 | (SESE_EXIT): New. | |
3196 | (struct scop): New field for a SESE region. Remove entry, exit. | |
3197 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
3198 | semantics as before. Moved comment around. | |
3199 | ||
3200 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
3201 | Sebastian Pop <sebastian.pop@amd.com> | |
3202 | ||
3203 | * graphite.c (graphite_transform_loops): Always enable gloog | |
3204 | and find_transform when ENABLE_CHECKING. | |
3205 | ||
3206 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3207 | ||
3208 | * graphite.c (graphite_transform_loops): Move pretty printer | |
3209 | of SCOPs before doing any transform. Remove call to print_scops | |
3210 | and dot_all_scops_1. | |
3211 | ||
3212 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3213 | ||
3214 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
3215 | (print_graphite_bb): Same. | |
3216 | ||
3217 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3218 | ||
3219 | * graphite.c (dot_all_scops_1): Cleanup. | |
3220 | (move_scops): Fix comment. | |
3221 | ||
3222 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3223 | ||
3224 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
3225 | ||
3226 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3227 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3228 | ||
3229 | * graphite.c (build_scop_bbs): Factor up code. | |
3230 | ||
3231 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
3232 | ||
3233 | * graphite.c (gloog): Update dominator info. | |
3234 | ||
3235 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
3236 | ||
3237 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
3238 | ||
3239 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
3240 | ||
3241 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
3242 | initialization. | |
3243 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
3244 | (translate_clast): Correct formatting. | |
3245 | * graphite.h (struct num_map): Removed. | |
3246 | (struct graphite_bb): Remove num_map field. | |
3247 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
3248 | ||
3249 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
3250 | ||
3251 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
3252 | (build_scop_data_accesses): Same. | |
3253 | ||
3254 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
3255 | ||
3256 | * graphite.c (build_scop_data_accesses): Don't construct | |
3257 | access matrices. Add a FIXME and an assert condition that | |
3258 | should pass when the access matrices will be needed. | |
3259 | ||
3260 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
3261 | ||
3262 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
3263 | really_constant_p. | |
3264 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
3265 | Moved close by free_graphite_bb. | |
3266 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
3267 | (new_scop): Move close by free_scop. | |
3268 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
3269 | ||
3270 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
3271 | ||
3272 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
3273 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
3274 | instead of recursive call. | |
3275 | (graphite_translate_clast_equation): New. | |
3276 | (graphite_create_guard_cond_expr): New. | |
3277 | (graphite_create_new_guard): New. | |
3278 | (get_stack_index_from_iv): Removed. | |
3279 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
3280 | (get_true_edge_from_guard_bb): New. | |
3281 | (translate_clast): Handle stmt_guard in clast. | |
3282 | (get_construction_edge): Allow construction edge detection for | |
3283 | a scope entry with multiple predecessors if one predecessor is | |
3284 | the immediate dominator of scope entry. | |
3285 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
3286 | (gloog): Use correct context loop. Removed check for post dominators. | |
3287 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
3288 | ||
3289 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3290 | ||
3291 | * graphite.c (remove_dead_loops): Document better which | |
3292 | loops are removed. | |
3293 | ||
3294 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3295 | ||
3296 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
3297 | and PPLINC. | |
3298 | (graphite.o): Also depends on pointer-set.h. | |
3299 | ||
3300 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3301 | ||
3302 | * graphite.c (scop_record_loop): Fix compile warning. | |
3303 | ||
3304 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
3305 | Sebastian Pop <sebastian.pop@amd.com> | |
3306 | ||
3307 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
3308 | ||
3309 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3310 | ||
3311 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
3312 | point to the graphite_bb_p. | |
3313 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
3314 | content of bb->aux. | |
3315 | (add_bb_domains): Does not use the scop parameter. | |
3316 | (graphite_transform_loops): Clean bb->aux at the end. | |
3317 | ||
3318 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3319 | Sebastian Pop <sebastian.pop@amd.com> | |
3320 | ||
3321 | * testsuite/lib/target-supports.exp | |
3322 | (check_effective_target_fgraphite): New. | |
3323 | ||
3324 | * testsuite/gcc.dg/graphite/graphite.exp: Early exit when | |
3325 | check_effective_target_fgraphite returns false. | |
3326 | Set dg-do-what-default to compile. | |
3327 | (scan-graphite-dump-times): Removed. | |
3328 | * testsuite/gfortran.dg/graphite/graphite.exp: Same. | |
3329 | ||
3330 | * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". | |
3331 | Use scan-tree-dump-times instead of scan-graphite-dump-times. | |
3332 | * testsuite/gcc.dg/graphite/scop-1.c: Same. | |
3333 | * testsuite/gcc.dg/graphite/scop-2.c: Same. | |
3334 | * testsuite/gcc.dg/graphite/scop-3.c: Same. | |
3335 | * testsuite/gcc.dg/graphite/scop-4.c: Same. | |
3336 | * testsuite/gcc.dg/graphite/scop-5.c: Same. | |
3337 | * testsuite/gcc.dg/graphite/scop-6.c: Same. | |
3338 | * testsuite/gcc.dg/graphite/scop-7.c: Same. | |
3339 | * testsuite/gcc.dg/graphite/scop-8.c: Same. | |
3340 | * testsuite/gcc.dg/graphite/scop-9.c: Same. | |
3341 | * testsuite/gcc.dg/graphite/scop-10.c: Same. | |
3342 | * testsuite/gcc.dg/graphite/scop-11.c: Same. | |
3343 | * testsuite/gcc.dg/graphite/scop-12.c: Same. | |
3344 | * testsuite/gcc.dg/graphite/scop-13.c: Same. | |
3345 | * testsuite/gcc.dg/graphite/scop-matmult.c: Same. | |
3346 | * testsuite/gcc.dg/graphite/scop-14.c: Same. | |
3347 | * testsuite/gcc.dg/graphite/scop-15.c: Same. | |
3348 | * testsuite/gcc.dg/graphite/block-0.c: Same. | |
3349 | * testsuite/gcc.dg/graphite/scop-16.c: Same. | |
3350 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
3351 | * testsuite/gcc.dg/graphite/scop-17.c: Same. | |
3352 | * testsuite/gcc.dg/graphite/scop-18.c: Same. | |
3353 | * testsuite/gfortran.dg/graphite/block-1.f90: Same. | |
3354 | * testsuite/gfortran.dg/graphite/scop-1.f: Same. | |
3355 | * testsuite/gfortran.dg/graphite/block-2.f: Same. | |
3356 | ||
3357 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3358 | ||
3359 | * graphite.c: Fix some XXX comments. | |
3360 | (build_scop_dynamic_schedules): Removed. | |
3361 | ||
3362 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3363 | ||
3364 | * graphite.h (scop_max_loop_depth): Moved... | |
3365 | * graphite.c (scop_max_loop_depth): ...here. | |
3366 | (remove_all_edges_1): New. | |
3367 | (remove_all_edges): Factored code. | |
3368 | (remove_cond_exprs): Check only the last statement for | |
3369 | a GIMPLE_COND expression. | |
3370 | ||
3371 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3372 | ||
3373 | * graphite.c (scan_tree_for_params): Early return when the | |
3374 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
3375 | (find_scop_parameters): Factor out code. | |
3376 | (graphite_trans_bb_strip_mine): Remove dead code. | |
3377 | ||
3378 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3379 | ||
3380 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
3381 | graphite_trans_bb_move_loop): Factor asserts. | |
3382 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
3383 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
3384 | ||
3385 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
3386 | ||
3387 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
3388 | create_loops_mapping_num, debug_loop_mapping_1, | |
3389 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
3390 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
3391 | graphite_loops_mapping_add_child_num, | |
3392 | graphite_loops_mapping_insert_child, | |
3393 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
3394 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
3395 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
3396 | create_num_from_index, get_num_from_index, | |
3397 | swap_loop_mapped_depth): Removed. | |
3398 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
3399 | (free_scop): Do not call free_loops_mapping. | |
3400 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
3401 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
3402 | get_loop_mapped_depth. | |
3403 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
3404 | (graphite_trans_bb_strip_mine): Same. | |
3405 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
3406 | (struct scop): Remove field loops_mapping. | |
3407 | ||
3408 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3409 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3410 | ||
3411 | * graphite.c (scop_record_loop): Factor out one level of the | |
3412 | condition by early return. | |
3413 | (build_scop_loop_nests): Format following FSF coding style. | |
3414 | (build_scop_dynamic_schedules): Factor out code. | |
3415 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
3416 | ||
3417 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3418 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3419 | ||
3420 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
3421 | assignments that are not handled as simple operands for now. | |
3422 | ||
3423 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3424 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3425 | ||
3426 | * graphite.c (build_scop_bbs): Factor up code. | |
3427 | ||
3428 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3429 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3430 | ||
3431 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
3432 | of the loop. | |
3433 | (enum gbb_type): New. Group all the GBB_* types under it. | |
3434 | (is_loop_exit): Moved... | |
3435 | (end_scop): Enable BB spliting. | |
3436 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
3437 | * cfgloop.h (is_loop_exit): Declared. | |
3438 | ||
3439 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3440 | ||
3441 | * doc/invoke.texi: Remove strides from examples containing | |
3442 | DO loops when the strides are equal to 1. | |
3443 | ||
3444 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
3445 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3446 | ||
3447 | * graphite.c (graphite_trans_scop_block): Or the result with | |
3448 | the result from graphite_trans_loop_block. | |
3449 | * testsuite/gcc.dg/graphite/block-1.c: New. | |
3450 | * testsuite/gfortran.dg/graphite/block-1.f90: New. | |
3451 | * testsuite/gfortran.dg/graphite/block-2.f: New. | |
3452 | ||
3453 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3454 | ||
3455 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
3456 | and cloog_finalize. | |
3457 | ||
3458 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3459 | ||
3460 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
3461 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
3462 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
3463 | (is_simple_operand): Call stmt_simple_memref_p. | |
3464 | ||
3465 | * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not | |
3466 | using pointer arithmetic, as this is optimized by PRE and | |
3467 | makes the code too difficult to analyze. | |
3468 | ||
3469 | * testsuite/gcc.dg/graphite/scop-18.c: Same. | |
3470 | ||
3471 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
3472 | ||
3473 | * gdbinit.in (pgg): New. | |
3474 | ||
3475 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
3476 | ||
3477 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
3478 | ||
3479 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
3480 | ||
3481 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
3482 | ||
3483 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
3484 | ||
3485 | * graphite.c (graphite_trans_bb_block): Remove check for | |
3486 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
3487 | Check if loop blocking is profitable for every loop, before applying | |
3488 | the changes. | |
3489 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
3490 | if flag_loop_block is set. | |
3491 | ||
3492 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
3493 | ||
3494 | * graphite.c: Add some more documentation for the loop | |
3495 | mapping. | |
3496 | ||
3497 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
3498 | ||
3499 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
3500 | * graphite.c: Format on less than 80 columns. | |
3501 | * graphite.h: Same. | |
3502 | ||
3503 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
3504 | ||
3505 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
3506 | ||
3507 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
3508 | ||
3509 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
3510 | floop-interchange): Update documentation with examples. | |
3511 | ||
3512 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3513 | ||
3514 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
3515 | add_referenced_var. | |
3516 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
3517 | ||
3518 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3519 | ||
3520 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
3521 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
3522 | * tree-scalar-evolution.c: Revert useless changes. | |
3523 | * tree-phinodes.c: Same. | |
3524 | * cfghooks.c: Same. | |
3525 | * vec.h: Same. | |
3526 | * tree-vectorizer.h: Same. | |
3527 | * tree-flow.h: Same. | |
3528 | * tree-cfg.c: Same. | |
3529 | * common.opt (fgraphite): Update documentation. | |
3530 | ||
3531 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
3532 | ||
3533 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
3534 | -floop-interchange): Add more text for explaining what each of these | |
3535 | flags is doing. | |
3536 | * tree-into-ssa.c (gimple_vec): Moved to... | |
3537 | * graphite.c: Include gimple.h. | |
3538 | (gimple_vec): Moved to... | |
3539 | (del_loop_to_cloog_loop): Removed. | |
3540 | (loop_affine_expr): Do not call create_data_ref when the | |
3541 | operand is a constant. | |
3542 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
3543 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
3544 | * gimple.h (gimple_vec): ... here. | |
3545 | ||
3546 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3547 | ||
3548 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
3549 | latch executions. | |
3550 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
3551 | ||
3552 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3553 | ||
3554 | * graphite.c (add_conditions_to_domain): New. | |
3555 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
3556 | (set_cloog_options): Allow to disable optimizations. | |
3557 | ||
3558 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3559 | ||
3560 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
3561 | Do not use walk_dominator_tree. | |
3562 | (find_scop_parameters): Do not use walk_dominator_tree. | |
3563 | ||
3564 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3565 | ||
3566 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
3567 | (idx_record_params): Adapt. | |
3568 | * graphite.h (scop_gimple_loop_depth): New. | |
3569 | ||
3570 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3571 | ||
3572 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
3573 | (scan_tree_for_params): Remove value_init. | |
3574 | (build_scop_context): Remove value_init. | |
3575 | (build_loop_iteration_domains): Remove value_init. | |
3576 | (schedule_to_scattering): Remove value_init. | |
3577 | (graphite_trans_bb_strip_mine): Remove value_init. | |
3578 | ||
3579 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3580 | ||
3581 | * gcc/graphite.c (limit_scops): New. | |
3582 | (graphite_transform_loops): Add limit SCoPs. | |
3583 | * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs. | |
3584 | * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
3585 | * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
3586 | * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
3587 | * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
3588 | * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
3589 | * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
3590 | * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
3591 | * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
3592 | Change loop numbers. | |
3593 | * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs. | |
3594 | Change loop numbers. | |
3595 | * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs. | |
3596 | * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
3597 | * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
3598 | * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
3599 | * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
3600 | * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
3601 | * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
3602 | * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
3603 | * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
3604 | * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
3605 | ||
3606 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3607 | ||
3608 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
3609 | ||
3610 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3611 | ||
3612 | * graphite.c (free_loops_mapping): New. | |
3613 | (stmt_simple_for_scop_p): Fix typo. | |
3614 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
3615 | broke polyhedron. | |
3616 | (free_graphite_bb): Fix some memleaks. | |
3617 | (free_scop): Fix some memleaks. | |
3618 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
3619 | (find_params_in_bb): Fix some memleaks. | |
3620 | (clast_to_gcc_expression): Fix warning. | |
3621 | ||
3622 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
3623 | ||
3624 | * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit. | |
3625 | * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
3626 | ||
3627 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
3628 | ||
3629 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
3630 | Move code ifdef-ed HAVE_cloog... | |
3631 | * graphite.c: Include toplev.h. | |
3632 | ... here. | |
3633 | * Makefile.in (OBJS-common): Always build graphite.o. | |
3634 | (BACKEND): Remove @GRAPHITE@. | |
3635 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
3636 | (graphite.o): Depend on TOPLEV_H. | |
3637 | ||
3638 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
3639 | ||
3640 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
3641 | Remove typo left from polylib to ppl conversion. | |
3642 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
3643 | ||
3644 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3645 | ||
3646 | * toplev.c (process_options): Move the graphite loop optimization | |
3647 | flags... | |
3648 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
3649 | When not configured with CLooG, print to dump_file that | |
3650 | Graphite transforms were not performed. | |
3651 | * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): | |
3652 | New. | |
3653 | * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use | |
3654 | scan-graphite-dump-times. | |
3655 | ||
3656 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3657 | ||
3658 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
3659 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
3660 | ||
3661 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
3662 | Jan Sjodin <jan.sjodin@amd.com> | |
3663 | ||
3664 | * configure: Regenerated. | |
3665 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
3666 | * config.in (HAVE_polylib): Removed. | |
3667 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
3668 | (PPLLIBS, PPLINC): Added. | |
3669 | * graphite.c: Replace unsigned with int wherever possible. | |
3670 | Don't access Cloog's data structures, but use accessor functions. | |
3671 | Clast's stmt->type is now implemented as a vtable: change the | |
3672 | switches of stmt->type into ifs. | |
3673 | (polylib/polylibgmp.h): Don't include. | |
3674 | (initialize_dependence_polyhedron, | |
3675 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
3676 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
3677 | dump_dependence_graph): Removed until this code is cleaned up | |
3678 | or ported to Cloog. | |
3679 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
3680 | (POLYLIBINC): Renamed PPLINC. | |
3681 | ||
3682 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
3683 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3684 | Jan Sjodin <jan.sjodin@amd.com> | |
3685 | ||
3686 | Finish the merge and tuplification of graphite. | |
3687 | ||
3688 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
3689 | Jan Sjodin <jan.sjodin@amd.com> | |
3690 | ||
3691 | Partial merge from mainline (138072:138275). | |
3692 | * graphite.c still has to be tuplified. | |
3693 | ||
3694 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
3695 | ||
3696 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
3697 | (create_num_from_index): New. | |
3698 | (get_num_from_index): Also pass in the graphite BB. | |
3699 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
3700 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
3701 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
3702 | (is_interchange_valid): Return false when failing. | |
3703 | * graphite.h (struct num_map): New. | |
3704 | (struct graphite_bb): New field num_map. | |
3705 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
3706 | ||
3707 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
3708 | ||
3709 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
3710 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
3711 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
3712 | {<, <=, >, >=}. | |
3713 | ||
3714 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
3715 | ||
3716 | * graphite.h (struct scop): Removed new_ivs field. | |
3717 | (SCOP_NEWIVS): Deleted. | |
3718 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
3719 | clast_to_gcc_expression, graphite_create_new_loop): | |
3720 | Removed use of new_ivs. | |
3721 | ||
3722 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
3723 | ||
3724 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
3725 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
3726 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
3727 | (get_loop_mapping_for_num, | |
3728 | graphite_loops_mapping_add_child, | |
3729 | graphite_loops_mapping_add_child_num, | |
3730 | graphite_loops_mapping_insert_child, | |
3731 | graphite_loops_mapping_parent, | |
3732 | split_loop_mapped_depth_for_num, | |
3733 | loop_mapped_depth_split_loop): New. | |
3734 | (increment_loop_mapped_depths): Removed. | |
3735 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
3736 | (new_scop): Call create_loops_mapping. | |
3737 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
3738 | (translate_clast): Pass the old loop father in parameter, and pass | |
3739 | it to get_old_iv_from_ssa_name. | |
3740 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
3741 | can_generate_code, can_generate_for_scop): New. | |
3742 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
3743 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
3744 | ||
3745 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
3746 | ||
3747 | Reverted all the changes related to the streamization and | |
3748 | loop fusion. | |
3749 | These changes are now tracked in the streamization branch. | |
3750 | ||
3751 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
3752 | Jan Sjodin <jan.sjodin@amd.com> | |
3753 | ||
3754 | * graphite.c (gbb_compare): Correctly constify. | |
3755 | (gbb_can_be_ignored): Indent. | |
3756 | (graphite_trans_scop_swap_1and2): Add legality check. | |
3757 | Remove dead FIXMEs. | |
3758 | ||
3759 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
3760 | ||
3761 | Remove fallouts from "Reverted the Condate changes". | |
3762 | * tree.h: Remove unused decl. | |
3763 | * testsuite/gcc.dg/tree-checker: Same. | |
3764 | * timevar.def: Remove counter. | |
3765 | ||
3766 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
3767 | ||
3768 | * Merge from mainline (135673:138072). | |
3769 | ||
3770 | Reverted the MIRO changes (from 2008-04-05) that are now | |
3771 | tracked in the miro branch. | |
3772 | * tree-bounds.c: Removed. | |
3773 | * tree-bounds.h: Removed. | |
3774 | ||
3775 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
3776 | are now tracked in the condate branch. | |
3777 | * tree-check.c: Removed. | |
3778 | * tree-match.c: Removed. | |
3779 | * condate.y: Removed. | |
3780 | ||
3781 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3782 | ||
3783 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
3784 | and -floop-interchange. | |
3785 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
3786 | graphite loop optimization flags is turned on. | |
3787 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
3788 | flag_loop_strip_mine and flag_loop_interchange checks before | |
3789 | optimizations. | |
3790 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
3791 | -floop-strip-mine and -floop-interchange. | |
3792 | * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove | |
3793 | -fgraphite. | |
3794 | * testsuite/gcc.dg/graphite/scop-16.c: Ditto. | |
3795 | * testsuite/gcc.dg/graphite/scop-17.c: Ditto. | |
3796 | * testsuite/gcc.dg/graphite/scop-18.c: Ditto. | |
3797 | ||
3798 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
3799 | Sebastian Pop <sebastian.pop@amd.com> | |
3800 | ||
3801 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
3802 | (create_empty_loop_on_edge): More fixes. | |
3803 | * tree-phinodes.c (resize_phi_node): Extern. | |
3804 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
3805 | * cfghooks.c (update_dominator_information): New split from | |
3806 | split_edge. | |
3807 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
3808 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
3809 | successor of the function entry block. | |
3810 | ||
3811 | * graphite.c: Include pointer-set.h. | |
3812 | (debug_loop_mapping, increment_loop_mapped_depths, | |
3813 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
3814 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
3815 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
3816 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
3817 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
3818 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
3819 | get_old_iv_from_ssa_name): New. | |
3820 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
3821 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
3822 | (scop_record_loop): Record old ivs. | |
3823 | (create_var_name): Removed. | |
3824 | (initialize_cloog_names): Allocate double space in case strip mine | |
3825 | applies to all loops once. | |
3826 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
3827 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
3828 | translation. | |
3829 | (graphite_create_new_loop): Pass in ivstack. | |
3830 | (remove_all_edges): Pass in the construction_edge. | |
3831 | (graphite_remove_iv): Removed. | |
3832 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
3833 | remove_cond_exprs): Rewritten. | |
3834 | (move_phi_nodes): New. | |
3835 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
3836 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
3837 | (set_cloog_options, debug_clast_stmt): New. | |
3838 | (find_transform): Use set_cloog_options. | |
3839 | (outermost_loop_layer): Removed. | |
3840 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
3841 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
3842 | mark_old_loops, remove_dead_loops): New. | |
3843 | (gloog): Rewritten. | |
3844 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
3845 | (const_column_index, get_first_matching_sign_row_index, | |
3846 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
3847 | get_upper_bound): New. | |
3848 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
3849 | ||
3850 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
3851 | (struct name_tree): Add a loop field. | |
3852 | (struct scop): Add a graphite_loops_mapping field. | |
3853 | (SCOP_LOOPS_MAPPING): New. | |
3854 | (debug_clast_stmt): Declare. | |
3855 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
3856 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
3857 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
3858 | (create_empty_loop_on_edge): Updated. | |
3859 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
3860 | rename_variables_in_bb): Declare. | |
3861 | * tree-cfg.c (remove_bb): Extern. | |
3862 | ||
3863 | * testsuite/gcc.dg/graphite/block-0.c: New. | |
3864 | ||
3865 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
3866 | Sebastian Pop <sebastian.pop@amd.com> | |
3867 | ||
3868 | * graphite.c (strip_mine_profitable_p): New. | |
3869 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
3870 | ||
3871 | * testsuite/gcc.dg/graphite/scop-18.c: New. | |
3872 | * testsuite/gcc.dg/graphite/scop-17.c: Fixed. | |
3873 | * testsuite/gcc.dg/graphite/scop-16.c: Fixed. | |
3874 | ||
3875 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
3876 | Jan Sjodin <jan.sjodin@amd.com> | |
3877 | Sebastian Pop <sebastian.pop@amd.com> | |
3878 | ||
3879 | * graphite.c (is_interchange_valid): New. | |
3880 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
3881 | of interchange. | |
3882 | ||
3883 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
3884 | outer_most_loop, gbb_outer_most_loop_index): New. | |
3885 | ||
3886 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
3887 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
3888 | * testsuite/gcc.dg/graphite/scop-16.c: New. | |
3889 | * testsuite/gcc.dg/graphite/scop-17.c: New. | |
3890 | ||
3891 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3892 | ||
3893 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
3894 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
3895 | ||
3896 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3897 | ||
3898 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
3899 | (scopdet_info): Add. | |
3900 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
3901 | (build_scops_1): Cleanup, bugfixes. | |
3902 | (build_scops): Cleanup. | |
3903 | ||
3904 | * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code. | |
3905 | * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
3906 | ||
3907 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
3908 | ||
3909 | * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case. | |
3910 | ||
3911 | * testsuite/gfortran.dg/graphite/graphite.exp: Use | |
3912 | DEFAULT_GRAPHITE_FLAGS. | |
3913 | ||
3914 | * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case. | |
3915 | ||
3916 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
3917 | ||
3918 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
3919 | MULT_EXPR parameter is negative. | |
3920 | ||
3921 | * testsuite/gfortran.dg/graphite/scop-1.f: New. | |
3922 | ||
3923 | * testsuite/gfortran.dg/graphite/graphite.exp: New. | |
3924 | ||
3925 | * testsuite/gcc.dg/graphite/scop-15.c: New. | |
3926 | ||
3927 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
3928 | ||
3929 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
3930 | ||
3931 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3932 | ||
3933 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
3934 | graphite_swap_loops. | |
3935 | (graphite_trans_bb_move_loop): New. | |
3936 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
3937 | (graphite_trans_bb_block): New. | |
3938 | (graphite_trans_loop_block): New. | |
3939 | (graphite_trans_scop_swap_1and2): Rename from | |
3940 | graphite_trans_swap_1and2. | |
3941 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
3942 | (graphite_trans_scop_block): New. | |
3943 | (graphite_apply_transformations): Rename from | |
3944 | graphite_transformations. | |
3945 | ||
3946 | * testsuite/gcc.dg/graphite/scop-matmult.c: New. | |
3947 | ||
3948 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3949 | ||
3950 | * graphite.c (gbb_compare): New. | |
3951 | (graphite_sort_gbbs): New. | |
3952 | (gbb_can_be_ignored): New. | |
3953 | (scop_remove_ignoreable_gbbs): New. | |
3954 | (graphite_transformations): Cleanup and add | |
3955 | scop_remove_ignoreable_gbbs. | |
3956 | * lambda.h (lambda_vector_compare): New. | |
3957 | ||
3958 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
3959 | ||
3960 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
3961 | (graphite_swap_loops): int -> unsigned | |
3962 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
3963 | (graphite_transformations): New. | |
3964 | (graphite_transform_loops): Move to graphite_transformations. | |
3965 | * graphite.h (gbb_nb_loops): Return unsigned. | |
3966 | ||
3967 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
3968 | ||
3969 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
3970 | the domain matrix. This makes scop-0.c work again. | |
3971 | ||
3972 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
3973 | ||
3974 | * graphite.h: Adjust copyright to GPLv3. | |
3975 | * graphite.c: Likewise. | |
3976 | (stmt_simple_memref_for_scop_p): Split out from ... | |
3977 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
3978 | and simplify. | |
3979 | (get_bb_type): Optimize. | |
3980 | (is_pred): Remove. | |
3981 | (is_bb_addable): Fix memleak, replace is_pred call with | |
3982 | single_pred. | |
3983 | (build_scops): Use current_loops. | |
3984 | (param_index): Fix memleak. | |
3985 | ||
3986 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
3987 | ||
3988 | * graphite.c: Fix formatting. | |
3989 | ||
3990 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
3991 | ||
3992 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
3993 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
3994 | (create_var_name, save_var_name): Newly defined functions. | |
3995 | (initialize_cloog_names): Part of the code factored out to | |
3996 | save_var_name. | |
3997 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
3998 | in clast_reduction statement. | |
3999 | (graphite_create_new_loop): Now takes a new parameter | |
4000 | for outer_loop. | |
4001 | (translate_clast): Now also takes the context_loop and bb_exit | |
4002 | parameters. Rewritten the code so that it creates a gimple code | |
4003 | inside the given context. | |
4004 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
4005 | remove_cond_expr, disconnect_cond_expr, | |
4006 | disconnect_virtual_phi_nodes): Newly defined functions. | |
4007 | * graphite.h (struct scop): added old_ivs vector. | |
4008 | SCOP_OLDIVS: New macro. | |
4009 | ||
4010 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4011 | ||
4012 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
4013 | ||
4014 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4015 | ||
4016 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
4017 | (create_empty_loop_on_edge): Defined. | |
4018 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
4019 | instead of void. | |
4020 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
4021 | (update_dominators_in_loop): Declared as extern | |
4022 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
4023 | ||
4024 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
4025 | ||
4026 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
4027 | in SCoP domain. | |
4028 | (initialize_cloog_names): Allow changing number of loops. | |
4029 | (build_cloog_prog): Simplify. | |
4030 | (find_transform): Enable cloog option --strides. | |
4031 | (graphite_swap_loops): New. | |
4032 | (graphite_strip_mine_loop): New. | |
4033 | (graphite_trans_swap_1and2): New. | |
4034 | (graphite_trans_strip): New. | |
4035 | (graphite_transform_loops): Add graphite_trans_strip. | |
4036 | * graphite.h (scop_max_loop_depth): New. | |
4037 | ||
4038 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
4039 | ||
4040 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
4041 | line. (Fixes compile) | |
4042 | ||
4043 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
4044 | ||
4045 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
4046 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
4047 | (build_bb_loops): New. | |
4048 | (graphite_transform_loops): Add build_bb_loops. | |
4049 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
4050 | numbers. | |
4051 | * graphite.h (graphite_bb): Add loops. | |
4052 | (gbb_nb_loops): New. | |
4053 | (gbb_loop_at_index): New. | |
4054 | (gbb_loop_index): New. | |
4055 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
4056 | using nb_params_in_scop. | |
4057 | ||
4058 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4059 | ||
4060 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
4061 | (build_scop_canonical_schedules): Build minimized schedule. | |
4062 | (schedule_to_scattering): Adapt to minimized schedule. | |
4063 | * graphite.h (graphite_bb): Add/Update descriptions. | |
4064 | ||
4065 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
4066 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4067 | ||
4068 | * graphite.c (print_graphite_bb): Add condition printing. | |
4069 | (dump_value): New. | |
4070 | (dump_gbb_conditions): New. | |
4071 | (build_scop_conditions_1): New. | |
4072 | (build_scop_conditions): New. | |
4073 | * graphite.h (graphite_bb): Add conditions. | |
4074 | ||
4075 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4076 | ||
4077 | * graphite.c (print_graphite_bb): | |
4078 | (free_graphite_bb): New. | |
4079 | (free_scop): Free bbs. | |
4080 | (get_bb_type): Free doms. | |
4081 | (build_scop_context): Free context matrix. | |
4082 | (build_loop_iteration_domains): Remove unused code. | |
4083 | (build_cloog_prog): Free scattering function and blocklist. | |
4084 | (find_transform): Free options. | |
4085 | ||
4086 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4087 | ||
4088 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
4089 | Remove unnecessery cloog data structures. Make a copy of the domain | |
4090 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
4091 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
4092 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
4093 | used. | |
4094 | (build_scop_iteration_domain): Remove unnecessary cloog | |
4095 | data structures. Fix memory leaks. | |
4096 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
4097 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
4098 | ||
4099 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
4100 | ||
4101 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
4102 | ||
4103 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
4104 | ||
4105 | * graphite.c (end_scop): Style fix. | |
4106 | (schedule_to_scattering): Style and comment fix. | |
4107 | ||
4108 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
4109 | * graphite.c (print_graphite_bb): Fix definiton of | |
4110 | schedule_to_scattering. | |
4111 | (initialize_cloog_names): Change nb_scattdims to max loop | |
4112 | depth in SCoP. | |
4113 | (schedule_to_scattering): Take parameter for number of scattering | |
4114 | dimensions. | |
4115 | (build_cloog_prog): Only build as much scattering dimensions as | |
4116 | necessary. | |
4117 | ||
4118 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
4119 | ||
4120 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
4121 | in polyhedron/aermod.f90. | |
4122 | ||
4123 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4124 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
4125 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4126 | ||
4127 | * graphite.c (is_bb_addable): Fix segfault. | |
4128 | ||
4129 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4130 | ||
4131 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
4132 | with multiple exits and conditional handling in edge cases. | |
4133 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
4134 | ||
4135 | * testsuite/gcc.dg/graphite/scop-14.c: New. | |
4136 | ||
4137 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4138 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
4139 | ||
4140 | * graphite.c (is_bb_addable): Add more comments and enhance | |
4141 | readablity of the source code. Fix memory leak. | |
4142 | (is_loop_exit): Fix memory leak. | |
4143 | ||
4144 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4145 | ||
4146 | * graphite.c (first_loop_in_scop): Deleted. | |
4147 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
4148 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
4149 | all loops in the first layer. | |
4150 | ||
4151 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4152 | ||
4153 | * graphite.c (scan_tree_for_params): Change the way params are | |
4154 | added to be indepenent of the number of loops. | |
4155 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
4156 | handling. | |
4157 | (build_cloog_prog): Revert to short matrix format. | |
4158 | ||
4159 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
4160 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
4161 | ||
4162 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
4163 | warning. | |
4164 | ||
4165 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
4166 | ||
4167 | * graphite.c (nb_data_refs_in_scop): New. | |
4168 | (graphite_transform_loops): Print more stats: number of | |
4169 | loops, basic blocks and data references per scop. | |
4170 | ||
4171 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4172 | Jan Sjodin <jan.sjodin@amd.com> | |
4173 | ||
4174 | * graphite.c (loop_affine_expr, idx_record_params, | |
4175 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
4176 | instead of instantiate_parameters. | |
4177 | ||
4178 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4179 | ||
4180 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
4181 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
4182 | cleanup. | |
4183 | ||
4184 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4185 | ||
4186 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
4187 | are contained completely in the SCoP. | |
4188 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
4189 | and the domains are fixed. | |
4190 | (build_scop_canonical_schedules): Add support for bbs not contained | |
4191 | in any SCoP. | |
4192 | ||
4193 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4194 | ||
4195 | * graphite.h (scop_contains_loop): Update comments to match | |
4196 | the actual behavior. | |
4197 | (scop_contains_loop): New. | |
4198 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
4199 | ||
4200 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4201 | ||
4202 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
4203 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
4204 | as GBB_COND_HEADER. | |
4205 | ||
4206 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4207 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4208 | ||
4209 | * graphite.c (graphite_transform_loops): Early return when | |
4210 | there are no loops in the function. | |
4211 | ||
4212 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
4213 | Jan Sjodin <jan.sjodin@amd.com> | |
4214 | ||
4215 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
4216 | offset of the last loop. | |
4217 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
4218 | ||
4219 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
4220 | Jan Sjodin <jan.sjodin@amd.com> | |
4221 | ||
4222 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
4223 | invariant_in_scop_p): Removed. | |
4224 | (scan_tree_for_params): Can be used with no constraint | |
4225 | matrix for gathering parameters. | |
4226 | (idx_record_params): Don't use idx_record_param, instead use | |
4227 | scan_tree_for_params. | |
4228 | (find_scop_parameters): Same. | |
4229 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
4230 | Fix the size of loop domains. | |
4231 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
4232 | (find_transform): Enable build_cloog_prog. | |
4233 | ||
4234 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
4235 | Jan Sjodin <jan.sjodin@amd.com> | |
4236 | ||
4237 | * graphite.c (schedule_to_scattering): Make scattering domains | |
4238 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
4239 | ||
4240 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
4241 | Jan Sjodin <jan.sjodin@amd.com> | |
4242 | ||
4243 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
4244 | translation of the scheduling function to scattering. | |
4245 | (build_cloog_prog): Call schedule_to_scattering only once. | |
4246 | * graphite.h (scop_loop_index): Do not fail for loops not | |
4247 | in the scop: return -1. | |
4248 | ||
4249 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4250 | ||
4251 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
4252 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
4253 | (setup_cloog_loop): Export GBB_DOMAIN. | |
4254 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
4255 | able to rebuild the original control flow. | |
4256 | * graphite.h (graphite_bb): Add domain field and access macro. | |
4257 | (GBB_DOMAIN): New. | |
4258 | ||
4259 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
4260 | ||
4261 | * graphite.c (debug_gbb): New. | |
4262 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
4263 | (build_scop_bbs): Reimplemented. | |
4264 | (dfs_bb_in_scop_p): Removed. | |
4265 | (build_scop_loop_nests): Reorder loops inserted in | |
4266 | SCOP_LOOP_NEST: outer loops should come first. | |
4267 | (build_scop_canonical_schedules): Reinitialize at zero | |
4268 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
4269 | that have already been parsed. | |
4270 | ||
4271 | * graphite.h (debug_gbb): Declared. | |
4272 | ||
4273 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
4274 | Jan Sjodin <jan.sjodin@amd.com> | |
4275 | ||
4276 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
4277 | (graphite_loop_to_gcc_loop): Removed. | |
4278 | (remove_all_edges): New. | |
4279 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
4280 | (gloog): Remove useless code. | |
4281 | ||
4282 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4283 | ||
4284 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
4285 | loops with one or multiple exits. | |
4286 | (is_loop_exit): New. | |
4287 | (is_pred): New. | |
4288 | (is_bb_addable): Rework condition handling, now support for case | |
4289 | case statements and loops with multiple exits. | |
4290 | ||
4291 | * testsuite/gcc.dg/graphite/scop-11.c: New. | |
4292 | * testsuite/gcc.dg/graphite/scop-12.c: New. | |
4293 | * testsuite/gcc.dg/graphite/scop-13.c: New. | |
4294 | ||
4295 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4296 | ||
4297 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
4298 | we have too many colors. | |
4299 | ||
4300 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
4301 | ||
4302 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
4303 | * tree-pass.h (pass_loop_fusion): Declared. | |
4304 | * tree-loop-fusion.c: New. | |
4305 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
4306 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
4307 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
4308 | * common.opt (ftree-loop-fusion): Declared. | |
4309 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
4310 | ||
4311 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
4312 | ||
4313 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
4314 | ||
4315 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
4316 | ||
4317 | * Merge from mainline (130800:135673). | |
4318 | ||
4319 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
4320 | ||
4321 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
4322 | Update dominators after splitting. | |
4323 | ||
4324 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
4325 | ||
4326 | * graphite.c (is_bb_addable): Return the harmful statement. | |
4327 | Factor up some code. | |
4328 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
4329 | (build_scops_1): Call end_scop. | |
4330 | ||
4331 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
4332 | ||
4333 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
4334 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
4335 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
4336 | build_scops_1): Removed. | |
4337 | (build_scops_2): Renamed build_scops_1. | |
4338 | ||
4339 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
4340 | ||
4341 | * graphite.c: Fix formatting. | |
4342 | ||
4343 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4344 | ||
4345 | * graphite.c (get_bb_type): New. | |
4346 | (move_scops): New. | |
4347 | (build_scops_2): New. | |
4348 | (is_bb_addable): New. | |
4349 | (build_scops): Switch the scop detection. | |
4350 | (build_scop_bbs): Add entry bb to scop. | |
4351 | * graphite.h (struct scop): Update comment. | |
4352 | ||
4353 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4354 | ||
4355 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
4356 | more colors. | |
4357 | ||
4358 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4359 | ||
4360 | * testsuite/gcc.dg/graphite/scop-1.c: Update. | |
4361 | * testsuite/gcc.dg/graphite/scop-2.c: Update. | |
4362 | * testsuite/gcc.dg/graphite/scop-4.c: Update. | |
4363 | * testsuite/gcc.dg/graphite/scop-5.c: Add. | |
4364 | * testsuite/gcc.dg/graphite/scop-6.c: Add. | |
4365 | ||
4366 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
4367 | ||
4368 | * testsuite/gcc.dg/graphite/scop-0.c: Add. | |
4369 | * testsuite/gcc.dg/graphite/scop-7.c: Add. | |
4370 | * testsuite/gcc.dg/graphite/scop-8.c: Add. | |
4371 | * testsuite/gcc.dg/graphite/scop-9.c: Add. | |
4372 | * testsuite/gcc.dg/graphite/scop-10.c: Add. | |
4373 | ||
4374 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4375 | ||
4376 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
4377 | Check affine expressions depending on the outermost loop | |
4378 | instead of a scop. | |
4379 | (stmt_simple_for_scop_p): Same. | |
4380 | (harmfule_stmt_in_scop): Same. | |
4381 | ||
4382 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
4383 | ||
4384 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
4385 | mark entry and exit, that are not part of the SCoP and update HTML | |
4386 | formatting. | |
4387 | ||
4388 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
4389 | ||
4390 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
4391 | harmful_stmt_in_bb. | |
4392 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
4393 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
4394 | (all_preds_visited_p, all_succs_visited_p, | |
4395 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
4396 | scop_end_loop): New. | |
4397 | (build_scops): Do not use dfs_enumerate_from. | |
4398 | ||
4399 | * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated. | |
4400 | ||
4401 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
4402 | ||
4403 | * graphite.c: Add comments to functions that are missing a | |
4404 | description. | |
4405 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
4406 | ||
4407 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
4408 | ||
4409 | * graphite.c (nb_params_in_scop): Moved... | |
4410 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
4411 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
4412 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
4413 | (graphite_create_iv): Return the new name of the IV. | |
4414 | (find_transform): Set options->esp and options->cpp. | |
4415 | (gloog): Comment out the invalidation of the old loop code. | |
4416 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
4417 | nb_params_in_scop. | |
4418 | ||
4419 | * graphite.h (nb_params_in_scop): ... here. | |
4420 | (scop_nb_params): Removed. | |
4421 | (loop_domain_dim): Return something even when the loop was not | |
4422 | found in the hash table: avoid ICEing on all the graphite.exp | |
4423 | testcases. | |
4424 | ||
4425 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4426 | ||
4427 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
4428 | ||
4429 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
4430 | according to nesting level. | |
4431 | (find_scop_parameters): Call instantiate_parameters. | |
4432 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
4433 | Inner loop bound can depend on outer loop induction variable. | |
4434 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
4435 | instantiate_parameters with respect to outermost_loop_in_scop. | |
4436 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
4437 | graphite.h. | |
4438 | (create_empty_loop): Function loopify should be given edge | |
4439 | probability, instead of edge frequency. Dominance relation from | |
4440 | switch_bb to loop_header. | |
4441 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
4442 | (gloog): New functionality for removing old loop. | |
4443 | (test_dependence): Factored out from build_rdg_all_levels. | |
4444 | (build_rdg_all_levels): Dependence testing factored out to | |
4445 | test_dependence function. | |
4446 | ||
4447 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
4448 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
4449 | from graphite.c | |
4450 | ||
4451 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4452 | ||
4453 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
4454 | nb_params_in_scop): Use name_tree map instead of just a tree | |
4455 | for keeping track of the variable name associated to that tree. | |
4456 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
4457 | clast_to_gcc_expression, graphite_create_iv, | |
4458 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
4459 | graphite_stmt_to_gcc_stmt): New. | |
4460 | (gloog): Call these. | |
4461 | * graphite.h (struct name_tree): New. | |
4462 | (struct scop): Use name_tree instead of tree for params. | |
4463 | Store a vector of name_tree for new_ivs. | |
4464 | (SCOP_NEWIVS): New. | |
4465 | (scop_nb_params): Use name_tree instead of tree. | |
4466 | ||
4467 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
4468 | Sebastian Pop <sebastian.pop@amd.com> | |
4469 | ||
4470 | * tree-bounds.c: New. | |
4471 | * tree-bounds.h: New. | |
4472 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
4473 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
4474 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
4475 | flag_mudflap. | |
4476 | * gcc.c: Same. | |
4477 | * toplev.c: Same. | |
4478 | * c-cppbuiltin.c: Same. | |
4479 | * c-pragma.c: Same. | |
4480 | * common.opt: Same. | |
4481 | * varasm.c: Same. | |
4482 | * tree-outof-ssa.c: Same. | |
4483 | * c-common.c: Same. | |
4484 | * Makefile.in: Same. | |
4485 | ||
4486 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
4487 | Sebastian Pop <sebastian.pop@amd.com> | |
4488 | ||
4489 | * tree-loop-distribution.c (remaining_stmts, | |
4490 | upstream_mem_writes): Removed static variables. | |
4491 | (copy_loop_before, create_bb_after_loop, | |
4492 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
4493 | rdg_build_components, rdg_build_partitions, | |
4494 | dump_rdg_partitions): Extern. | |
4495 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
4496 | return a bool. | |
4497 | (already_processed_vertex_p, predecessor_has_mem_write, | |
4498 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
4499 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
4500 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
4501 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
4502 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
4503 | (rdg_component): Moved... | |
4504 | (build_rdg_partition_for_component): Do not aggregate components when | |
4505 | flag_streamize_loops is set. | |
4506 | (gen_sequential_loops): New. | |
4507 | (ldist_gen): Call gen_sequential_loops. | |
4508 | ||
4509 | * tree-pass.h (pass_loop_streamization): Declared. | |
4510 | ||
4511 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
4512 | basic blocks when loops structures exist. | |
4513 | ||
4514 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
4515 | ||
4516 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
4517 | ||
4518 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
4519 | eliminate_local_variables_stmt, eliminate_local_variables, | |
4520 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
4521 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
4522 | of code delimited by two edges in the CFG. | |
4523 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
4524 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
4525 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
4526 | the case of parallelisation of reductions. | |
4527 | (create_loop_fn): Extern. | |
4528 | (create_omp_parallel_region): New. | |
4529 | ||
4530 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
4531 | dump_data_reference for printing dra and drb. | |
4532 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
4533 | RDGE_RELATION. | |
4534 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
4535 | we attach dependence relations on each edge of the RDG. | |
4536 | To be fixed later. | |
4537 | ||
4538 | * tree-data-ref.h (rdg_component): ...here. | |
4539 | (struct rdg_edge): New field ddr_p relation. | |
4540 | (RDGE_RELATION): New. | |
4541 | (create_bb_after_loop, copy_loop_before, | |
4542 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
4543 | rdg_build_partitions, dump_rdg_partitions, | |
4544 | free_rdg_components): Declared. | |
4545 | ||
4546 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
4547 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
4548 | ||
4549 | * tree-loop-streamization.c: New. | |
4550 | ||
4551 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
4552 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
4553 | ||
4554 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
4555 | ||
4556 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
4557 | ||
4558 | * passes.c: Schedule pass_loop_streamization. | |
4559 | ||
4560 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
4561 | ||
4562 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
4563 | update comment. | |
4564 | ||
4565 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4566 | ||
4567 | * graphite.c (dot_all_scops): Update formatting. | |
4568 | Bbs can now be part of more than one SCoP. | |
4569 | ||
4570 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
4571 | ||
4572 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
4573 | malloc problems. | |
4574 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
4575 | * graphite.h (loop_to_cloog_loop): New. | |
4576 | ||
4577 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4578 | ||
4579 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
4580 | loop_iteration_vector_dim): New. | |
4581 | (build_access_matrix_with_af, build_access_matrix, | |
4582 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
4583 | No longer assume that all iteration domains are of the same | |
4584 | dimensionality. | |
4585 | ||
4586 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
4587 | ||
4588 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
4589 | defined in a loop at depth 0 is invariant. | |
4590 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
4591 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
4592 | be called at loop depth 0. | |
4593 | ||
4594 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
4595 | a parameter. | |
4596 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
4597 | (down_open_scop): Removed. | |
4598 | (loop_in_scop_p): Redefined. | |
4599 | (scop_affine_expr): New argument: scop. | |
4600 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
4601 | a harmful statement ending a scop. | |
4602 | (basic_block_simple_for_scop_p): New argument: scop. | |
4603 | (get_loop_start): Removed. | |
4604 | (new_scop): Initialize SCOP_LOOPS. | |
4605 | (free_scop): Free SCOP_LOOPS. | |
4606 | (succs_at_same_depth, preds_at_same_depth): New. | |
4607 | (end_scop): Test the validity of a scop. | |
4608 | (add_dominators_to_open_scops): New. | |
4609 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
4610 | Add cases for opening and closing multiple scops. | |
4611 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
4612 | depth first order. | |
4613 | (build_graphite_bb): Pass scop directly. | |
4614 | (dfs_bb_in_scop_p): New. | |
4615 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
4616 | several times. | |
4617 | (nb_loops_around_gb): Use loop_in_scop_p. | |
4618 | (schedule_to_scattering): Disabled for the moment the code computing | |
4619 | the "textual order for outer loop". | |
4620 | ||
4621 | * graphite.h (struct scop): New field loops. | |
4622 | (SCOP_LOOPS): New. | |
4623 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
4624 | ||
4625 | * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated. | |
4626 | ||
4627 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
4628 | Sebastian Pop <sebastian.pop@amd.com> | |
4629 | ||
4630 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
4631 | * common.opt (fstreamize-loops): New. | |
4632 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
4633 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
4634 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
4635 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
4636 | ||
4637 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4638 | ||
4639 | * tree-data-ref.c (build_empty_rdg): New. | |
4640 | (build_rdg): Use it. | |
4641 | * tree-data-ref.h (build_empty_rdg): Declared. | |
4642 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
4643 | (find_vertex_for_stmt): Removed. | |
4644 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
4645 | ||
4646 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
4647 | ||
4648 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
4649 | loop tree, also delete basic blocks. | |
4650 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
4651 | processed. | |
4652 | ||
4653 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4654 | ||
4655 | * graphite.c (build_scop_alpha): Removed. | |
4656 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
4657 | and dump_dependence_graph to avoid compiler warnings. | |
4658 | ||
4659 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4660 | ||
4661 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
4662 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
4663 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
4664 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
4665 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
4666 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
4667 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
4668 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
4669 | dump_dependence_graph): New. | |
4670 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
4671 | (GBB_ALPHA): New. | |
4672 | (struct scop): New field loop2cloog_loop. | |
4673 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
4674 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
4675 | ||
4676 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4677 | ||
4678 | * graphite.c (build_graphite_bb): Fix initialization | |
4679 | of the graphite basic block. | |
4680 | ||
4681 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
4682 | ||
4683 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
4684 | loop domain matrix. Pass in the number of loops contained in the | |
4685 | constraint matrix. | |
4686 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
4687 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
4688 | loops that are not surrounding the current loop are not represented | |
4689 | in the domain constraint matrix. | |
4690 | (build_scop_iteration_domain): Initial domain constraint matrix | |
4691 | contains only the eq/ineq, cst, and scop parameters columns. | |
4692 | ||
4693 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4694 | ||
4695 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
4696 | (print_graphite_bb): Print scattering. | |
4697 | ||
4698 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4699 | ||
4700 | * graphite.c (initialize_cloog_names): Initialize names of | |
4701 | scattering variables. | |
4702 | ||
4703 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4704 | ||
4705 | * graphite.c (dot_all_scops_1): Disable debug output while | |
4706 | printing graph. | |
4707 | ||
4708 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4709 | ||
4710 | * graphite.c (find_transform): Change cloog output language to C. | |
4711 | ||
4712 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
4713 | ||
4714 | * tree-loop-distribution.c (generate_memset_zero, | |
4715 | generate_builtin, generate_code_for_partition, | |
4716 | rdg_flag_all_uses): New. | |
4717 | (rdg_flag_uses): Gather in the same partition the statements defining | |
4718 | the VUSES of the current statement. | |
4719 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
4720 | Gather in the same partition not only the stores to the same memory | |
4721 | access, but also the reads. | |
4722 | (ldist_generate_loops): Renamed ldist_gen. | |
4723 | ||
4724 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
4725 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
4726 | ||
4727 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
4728 | next pointer, don't use the inner pointer. | |
4729 | ||
4730 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
4731 | ||
4732 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
4733 | (find_transform): Call dot_all_1. | |
4734 | * graphite.h (dot_all_scops): Declared. | |
4735 | ||
4736 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
4737 | ||
4738 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
4739 | (create_bb_after_loop): New. | |
4740 | (generate_loops_for_partition): Use it. | |
4741 | * testsuite/gfortran.dg/ldist-1.f90: New. | |
4742 | ||
4743 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
4744 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
4745 | ||
4746 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
4747 | ||
4748 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
4749 | ||
4750 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
4751 | ||
4752 | * graphite.c (initialize_cloog_names): Initialize cloog | |
4753 | iterator names. | |
4754 | ||
4755 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
4756 | ||
4757 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
4758 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
4759 | ||
4760 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
4761 | ||
4762 | * Fix merge problems. | |
4763 | ||
4764 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
4765 | ||
4766 | * graphite.c (setup_cloog_loop): Fix typo. | |
4767 | ||
4768 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
4769 | ||
4770 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
4771 | * tree-loop-distribution.c: Reimplemented. | |
4772 | * tree-pass.h (pass_loop_distribution): New. | |
4773 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
4774 | print_loops. | |
4775 | * graphds.h (struct graph): New field indexes. | |
4776 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
4777 | ||
4778 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
4779 | needed. | |
4780 | * tree-vectorizer.c: Same. | |
4781 | (rename_variables_in_loop): Now extern. | |
4782 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
4783 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
4784 | calling redirect_edge_and_branch_force. | |
4785 | ||
4786 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
4787 | ||
4788 | * tree-data-ref.c: Don't include tree-chrec.h. | |
4789 | (debug_data_dependence_relations): New. | |
4790 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
4791 | in the relation. | |
4792 | (same_access_functions): Moved... | |
4793 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
4794 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
4795 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
4796 | struct rdg_vertex_info, ): New. | |
4797 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
4798 | at DDR_REVERSED_P. | |
4799 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
4800 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
4801 | (stmts_from_loop): Don't save LABEL_EXPR. | |
4802 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
4803 | hash_stmt_vertex_del): New. | |
4804 | (build_rdg): Initialize rdg->indexes. | |
4805 | (free_rdg, stores_from_loop, ref_base_address, | |
4806 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
4807 | have_similar_memory_accesses_1, ref_base_address_1, | |
4808 | remove_similar_memory_refs): New. | |
4809 | ||
4810 | * tree-data-ref.h: Include tree-chrec.h. | |
4811 | (debug_data_dependence_relations): Declared. | |
4812 | (same_access_functions): ...here. Now static inline. | |
4813 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
4814 | ddr_dependence_level): New. | |
4815 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
4816 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
4817 | RDG_MEM_READS_STMT): New. | |
4818 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
4819 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
4820 | rdg_vertex_for_stmt): Declared. | |
4821 | (struct rdg_edge): New field level. | |
4822 | (RDGE_LEVEL, free_rdg): New. | |
4823 | (stores_from_loop, remove_similar_memory_refs, | |
4824 | rdg_defs_used_in_other_loops_p, | |
4825 | have_similar_memory_accesses): Declared. | |
4826 | (rdg_has_similar_memory_accesses): New. | |
4827 | ||
4828 | * lambda.h (dependence_level): New. | |
4829 | * common.opt (ftree-loop-distribution): New. | |
4830 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
4831 | (print_loop_ir): Renamed print_loops. | |
4832 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
4833 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
4834 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
4835 | (tree-loop-distribution.o): Added. | |
4836 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
4837 | (mark_virtual_ops_in_bb): New. | |
4838 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
4839 | * passes.c: Scheduled pass_loop_distribution. | |
4840 | ||
4841 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4842 | ||
4843 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
4844 | for polylib format. | |
4845 | (nb_flat_iterator): New. | |
4846 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
4847 | (build_scop_iteration_domain): Correct the number of columns for | |
4848 | polylib format. | |
4849 | ||
4850 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
4851 | ||
4852 | * Merge from mainline (129697:130800). | |
4853 | ||
4854 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
4855 | ||
4856 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
4857 | dominated by SCoP's exit. | |
4858 | (graphite_transform_loops): Compute post dominators. | |
4859 | ||
4860 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
4861 | ||
4862 | * Merge from mainline (127169:129697). | |
4863 | ||
4864 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
4865 | ||
4866 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
4867 | parameter for the basic block that contains the expression. Use | |
4868 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
4869 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
4870 | the expression. | |
4871 | * graphite.h (gbb_loop): New. | |
4872 | (GBB_LOOP): Removed. | |
4873 | ||
4874 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
4875 | ||
4876 | * Makefile.in: Fix merge problem. | |
4877 | ||
4878 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
4879 | ||
4880 | * Merge from mainline (125309:127169). | |
4881 | * tree-loop-distribution.c: Disabled. | |
4882 | ||
4883 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
4884 | ||
4885 | * Merge from mainline (r123693:125309). | |
4886 | ||
4887 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
4888 | ||
4889 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
4890 | correct_modify_p | |
4891 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
4892 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
4893 | instead of MODIFY_EXPR. | |
4894 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
4895 | and push new edges. | |
4896 | ||
4897 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
4898 | ||
4899 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
4900 | VECs for edges and vertices. | |
4901 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
4902 | (RDGV_NB_PARTITIONS): New. | |
4903 | (PRDG_NBV, PRDG_NBE): Removed. | |
4904 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
4905 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
4906 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
4907 | ||
4908 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
4909 | Sebastian Pop <sebpop@gmail.com> | |
4910 | ||
4911 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
4912 | * tree-loop-distribution.c: New file. | |
4913 | * tree-pass.h (pass_loop_distribution): Declared. | |
4914 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
4915 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
4916 | and set reversed_p. | |
4917 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
4918 | (DDR_REVERSED_P): New. | |
4919 | * common.opt (-ftree-loop-distribution): New. | |
4920 | * tree-flow.h (distribute_loops): Declared. | |
4921 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
4922 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
4923 | ||
4924 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
4925 | ||
4926 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
4927 | (print_scop): Don't print when scop is NULL. | |
4928 | (build_scop_context, find_transform): Don't output to stderr. | |
4929 | ||
4930 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
4931 | ||
4932 | * tree-data-ref.c: Don't include graphite.h. | |
4933 | Comment out the code for printing data reference's scop. | |
4934 | (build_access_matrix_with_af): Moved... | |
4935 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
4936 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
4937 | (print_graphite_bb): Print basic block's schedule. | |
4938 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
4939 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
4940 | dominated and postdominated by the scop's entry and exit basic blocks. | |
4941 | (function_parameter_p): New. | |
4942 | (invariant_in_scop_p): Use function_parameter_p. | |
4943 | (new_scop, save_scop): New. | |
4944 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
4945 | save_scop. | |
4946 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
4947 | (loop_in_scop_p): New. | |
4948 | (scop_record_loop): Use loop_in_scop_p. | |
4949 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
4950 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
4951 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
4952 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
4953 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
4954 | (struct scop): Add a pointer to cloog's representation of a program. | |
4955 | ||
4956 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
4957 | ||
4958 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
4959 | -ftree-checks-verbose. | |
4960 | * common.opt (flag_tree_check_verbose): Renamed | |
4961 | flag_tree_checks_verbose. | |
4962 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
4963 | ||
4964 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
4965 | ||
4966 | * configure: Regenerated. | |
4967 | * config.in: Regenerated. | |
4968 | * tree-ssa-loop.c (graphite_transforms): Execute | |
4969 | graphite_transform_loops only when HAVE_cloog. | |
4970 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
4971 | * graphite.c: Include polylibgmp.h and cloog.h. | |
4972 | (graphite_transform_loops): Removed loops parameter. | |
4973 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
4974 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
4975 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
4976 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
4977 | (OBJS-common): Remove dependence on graphite.o. | |
4978 | (BACKEND): Depend on @GRAPHITE@. | |
4979 | ||
4980 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
4981 | ||
4982 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
4983 | * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New. | |
4984 | * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New. | |
4985 | * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New. | |
4986 | * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New. | |
4987 | * testsuite/gcc.dg/tree-checker/tree-checks.exp: New. | |
4988 | * testsuite/gcc.dg/tree-checker/condates.crp: New. | |
4989 | * common.opt (ftree-checks-verbose): New. | |
4990 | * tree-check.c (tree_check_warning): Move extra stderr output | |
4991 | under control of flag_tree_check_verbose. | |
4992 | ||
4993 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
4994 | ||
4995 | * tree-match.c: Fix comments formatting. | |
4996 | * tree-match.h: Fix comments formatting. | |
4997 | * tree-check.c: Fix comments formatting. | |
4998 | (tree_check_init): Restructure. | |
4999 | ||
5000 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
5001 | ||
5002 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
5003 | ||
5004 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
5005 | ||
5006 | * Merge from mainline (r120733:123693). | |
5007 | ||
5008 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
5009 | ||
5010 | * condate.y: New file. | |
5011 | * tree-match.h (struct patt_info_s): New field sign. | |
5012 | (struct condate_s): New field msg. | |
5013 | (normalize_condate, name_condate, add_condate): New. | |
5014 | (conds[], condate_parse): Made extern. | |
5015 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
5016 | warning reformatted. | |
5017 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
5018 | (tree_scan): New. | |
5019 | (tree_check): Process trivial condates. | |
5020 | (read_delimited_string): Removed. | |
5021 | (print_cond): Print name and msg. | |
5022 | (conds[]): Made extern. | |
5023 | (parse_tree_check_file_once): Rewritten to use the parser in | |
5024 | condate.y. | |
5025 | Processing of option --tree_check_string moved to tree_scan(). | |
5026 | * Makefile.in: Added condate.y | |
5027 | ||
5028 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
5029 | ||
5030 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
5031 | Use VECs instead of varrays. | |
5032 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
5033 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
5034 | * pretty-print.c: Include tree.h and vec.h. | |
5035 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
5036 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
5037 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
5038 | pp_free_list): Use VECs instead of varrays. | |
5039 | * pretty-print.h: Do not include varray.h. | |
5040 | (struct tree_chunk_s): Declaration moved before its use. | |
5041 | (output_buffer): Rename varray field to chunks. | |
5042 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
5043 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
5044 | save_global_holes): Use VECs instead of varrays. | |
5045 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
5046 | * tree-check.c (scan_cfg_stmts, push_node, | |
5047 | print_matching_stmt): Removed. | |
5048 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
5049 | execute_tree_check): Use VECs instead of varrays. | |
5050 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
5051 | is not available. | |
5052 | ||
5053 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
5054 | ||
5055 | * Merge from mainline (r115016:120733). | |
5056 | ||
5057 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
5058 | ||
5059 | * Merge from mainline (r117632:117661). | |
5060 | ||
5061 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
5062 | ||
5063 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
5064 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
5065 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
5066 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
5067 | get_loop_exit_condition, analyze_evolution_in_loop, | |
5068 | analyze_initial_condition, analyze_scalar_evolution, | |
5069 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
5070 | * tree-chrec.c (chrec_apply): Use debug_p. | |
5071 | * tree-data-ref.c: Include graphite.h. | |
5072 | (dump_data_reference): Print also the access matrix. | |
5073 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
5074 | analyze_offset_expr, address_analysis, object_analysis, | |
5075 | create_data_ref, finalize_ddr_dependent, | |
5076 | non_affine_dependence_relation, analyze_ziv_subscript, | |
5077 | analyze_siv_subscript_cst_affine, | |
5078 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
5079 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
5080 | analyze_miv_subscript, analyze_overlapping_iterations, | |
5081 | build_classic_dist_vector, subscript_dependence_tester, | |
5082 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
5083 | (build_access_matrix_with_af): No longer static. | |
5084 | * tree-data-ref.h (scop_p): ... declaration here. | |
5085 | (data_reference.scop): New field. | |
5086 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
5087 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
5088 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
5089 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
5090 | (test_for_scop_bound): Use debug_p. | |
5091 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
5092 | scop_nb_params. | |
5093 | (scop_loop_index): Moved... | |
5094 | (scop_record_loop): New. | |
5095 | (build_scop_loop_nests): Use scop_record_loop. | |
5096 | (build_scop_domain): Use scop_dim_domain. | |
5097 | (build_access_matrix): Implemented. | |
5098 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
5099 | (build_graphite_bb): Initialize GBB_SCOP. | |
5100 | * graphite.h (scop_p): Moved... | |
5101 | (graphite_bb.scop): New field. | |
5102 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
5103 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
5104 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
5105 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
5106 | scop_loop_index): New. | |
5107 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
5108 | ||
5109 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
5110 | ||
5111 | * Merge from mainline (r117661:120450). | |
5112 | ||
5113 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
5114 | ||
5115 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
5116 | at the first declaration outside the varying loop, instantiate as | |
5117 | far as possible. | |
5118 | * tree-chrec.c (for_each_scev_op): New. | |
5119 | * tree-chrec.h (for_each_scev_op): Declared. | |
5120 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
5121 | * tree-data-ref.c (get_references_in_stmt, | |
5122 | find_data_references_in_stmt): New, from trunk. | |
5123 | (find_data_references_in_loop): Use get_references_in_stmt | |
5124 | and find_data_references_in_loop, modified as in trunk. | |
5125 | (build_access_matrix_with_af): New. | |
5126 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
5127 | (data_ref_loc): New, as in trunk. | |
5128 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
5129 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
5130 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
5131 | idx_record_param, idx_record_params, build_access_matrix, | |
5132 | build_scop_data_accesses, build_scop_canonical_schedules, | |
5133 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
5134 | build_scop_params): New. | |
5135 | * graphite.h (graphite_bb): New. | |
5136 | (scop): Add fields static_schedule, params, loop_nest, | |
5137 | iteration_domain. | |
5138 | * lambda.h: Declare vecs of lambda_matrix. | |
5139 | * tree-flow.h (print_loop_ir_bb): Declared. | |
5140 | * tree-cfg.c (print_loop_ir_bb): New. | |
5141 | (print_loop): Use print_loop_ir_bb. | |
5142 | ||
5143 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
5144 | ||
5145 | * Merge from mainline (r115016:117632). | |
5146 | ||
5147 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
5148 | ||
5149 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
5150 | break due to a warning. | |
5151 | ||
5152 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
5153 | ||
5154 | * graphite.c (print_scops, debug_scops): New. | |
5155 | (graphite_transform): Renamed graphite_find_transform. | |
5156 | * graphite.h (debug_scops): Declared. | |
5157 | ||
5158 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
5159 | ||
5160 | * tree-match.c: Reformat following the GNU style. | |
5161 | * tree-match.h: Reformat following the GNU style. | |
5162 | * tree-pattern.h: Removed empty file. | |
5163 | * Makefile.in: Remove references to tree-pattern.h. | |
5164 | * tree-check.c: Reformat following the GNU style. | |
5165 | (execute_tree_check): Move gate condition code to... | |
5166 | (gate_tree_check): ...here. New function. | |
5167 | (pass_check): Use the gate function. | |
5168 | ||
5169 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
5170 | ||
5171 | * tree-pattern.h: New. Tree pattern matching and checking using | |
5172 | concrete syntax. | |
5173 | * tree-check.c: New. Tree/CFG checking pass. | |
5174 | * tree-match.c: New. Library for tree pattern matching. | |
5175 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
5176 | * toplev.c, flags.h: Add globals for tree-check pass. | |
5177 | * Makefile.in: Integrate the files in tree-check pass. | |
5178 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
5179 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
5180 | Introduce a "lazy" pretty-print mode. | |
5181 | * tree.c, tree.h: Add tree_name. | |
5182 | ||
5183 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
5184 | ||
5185 | * doc/invoke.texi (-fgraphite): Correct typo. | |
5186 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
5187 | use of print_loop_ir. | |
5188 | * testsuite/gcc.dg/graphite/scop-1.c: New. | |
5189 | * testsuite/gcc.dg/graphite/scop-2.c: New. | |
5190 | * testsuite/gcc.dg/graphite/graphite.exp: New. | |
5191 | * graphite.c: Include domwalk.h. | |
5192 | (print_scop): Print only the entry and exit blocks. | |
5193 | (debug_scop): No longer static. | |
5194 | (affine_expr): Fix formating. Return also true when the expression is | |
5195 | constant. | |
5196 | (stmt_simple_for_scop_p): Fix formating. | |
5197 | (build_scops): Use domwalk. | |
5198 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
5199 | (graphite_transform_loops): Avoid printing on stderr. | |
5200 | * graphite.h (debug_scop): Declared. | |
5201 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
5202 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
5203 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
5204 | declarations for static functions. | |
5205 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
5206 | controlling output verbosity. | |
5207 | ||
5208 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
5209 | Plesco Alexandru <shurikx@gmail.com> | |
5210 | ||
5211 | * doc/invoke.texi (-fgraphite): Document. | |
5212 | * tree-pass.h (pass_graphite_transforms): Declared. | |
5213 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
5214 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
5215 | (pass_graphite_transforms): Defined. | |
5216 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
5217 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
5218 | * graphite.c, graphite.h: New. | |
5219 | * common.opt (fgraphite): Declared. | |
5220 | * tree-flow.h (graphite_transform_loops): Declared. | |
5221 | * Makefile.in (OBJS-common): Add graphite.o. | |
5222 | (graphite.o): New rule. | |
5223 | * passes.c (pass_graphite_transforms): Scheduled. | |
5224 |