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