]>
Commit | Line | Data |
---|---|---|
3d17df15 SP |
1 | 2011-01-17 Sebastian Pop <sebastian.pop@amd.com> |
2 | ||
3 | * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow | |
4 | VAR_DECL, PARM_DECL, and RESULT_DECL. | |
5 | ||
6 | * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
7 | ||
c513da01 SP |
8 | 2011-01-17 Sebastian Pop <sebastian.pop@amd.com> |
9 | ||
10 | * graphite-dependences.c (reduction_dr_1): Allow several reductions | |
11 | in a reduction PBB. | |
12 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs | |
13 | that have already been marked as PBB_IS_REDUCTION. | |
14 | ||
3a292d59 SP |
15 | 2011-01-17 Sebastian Pop <sebastian.pop@amd.com> |
16 | ||
17 | * graphite-scop-detection.c (same_close_phi_node): New. | |
18 | (remove_duplicate_close_phi): New. | |
19 | (make_close_phi_nodes_unique): New. | |
20 | (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique. | |
21 | ||
ba858447 SP |
22 | 2011-01-17 Sebastian Pop <sebastian.pop@amd.com> |
23 | ||
24 | * graphite-dependences.c (new_poly_ddr): Call same_pdr_p. | |
25 | * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE | |
26 | of both data references to be the same. | |
27 | ||
8d865c56 SP |
28 | 2011-01-17 Sebastian Pop <sebastian.pop@amd.com> |
29 | ||
30 | * graphite-dependences.c (build_lexicographical_constraint): Remove the | |
31 | gdim parameter. | |
32 | (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty. | |
33 | (dependence_polyhedron): Same. | |
34 | (graphite_legal_transform_dr): Same. | |
35 | (graphite_carried_dependence_level_k): Same. | |
36 | * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter. | |
37 | * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration. | |
38 | ||
50034a36 SP |
39 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
40 | ||
41 | * graphite-sese-to-poly.c | |
42 | (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr. | |
43 | (close_phi_written_to_memory): New. | |
44 | (translate_scalar_reduction_to_array): Call close_phi_written_to_memory | |
45 | and unshare_expr. | |
46 | ||
47 | * gcc.dg/graphite/block-0.c: Un-XFAILed. | |
48 | * gcc.dg/graphite/block-1.c: Un-XFAILed. | |
49 | * gcc.dg/graphite/block-7.c: Un-XFAILed. | |
50 | * gcc.dg/graphite/block-8.c: Un-XFAILed. | |
51 | * gcc.dg/graphite/interchange-12.c: Un-XFAILed. | |
52 | * gcc.dg/graphite/interchange-14.c: Un-XFAILed. | |
53 | * gcc.dg/graphite/interchange-15.c: Un-XFAILed. | |
54 | * gcc.dg/graphite/interchange-8.c: Un-XFAILed. | |
55 | * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. | |
56 | ||
0deada9e SP |
57 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
58 | ||
59 | * doc/install.texi: Update the expected version number of PPL to 0.11. | |
60 | * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under | |
61 | #if PPL_VERSION_MINOR < 11. | |
62 | ||
d7d3d6af SP |
63 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
64 | ||
65 | * graphite-dependences.c (new_poly_ddr): Inlined into | |
66 | dependence_polyhedron. | |
67 | (free_poly_ddr): Moved close by new_poly_ddr. | |
68 | (dependence_polyhedron_1): Renamed dependence_polyhedron. | |
69 | Early return NULL when ppl_powerset_is_empty returns true. | |
70 | (dependence_polyhedron): Renamed new_poly_ddr. Call only once | |
71 | poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty. | |
72 | (graphite_legal_transform_dr): Call new_poly_ddr. | |
73 | (graphite_carried_dependence_level_k): Same. | |
74 | (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr. | |
75 | (dot_transformed_deps_stmt_1): Removed. | |
76 | (dot_deps_stmt_1): Call dot_deps_stmt_2. | |
77 | (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr. | |
78 | (dot_deps_1): Call dot_deps_2. | |
79 | ||
28c5db57 SP |
80 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
81 | ||
82 | * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty. | |
83 | (build_lexicographical_constraint): Same. | |
84 | (dependence_polyhedron_1): Same. | |
85 | (graphite_legal_transform_dr): Same. | |
86 | (graphite_carried_dependence_level_k): Same. | |
87 | * graphite-ppl.c (ppl_powerset_is_empty): New. | |
88 | * graphite-ppl.h (ppl_powerset_is_empty): Declared. | |
89 | * tree-data-ref.c (dump_data_reference): Print the basic block index. | |
90 | ||
91 | * gcc.dg/graphite/block-0.c: Add documentation. | |
92 | * gcc.dg/graphite/block-4.c: Same. | |
93 | * gcc.dg/graphite/block-7.c: Same. | |
94 | * gcc.dg/graphite/block-8.c: New. | |
95 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
96 | * gcc.dg/graphite/interchange-11.c: Un-XFAILed. | |
97 | * gcc.dg/graphite/interchange-12.c: Add documentation. | |
98 | * gcc.dg/graphite/interchange-13.c: New. | |
99 | * gcc.dg/graphite/interchange-14.c: New. | |
100 | * gcc.dg/graphite/interchange-15.c: New. | |
101 | * gcc.dg/graphite/interchange-8.c: Add documentation. | |
102 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
103 | ||
5168d98f SP |
104 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
105 | ||
106 | * graphite-dependences.c (build_pairwise_scheduling): Correctly compute | |
107 | the "a followed by b" relation and document it. | |
108 | ||
4a40293a SP |
109 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
110 | ||
111 | * graphite-dependences.c (build_lexicographical_constraint): Stop the | |
112 | iteration when the bag of constraints is empty. | |
113 | ||
271fb6fa SP |
114 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
115 | ||
116 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work. | |
117 | ||
92d23680 SP |
118 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
119 | ||
120 | * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop | |
121 | nest and two loop depths as parameters. | |
122 | (lst_try_interchange_loops): Call lst_interchange_profitable_p after | |
123 | lst_perfect_nestify. | |
124 | ||
2f51deff SP |
125 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
126 | ||
127 | * graphite-dependences.c (print_pddr): Call | |
128 | ppl_io_fprint_Pointset_Powerset_C_Polyhedron. | |
129 | ||
07f3593c SP |
130 | 2011-01-15 Sebastian Pop <sebastian.pop@amd.com> |
131 | ||
132 | * graphite-ppl.c (debug_gmp_value): New. | |
133 | * graphite-ppl.h (debug_gmp_value): Declared. | |
134 | ||
3fae6099 TG |
135 | 2011-01-13 Tobias Grosser <grosser@fim.uni-passau.de> |
136 | ||
137 | * doc/install.texi: Document availability of cloog-0.16 | |
138 | ||
d8c649a4 VK |
139 | 2011-01-05 Vladimir Kargov <kargov@gmail.com> |
140 | ||
141 | * graphite-scop-detection.c (is_valid_stmt_p): Pass the entry basic | |
142 | block instead of region start to the instantiation. | |
143 | (is_valid_bb_p): Add support for basic blocks with conditional | |
144 | statements. | |
145 | (find_scops_new): Recalculate dominance info before SCOP | |
146 | detection. | |
147 | ||
f8799f7a VK |
148 | 2011-01-05 Vladimir Kargov <kargov@gmail.com> |
149 | ||
150 | * graphite-scop-detection.c (get_outermost_loop_in_region): New. | |
151 | (is_valid_loop_p): Correct loop passed to stmt_has_simple_data_refs_p | |
152 | ||
1c3ba85b SP |
153 | 2011-01-05 Vladimir Kargov <kargov@gmail.com> |
154 | ||
155 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free | |
156 | invalid postdominance info | |
157 | ||
f1189b6d SP |
158 | 2010-12-29 Sebastian Pop <sebastian.pop@amd.com> |
159 | ||
160 | * Makefile.in (graphite-opencl-codegen.o): Update dependences. | |
161 | (graphite-opencl-meta-clast.o): Same. | |
162 | (graphite-opencl.o): Same. | |
163 | (refined-regions.o): Same. | |
164 | * graphite-opencl-codegen.c: Do not include unnecessary .h files. | |
165 | * graphite-opencl-meta-clast.c: Same. | |
166 | * graphite-opencl.c: Same. | |
167 | * refined-regions.c: Same. | |
168 | ||
169 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
170 | ||
171 | * graphite-opencl-codegen.c: Use FOR_EACH_VEC_ELT. | |
172 | * graphite-opencl-meta-clast.c: Same. | |
173 | * graphite-opencl.c: Same. | |
174 | ||
175 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
176 | ||
177 | * graphite-opencl-codegen.c: Do not include sys/time.h. | |
178 | * graphite-opencl.c: Same. | |
179 | ||
180 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
181 | ||
182 | * graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved | |
183 | out of ifdef HAVE_cloog section. | |
184 | ||
185 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
186 | ||
187 | * Makefile.in (graphite-opencl.o): Depends on | |
188 | graphite-opencl-functions.def. | |
189 | * graphite-opencl-functions.def: New. | |
190 | * graphite-opencl.c (enum OPENCL_FUNCTIONS): Read data from | |
191 | graphite-opencl-functions.def. | |
192 | (opencl_function_names): Same. | |
193 | (opencl_create_function_decl): Use the enum OPENCL_FUNCTIONS | |
194 | as indices of opencl_function_names. | |
195 | ||
196 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
197 | ||
198 | * graphite-opencl-codegen.c: Fix formatting. | |
199 | * graphite-opencl-meta-clast.c: Same. | |
200 | * graphite-opencl.c: Same. | |
201 | ||
202 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
203 | ||
204 | * graphite-opencl-codegen.c: Fix formating problems. | |
205 | * graphite-opencl-meta-clast.c: Same. | |
206 | * graphite-opencl.c: Same. | |
207 | * graphite-opencl.h: Same. | |
208 | ||
209 | 2010-12-27 Sebastian Pop <sebastian.pop@amd.com> | |
210 | ||
211 | * graphite-opencl-codegen.c: Sort topologically static functions. | |
212 | * graphite-opencl.c: Same. | |
213 | ||
214 | 2010-12-25 Sebastian Pop <sebastian.pop@amd.com> | |
215 | ||
216 | * graphite-cloog-compat.h (cloog_names_nb_scattering): New. | |
217 | (cloog_names_scattering): New. | |
218 | * graphite-opencl-codegen.c (opencl_constant_expression_p): Use | |
219 | clast_expr_* instead of expr_*. Call clast_name_to_str. | |
220 | (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter. | |
221 | (opencl_get_scat_real_name): Same. Call clast_name_to_str. | |
222 | (opencl_add_scat_as_arg): Same. | |
223 | (opencl_print_local_vars): Call cloog_names_scattering and | |
224 | cloog_names_nb_scattering. | |
225 | (opencl_print_for): Do not call value_*. | |
226 | (opencl_print_term): Same. | |
227 | (opencl_print_expr): Use clast_expr_* instead of expr_*. | |
228 | (opencl_print_sum): Same. | |
229 | (opencl_print_binary): Same. | |
230 | ||
231 | 2010-12-25 Alexey Kravets <kayrick@ispras.ru> | |
232 | ||
233 | * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o, | |
234 | graphite-opencl-meta-clast.o and graphite-opencl.o. | |
235 | (graphite-opencl-codegen.o): New. | |
236 | (graphite-opencl-meta-clast.o): New. | |
237 | (graphite-opencl.o): New. | |
238 | (GTFILES): Add graphite-opencl.c. | |
239 | * common.opt (fgraphite-opencl): New. | |
240 | (fgraphite-opencl-cpu): New. | |
241 | (fgraphite-opencl-ignore-depth-heuristic): New. | |
242 | (fgraphite-opencl-ignore-mem-heuristic): New. | |
243 | (fgraphite-opencl-ignore-dep): New. | |
244 | (fgraphite-opencl-ignore-types): New. | |
245 | (fgraphite-opencl-depth-base): New. | |
246 | (fgraphite-opencl-debug): New. | |
247 | * graphite-opencl-codegen.c: New file. | |
248 | * graphite-opencl-meta-clast.c: New file. | |
249 | * graphite-opencl.c: New file. | |
250 | * graphite-opencl.h: New file. | |
251 | * graphite.c (graphite_transform_loops): Call graphite_opencl_init and | |
252 | graphite_opencl_finalize. | |
253 | * tree-ssa-loop.c (gate_graphite_transforms): Handle | |
254 | flag_graphite_opencl. | |
255 | * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast. | |
256 | * dbgcnt.def (opencl_scop_cnt): New counter. | |
257 | ||
258 | 2010-12-25 Alexander Monakov <amonakov@ispras.ru> | |
259 | ||
260 | * graphite-dependences.c (graphite_outer_subscript_bound): New. | |
261 | (graphite_carried_dependence_level_k): Export. | |
262 | * graphite-dependences.h (graphite_outer_subscript_bound): Declare. | |
263 | (graphite_carried_dependence_level_k): Ditto. | |
264 | ||
265 | 2010-12-25 Alexey Kravets <kayrick@ispras.ru> | |
266 | ||
267 | * graphite-clast-to-gimple.c (struct clast_name_index): Move | |
268 | definition to graphite-clast-to-gimple.h. | |
269 | (clast_name_to_index): Ditto. | |
270 | (clast_name_index_elt_info): Ditto. | |
271 | (eq_clast_name_indexes): Ditto. | |
272 | (save_clast_name_index): Export. | |
273 | (clast_name_to_gcc): Ditto. | |
274 | (clast_to_gcc_expression): Ditto. | |
275 | (gcc_type_for_clast_expr): Ditto. | |
276 | (graphite_create_new_guard): Ditto. | |
277 | (gcc_type_for_iv_of_clast_loop): Ditto. | |
278 | (graphite_create_new_loop): Ditto. | |
279 | (build_iv_mapping): Ditto. | |
280 | (graphite_create_new_loop_guard): Ditto. | |
281 | (debug_clast_name_index): New. | |
282 | (debug_clast_name_indices): New debug function. | |
283 | ||
f4a2e571 SP |
284 | 2010-12-21 Sebastian Pop <sebastian.pop@amd.com> |
285 | ||
286 | PR tree-optimization/47021 | |
287 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR. | |
288 | ||
844e904d SP |
289 | 2010-11-26 Sebastian Pop <sebastian.pop@amd.com> |
290 | ||
291 | * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but | |
292 | unused warning. | |
293 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Same. | |
294 | ||
278b1a1d SP |
295 | 2010-11-26 Sebastian Pop <sebastian.pop@amd.com> |
296 | ||
297 | * graphite-sese-to-poly.c (analyze_drs): Removed. | |
298 | (build_scop_drs): Do not call analyze_drs. | |
299 | (analyze_drs_in_stmts): New. | |
300 | (insert_stmts): New. | |
301 | (insert_out_of_ssa_copy): Call analyze_drs_in_stmts. | |
302 | (insert_out_of_ssa_copy_on_edge): Same. | |
303 | (rewrite_close_phi_out_of_ssa): Call insert_stmts. | |
304 | (rewrite_phi_out_of_ssa): Same. | |
305 | (rewrite_cross_bb_scalar_dependence): Same. | |
306 | (split_reduction_stmt): Move data references in the new basic blocks. | |
307 | (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts. | |
308 | ||
87b286c4 SP |
309 | 2010-11-26 Sebastian Pop <sebastian.pop@amd.com> |
310 | ||
311 | * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments. | |
312 | ||
efa21390 SP |
313 | 2010-11-22 Sebastian Pop <sebastian.pop@amd.com> |
314 | ||
315 | PR middle-end/45297 | |
316 | * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take | |
317 | the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB. | |
318 | * graphite-poly.h (new_poly_bb): Update declaration. | |
319 | (gbb_from_bb): Moved here... | |
320 | (pbb_from_bb): New. | |
321 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): | |
322 | Removed. | |
323 | (graphite_stmt_p): Removed. | |
324 | (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in | |
325 | sbitmap reductions. Always build a gimple_bb_p. Do not call | |
326 | new_poly_bb. | |
327 | (build_scop_bbs_1): Do not pass in sbitmap reductions. | |
328 | (build_scop_bbs): Same. | |
329 | (gbb_from_bb): ... from here. | |
330 | (add_conditions_to_constraints): Moved up. | |
331 | (analyze_drs): New. | |
332 | (build_scop_drs): Call analyze_drs. Remove all the PBBs that do | |
333 | not contain data references. | |
334 | (new_pbb_from_pbb): New. | |
335 | (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a | |
336 | block is split. | |
337 | (rewrite_close_phi_out_of_ssa): Update call to | |
338 | insert_out_of_ssa_copy_on_edge. | |
339 | (rewrite_reductions_out_of_ssa): Now static. | |
340 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Same. | |
341 | (split_pbb): New. | |
342 | (split_reduction_stmt): Call split_pbb. | |
343 | (translate_scalar_reduction_to_array): Pass in the scop, do not | |
344 | pass in the sbitmap reductions. | |
345 | (rewrite_commutative_reductions_out_of_ssa_close_phi): Same. | |
346 | (rewrite_commutative_reductions_out_of_ssa_loop): Same. | |
347 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
348 | (build_poly_scop): Call build_scop_bbs, | |
349 | rewrite_commutative_reductions_out_of_ssa, | |
350 | rewrite_reductions_out_of_ssa, and | |
351 | rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs | |
352 | before scop_to_lst. | |
353 | * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa): | |
354 | Removed declaration. | |
355 | (rewrite_reductions_out_of_ssa): Same. | |
356 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Same. | |
357 | (build_scop_bbs): Same. | |
358 | * graphite.c (graphite_transform_loops): Do not initialize reductions. | |
359 | Do not call build_scop_bbs, | |
360 | rewrite_commutative_reductions_out_of_ssa, | |
361 | rewrite_reductions_out_of_ssa, and | |
362 | rewrite_cross_bb_scalar_deps_out_of_ssa. | |
363 | * sese.h (struct gimple_bb): Add field pbb. | |
364 | (GBB_PBB): New. | |
365 | ||
366 | * gcc.dg/graphite/pr45297.c: New. | |
367 | ||
70a2ae0f SP |
368 | 2010-11-22 Sebastian Pop <sebastian.pop@amd.com> |
369 | ||
370 | * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits): | |
371 | New. | |
372 | (rewrite_cross_bb_scalar_deps): Pass in the scop. Call | |
373 | handle_scalar_deps_crossing_scop_limits. | |
374 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB | |
375 | after the scop. Update call to rewrite_cross_bb_scalar_deps. | |
376 | ||
c8f91fcc SP |
377 | 2010-11-22 Sebastian Pop <sebastian.pop@amd.com> |
378 | ||
379 | * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr | |
380 | when replacing a constant in an ADDR_EXPR. | |
381 | ||
247fd30e SP |
382 | 2010-10-20 Sebastian Pop <sebastian.pop@amd.com> |
383 | ||
384 | * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter | |
385 | for the stride. | |
386 | (lst_do_strip_mine): Same. | |
387 | (scop_do_strip_mine): Same. | |
388 | * graphite-poly.c (apply_poly_transforms): Update call to | |
389 | scop_do_strip_mine. | |
390 | * graphite-poly.h (scop_do_strip_mine): Update declaration. | |
391 | ||
cdb9802c SP |
392 | 2010-09-24 Sebastian Pop <sebastian.pop@amd.com> |
393 | ||
394 | PR middle-end/45758 | |
395 | * graphite.c (graphite_initialize): Call scev_reset. | |
396 | ||
8ba78f92 SP |
397 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
398 | ||
399 | * sese.h (scev_analyzable_p): Return false for real or floating | |
400 | point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P. | |
401 | ||
99e55749 SP |
402 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
403 | ||
404 | PR middle-end/45758 | |
405 | * gfortran.dg/graphite/pr45758.f90: New. | |
406 | ||
a72b79fb SP |
407 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
408 | ||
409 | * graphite-scop-detection.c (is_scop_p): Free bblist. | |
410 | ||
cb5f9ec6 SP |
411 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
412 | ||
413 | * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le | |
414 | and ps. | |
415 | * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and | |
416 | domain. | |
417 | * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit): | |
418 | Do not allocate ub_expr, it is passed in initialized. | |
419 | ||
03c830c2 SP |
420 | 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
421 | ||
422 | * common.opt (fgraphite-dump-cloog): New flag. | |
423 | * doc/invoke.texi (-fgraphite-dump-cloog): Documented. | |
424 | * graphite-clast-to-gimple.c (init_cloog_input_file): New. | |
425 | (build_cloog_prog): Dump CLooG input file when | |
426 | flag_graphite_dump_cloog is set. | |
427 | * graphite-cloog-compat.h (cloog_program_dump_cloog): New. | |
428 | ||
429 | 2010-09-20 Sebastian Pop <sebastian.pop@amd.com> | |
430 | ||
431 | Revert previous patch "New flag: -fgraphite-dump-cloog." | |
432 | ||
433 | 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de> | |
434 | ||
435 | * common.opt (fgraphite-dump-cloog): New flag. | |
436 | * doc/invoke.texi (-fgraphite-dump-cloog): Documented. | |
437 | * graphite-clast-to-gimple.c (init_cloog_input_file): New. | |
438 | (build_cloog_prog): Dump CLooG input file when | |
439 | flag_graphite_dump_cloog is set. | |
440 | ||
61c6973f SP |
441 | 2010-09-20 Sebastian Pop <sebastian.pop@amd.com> |
442 | ||
443 | * graphite-clast-to-gimple.c (graphite_verify): Remove call to | |
444 | verify_dominators for CDI_POST_DOMINATORS. | |
445 | * sese.h: Remove comment about CDI_POST_DOMINATORS. | |
446 | (recompute_all_dominators): Remove call to free_dominance_info | |
447 | for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info | |
448 | for CDI_POST_DOMINATORS. | |
449 | ||
aad78a1a SP |
450 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
451 | ||
452 | * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate | |
453 | over pbb_dim_iter_domain. | |
454 | ||
26315ccf SP |
455 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
456 | ||
457 | * graphite-flattening.c: Fix comments. | |
458 | ||
98af4c9f SP |
459 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
460 | ||
461 | * Makefile.in (OBJS-common): Add graphite-flattening.o. | |
462 | (graphite-flattening.o): New rule. | |
463 | * common.opt (floop-flatten): New flag. | |
464 | * doc/invoke.texi (-floop-flatten): Documented. | |
465 | * graphite-flattening.c: New. | |
466 | * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops. | |
467 | * graphite-poly.h (flatten_all_loops): Declared. | |
468 | (lst_remove_loop_and_inline_stmts_in_loop_father): New. | |
469 | * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten | |
470 | is set, also set flag_graphite. | |
471 | ||
c498b9b9 SP |
472 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
473 | ||
474 | * graphite-poly.c (cloog_checksum): New. | |
475 | * graphite-poly.h (cloog_checksum): Declared. | |
476 | ||
26ccb556 SP |
477 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
478 | ||
479 | * graphite-poly.c (pbb_number_of_iterations): Removed. | |
480 | (pbb_number_of_iterations_at_time): Correctly compute the number | |
481 | of iterations in the transformed loop. | |
482 | * graphite-poly.h (pbb_number_of_iterations): Removed. | |
483 | ||
b8745012 SP |
484 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
485 | ||
486 | * graphite-poly.h (lst_update_scattering_seq): Removed. | |
487 | (lst_update_scattering): Correctly handle outermost loop dewey | |
488 | renumbering. | |
489 | ||
22280f63 SP |
490 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
491 | ||
492 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed | |
493 | lst_strip_mine_profitable_p. Call lst_niter_for_loop. | |
494 | * graphite-poly.h (lst_niter_for_loop): New. | |
495 | ||
6eb412ef SP |
496 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
497 | ||
498 | * graphite-poly.c (apply_poly_transforms): Do not abort when the | |
499 | transform read from disk is not legal. Call fatal_error instead. | |
500 | ||
0ba82567 SP |
501 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
502 | ||
503 | * graphite-poly.c (print_pbb_body): Add missing closing parenthesis. | |
504 | (print_scop_header): Removed. Inlined in the only call place... | |
505 | (print_scop): ... here. | |
506 | ||
69ac2bb6 SP |
507 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
508 | ||
509 | * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT. | |
510 | ||
0706c754 VK |
511 | 2010-09-02 Vladimir Kargov <kargov@gmail.com> |
512 | ||
513 | * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New. | |
514 | (is_valid_stmt_p): Add data reference and operation-specific checks. | |
515 | (is_valid_bb_p): Change structure, add loop validity check. | |
516 | (is_scop_p): Move the TODO list | |
517 | (find_scops_new): New. | |
518 | (build_scops_new): Move part of functionality to find_scops_new and | |
519 | build_scops. Add necessary steps for successful SCoP construction. | |
520 | (build_scops): Compute SCoP sets for both detection algorithms, choose | |
521 | the resulting one depending on static condition. | |
522 | ||
da8cebd1 SP |
523 | 2010-08-24 Sebastian Pop <sebastian.pop@amd.com> |
524 | ||
525 | * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning. | |
526 | ||
1635d7b0 SP |
527 | 2010-08-24 Sebastian Pop <sebastian.pop@amd.com> |
528 | ||
529 | * graphite-dependences.c (dot_deps): Avoid set but not used warning. | |
530 | (dot_deps_stmt): Same. | |
531 | * graphite-poly.c (dot_lst): Same. | |
532 | ||
3a7cd438 SP |
533 | 2010-08-23 Sebastian Pop <sebastian.pop@amd.com> |
534 | ||
535 | * graphite-blocking.c (scop_do_strip_mine): Do not call | |
536 | graphite_legal_transform. | |
537 | (scop_do_block): Same. | |
538 | ||
45fc26fc VK |
539 | 2010-08-20 Vladimir Kargov <kargov@gmail.com> |
540 | ||
541 | * graphite-scop-detection.c (graphite_can_represent_loop): Correct the | |
542 | description. | |
543 | ||
6272efef SP |
544 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
545 | ||
546 | PR middle-end/45230 | |
547 | * gcc.dg/graphite/id-pr45230.c: New. | |
548 | ||
dbc08079 SP |
549 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
550 | ||
551 | * tree-scalar-evolution.c (instantiate_array_ref): New. | |
552 | (instantiate_scev_r): Also handle ARRAY_REFs. | |
553 | ||
492e5456 SP |
554 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
555 | ||
556 | * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop): | |
557 | Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL, | |
558 | RESULT_DECL, and FIELD_DECL. Return false for an | |
559 | SSA_NAME_IS_DEFAULT_DEF. | |
560 | (compute_scalar_evolution_in_loop): Do not further analyze the | |
561 | scalar evolution when no_evolution_in_loop_p returns true. | |
562 | ||
21d91009 SP |
563 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
564 | ||
565 | * tree-chrec.h (evolution_function_is_affine_p): Do not check | |
566 | whether CHREC_LEFT is invariant. A function is affine when | |
567 | CHREC_RIGHT is invariant. | |
568 | ||
c2bc669e SP |
569 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
570 | ||
571 | * graphite-sese-to-poly.c (reduction_phi_p): Remove check for | |
572 | is_gimple_reg. | |
573 | (rewrite_degenerate_phi): Same. | |
574 | (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg. | |
575 | ||
56f30f65 VK |
576 | 2010-08-18 Vladimir Kargov <kargov@gmail.com> |
577 | ||
578 | * graphite-scop-detection.c (graphite_can_represent_scev, | |
c2bc669e | 579 | graphite_can_represent_expr, stmt_has_simple_data_refs_p, |
56f30f65 VK |
580 | graphite_can_represent_loop): Remove outermost_loop. |
581 | ||
b4c8119f SP |
582 | 2010-08-17 Sebastian Pop <sebastian.pop@amd.com> |
583 | ||
584 | PR middle-end/45229 | |
585 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not | |
586 | handle GIMPLE_CALLs with no LHS. | |
587 | ||
91989b60 RB |
588 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
589 | Sebastian Pop <sebastian.pop@amd.com> | |
590 | ||
591 | * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write. | |
592 | Call remove-build-file to clean up the generated *.graphite files. | |
593 | ||
594 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> | |
d3feeef9 RB |
595 | |
596 | * doc/invoke.texi (debugging options): Update documentation. | |
597 | (-floop-interchange): Same. | |
598 | (-flopp-strip-mine): Same. | |
599 | (-floop-block): Same. | |
600 | (-fgraphite-read): Add documentation. | |
601 | (-fgraphite-write): Same. | |
602 | ||
91989b60 | 603 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
a73c5323 RB |
604 | |
605 | * toplev.c (process_options): Disable graphite loop optimization | |
606 | options when -fgraphite-read flag is used. | |
607 | ||
f06ecc4b RB |
608 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
609 | ||
610 | * graphite-poly.c (init_graphite_out_file): New. | |
611 | (init_graphite_in_file): New. | |
612 | (apply_poly_transforms): Updated to enable reading and writing of | |
613 | multiple scop files. | |
614 | * toplev.c (init_asm_output): Remove graphite in/out file initialization. | |
615 | ||
d9ae7906 SP |
616 | 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de> |
617 | ||
618 | * graphite-scop-detection.c (graphite_can_represent_scev): Remove | |
619 | redundant checks. | |
620 | ||
02315365 SP |
621 | 2010-08-12 Sebastian Pop <sebastian.pop@amd.com> |
622 | ||
623 | * graphite-clast-to-gimple.c (precision_for_value): Adjust | |
624 | computation of precision by 1. | |
625 | ||
721c8b1e RB |
626 | 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
627 | ||
628 | * graphite-cloog-util.c (openscop_read_cloog_matrix): New. | |
629 | (openscop_read_polyhedron_matrix): New. | |
630 | * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared. | |
631 | (openscop_read_N_int): Same. | |
632 | * graphite-poly.c (openscop_read_N_int): New. | |
633 | (openscop_read_one_int): New. | |
634 | (openscop_read_N_string): New. | |
635 | (openscop_read_one_string): New. | |
636 | (openscop_read_powerset_matrix): New. | |
637 | (graphite_read_transforms): Remove. | |
638 | (graphite_read_scatt): New. | |
639 | (graphite_read_scop_file): New. | |
640 | (apply_poly_transforms): Updated to call graphite_read_scop_file. | |
641 | ||
fd8bb591 AS |
642 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
643 | ||
644 | * graphite-poly.c: Change include order. | |
645 | ||
562c1b02 AS |
646 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
647 | ||
648 | * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. | |
649 | (cloog_matrix_nrows): New. | |
650 | ||
7241f8c5 RB |
651 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
652 | ||
653 | * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces | |
654 | from matrix lines. | |
655 | * graphite-poly.c (openscop_print_scattering_function_1): Same. | |
656 | (print_scattering_function_1): Same. | |
657 | (openscop_print_pbb_domain): Same. | |
658 | (openscop_print_scop_context): Same. | |
659 | (print_scop_context): Same. | |
660 | ||
d72f5037 RB |
661 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
662 | ||
663 | * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation. | |
664 | (openscop_print_pdr_polyhedron): Print pph. | |
665 | ||
9e054f1b SP |
666 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
667 | ||
668 | * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files. | |
669 | * gfortran.dg/graphite/graphite.exp: Same. | |
670 | * gcc.dg/graphite/vect-pr43423.c: New. | |
671 | ||
c6060639 SP |
672 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
673 | ||
674 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in | |
675 | priority signed types. | |
676 | ||
2c2aceeb SP |
677 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
678 | ||
679 | * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call | |
680 | to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type. | |
681 | ||
ae403f5a RB |
682 | 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
683 | ||
684 | * graphite-cloog-util.c (openscop_print_cloog_matrix): New. | |
685 | (openscop_print_polyhedron_matrix): New. | |
686 | * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared. | |
687 | * graphite-poly.c (openscop_print_pdr_polyhedron): Same. | |
688 | (openscop_print_pdr_powerset): New. | |
689 | (openscop_print_powerset_matrix): New. | |
690 | (openscop_print_scattering_function_1): New. | |
691 | (print_scattering_function): Add support for scattering names and | |
692 | OpenScop format. | |
693 | (graphite_write_transforms): Remove. | |
694 | (apply_poly_transforms): Updated to call print_scop. | |
695 | (print_pdr_access_layout): Updated to support OpenScop format. | |
696 | (print_pdr): Same. | |
697 | (openscop_print_pbb_domain): New. | |
698 | (print_pbb_body): Added a parameter to allow indicating that pbb_body is | |
699 | not provided. | |
700 | (print_pbb): Updated to call the new print_pbb_body. | |
701 | (openscop_print_scop_context): New. | |
702 | (print_scop_header): New. | |
703 | (print_scop): Updated to call print_scop_header. | |
704 | * graphite-poly.h: Document OpenScop format. | |
705 | ||
9707eeb0 SP |
706 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
707 | ||
708 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back | |
709 | the case removed in the previous patch, when the only phi argument | |
710 | is defined in the same loop as the phi node itself. Handle it | |
711 | separately from the invariant case by both propagating it outside | |
712 | the region and replacing the phi node with an assign. | |
713 | ||
974335d6 SP |
714 | 2010-07-28 Sebastian Pop <sebastian.pop@amd.com> |
715 | ||
716 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only | |
717 | constant phi nodes with one argument are is_gimple_min_invariant | |
718 | and SSA_NAME_IS_DEFAULT_DEF. | |
719 | ||
720 | * gfortran.dg/graphite/id-22.f: New. | |
721 | ||
1461761b AS |
722 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
723 | ||
85437633 AS |
724 | * graphite.c (graphite_initialize): Do not initialize |
725 | CLooG and initialize the Parma Polyhedra Library | |
726 | manually when using CLOOG_ORG. | |
727 | (graphite_finalize): Do not finalize CLooG and finalize | |
728 | the Parma Polyhedra Library manually when using CLOOG_ORG. | |
729 | * graphite-cloog-compat.h (cloog_initialize): Hide function | |
730 | when using CLOOG_ORG. | |
731 | (cloog_finalize): Same. | |
732 | ||
aa91c4cc | 733 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
85437633 | 734 | |
1461761b AS |
735 | * graphite-clast-to-gimple.c (free_scattering): Change |
736 | CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering | |
737 | (CLOOG_ORG). | |
738 | (build_cloog_prog): Same. | |
739 | * graphite-cloog-compat.h (cloog_domain): Removed. | |
740 | (cloog_scattering): New. | |
741 | (cloog_set_domain): Removed. | |
742 | (cloog_set_scattering): New. | |
743 | (cloog_next_domain): Removed. | |
744 | (cloog_next_scattering): New. | |
745 | (cloog_set_next_domain): Removed. | |
746 | (cloog_set_next_scattering): New. | |
747 | (CloogScatteringList): New. | |
748 | (CloogScattering): New. | |
749 | (cloog_scattering_free): New. | |
750 | (new_Cloog_Scattering_from_ppl_Polyhedron): New. | |
751 | * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron): | |
752 | New. | |
753 | ||
60f87855 AS |
754 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
755 | ||
756 | * graphite-clast-to-gimple.c (build_cloog_prog): Extend with | |
757 | CloogState. | |
758 | (set_cloog_options): Same. | |
759 | (print_clast_stmt): Same. | |
760 | (scop_to_clast): Same. | |
761 | (print_generated_program): Same. | |
762 | (gloog): Same. | |
763 | * graphite-clast-to-gimple.h: Include graphite-cloog-util.h. | |
764 | (scop_to_clast): Extend with CloogState. | |
765 | * graphite-cloog-util.c: Include graphite-cloog-compat.h | |
766 | (new_Cloog_Domain_from_ppl_Polyhedron): | |
767 | Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG). | |
768 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState. | |
769 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
770 | * graphite-cloog-util.h (build_cloog_prog): Same. | |
771 | * graphite-cloog-copat.h (build_cloog_prog): New. | |
772 | (CloogState): New. | |
773 | (cloog_state_malloc): New. | |
774 | (cloog_state_free): New. | |
775 | (cloog_loop_malloc): New. | |
776 | (cloog_options_malloc): New. | |
777 | (cloog_statement_alloc): New. | |
778 | (cloog_domain_from_cloog_matrix): New. | |
779 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
780 | (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
781 | ||
4431102b AS |
782 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
783 | ||
784 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter | |
785 | type of NAME now depends on used CLooG version. | |
786 | (clast_to_gcc_expression): Replace expr_* with clast_expr_*. | |
787 | (gcc_type_for_clast_expr): Same. | |
788 | (print_clast_stmt): Replace pprint with clast_pprint. | |
789 | * graphite-cloog-compat.h: Provide compatibility macros for | |
790 | CLooG Legacy. | |
791 | (clast_name_p): New. | |
792 | (clast_expr_term): New. | |
793 | (clast_expr_red): New. | |
794 | (clast_expr_bin): New. | |
795 | (clast_pprint): New. | |
796 | ||
ac3b070a AS |
797 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
798 | ||
799 | * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options | |
800 | compatible to newer CLooG releases (CLOOG_ORG). | |
801 | (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG). | |
802 | (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG). | |
803 | * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy. | |
804 | (build_cloog_prog) : New. | |
805 | (cloog_program_extract_scalars): New. | |
806 | (cloog_program_scatter): New. | |
807 | ||
2bbb190a AS |
808 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
809 | ||
810 | * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h | |
811 | conditionally (CLOOG_ORG). | |
812 | * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h. | |
813 | (cloog_statement_usr): New. | |
814 | (cloog_domain): Same. | |
815 | (cloog_set_domain): Same. | |
816 | (cloog_next_domain): Same. | |
817 | (cloog_set_next_domain): Same. | |
818 | (cloog_program_nb_scattdims): Same. | |
819 | (cloog_program_set_nb_scattdims): Same. | |
820 | (cloog_program_names): Same. | |
821 | (cloog_program_set_names): Same. | |
822 | (cloog_program_set_context): Same. | |
823 | (cloog_program_set_loop): Same. | |
824 | (cloog_program_blocklist): Same. | |
825 | (cloog_program_set_blocklist): Same. | |
826 | (cloog_program_scaldims): Same. | |
827 | (cloog_program_set_scaldims): Same. | |
828 | (cloog_names_nb_parameters): Same. | |
829 | (cloog_names_set_nb_parameters): Same. | |
830 | (cloog_names_parameters): Same. | |
831 | (cloog_names_set_parameters): Same. | |
832 | (cloog_names_set_nb_iterators): Same. | |
833 | (cloog_names_set_iterators): Same. | |
834 | (cloog_names_set_nb_scattering): Same. | |
835 | (cloog_names_set_scattering): Same. | |
836 | (cloog_statement_set_usr): Same. | |
837 | (cloog_loop_set_next): Same. | |
838 | (cloog_loop_set_domain): Same. | |
839 | (cloog_loop_set_block): Same. | |
840 | (cloog_block_list_next): Same. | |
841 | (cloog_block_list_set_next): | |
842 | (cloog_block_list_set_block): Same. | |
843 | ||
5d737345 SP |
844 | 2010-07-27 Sebastian Pop <sebastian.pop@amd.com> |
845 | ||
846 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns | |
847 | a bool. | |
848 | (rewrite_commutative_reductions_out_of_ssa_close_phi): Same. | |
849 | (rewrite_commutative_reductions_out_of_ssa_loop): Same. | |
850 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab | |
851 | when something has been changed. | |
852 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
853 | ||
854 | * gcc.dg/graphite/id-26.c: New. | |
855 | ||
ab756588 SP |
856 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
857 | ||
858 | * graphite-sese-to-poly.c (propagate_expr_outside_region): Also | |
859 | handle the case when def is in the sese region. | |
860 | (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region | |
861 | for invariant expressions. | |
862 | (rewrite_cross_bb_phi_deps): Removed. | |
863 | (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes. | |
864 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call | |
865 | rewrite_cross_bb_phi_deps. | |
866 | ||
4ee23fa8 SP |
867 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
868 | ||
869 | * graphite-sese-to-poly.c | |
870 | (rewrite_commutative_reductions_out_of_ssa_loop): Call | |
871 | scev_analyzable_p only on is_gimple_reg | |
872 | ||
873 | * gcc.dg/graphite/id-25.c: New. | |
874 | ||
1c2a7491 SP |
875 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
876 | ||
877 | * graphite-sese-to-poly.c (propagate_expr_outside_region): New. | |
878 | (rewrite_close_phi_out_of_ssa): Propagate constant values or | |
879 | parametric expressions outside the scop region. | |
880 | (rewrite_cross_bb_scalar_deps): Same. | |
881 | * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees. | |
882 | ||
883 | * gcc.dg/graphite/run-id-5.c: New. | |
884 | * gcc.dg/graphite/run-id-6.c: New. | |
885 | * gfortran.dg/graphite/id-21.f: New. | |
886 | ||
320532a8 SP |
887 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
888 | ||
889 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use | |
890 | SSA_NAME_DEF_STMT only on SSA_NAMEs. | |
891 | ||
892 | * gcc.dg/graphite/id-24.c: New. | |
893 | ||
2847388e SP |
894 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
895 | ||
896 | * tree-scalar-evolution.c (instantiate_scev_name): Do not | |
897 | instantiate default definitions. | |
898 | ||
ed941c41 VK |
899 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
900 | ||
901 | * graphite-scop-detection.c (is_valid_stmt_p): New. | |
902 | (is_valid_bb_p): New. | |
903 | ||
f4ce375d VK |
904 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
905 | Sebastian Pop <sebastian.pop@amd.com> | |
906 | ||
907 | * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p. | |
908 | (loop_exits_from_bb_p): New. | |
909 | * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p. | |
910 | (loop_exits_from_bb_p): Declared. | |
911 | * graphite-scop-detection.c (scopdet_basic_block_info): Call | |
912 | loop_exits_to_bb_p. | |
913 | ||
15d17127 VK |
914 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
915 | ||
916 | * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and | |
917 | tree-data-ref.h. | |
918 | (dot_regions_1): New. | |
919 | (dot_regions): New. | |
920 | * refined-regions.h (dot_regions): Declared. | |
921 | * Makefile.in (refined-regions.o): Update dependences. | |
922 | ||
a7d00e71 SP |
923 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
924 | ||
925 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an | |
926 | extra parameter for the region. Call scev_analyzable_p. | |
927 | (rewrite_reductions_out_of_ssa): Update call to | |
928 | rewrite_close_phi_out_of_ssa. | |
929 | (rewrite_cross_bb_phi_deps): Same. | |
930 | (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra | |
931 | parameter for the region. Call scev_analyzable_p. | |
932 | (rewrite_commutative_reductions_out_of_ssa): Update call to | |
933 | rewrite_commutative_reductions_out_of_ssa_loop. | |
934 | ||
5df5f257 SP |
935 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
936 | ||
937 | * gcc.dg/tree-ssa/pr20742.c: New. | |
938 | ||
6f23dd91 SP |
939 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
940 | ||
941 | * sese.c (rename_uses): Call unshare_expr before force_gimple_operand. | |
942 | ||
943 | * gcc.dg/graphite/id-23.c: New. | |
944 | ||
87b28340 SP |
945 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
946 | ||
947 | * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of | |
948 | SSA scalar phi nodes that can be scev_analyzable_p. | |
949 | ||
950 | * gfortran.dg/graphite/id-20.f: Adjust testcase. | |
951 | ||
3dd2dd57 SP |
952 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
953 | ||
954 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly | |
955 | handle SSA_NAME_IS_DEFAULT_DEF. | |
956 | ||
a0dd1502 SP |
957 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
958 | ||
959 | * sese.c (rename_uses): Handl unconditionally gimple_debug statements. | |
960 | ||
961 | * gcc.dg/graphite/pr42729.c: New. | |
962 | ||
8af6d9cd SP |
963 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
964 | ||
965 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special | |
966 | case non close-phi nodes with one argument. | |
967 | ||
f36fc876 SP |
968 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
969 | ||
970 | * sese.h (scev_analyzable_p): Scevs could be expressions without | |
971 | chrecs and still be scev_analyzable_p. | |
972 | ||
57fe3c87 SP |
973 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
974 | ||
975 | * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100. | |
976 | ||
a0d1afb3 SP |
977 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
978 | ||
979 | * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv. | |
980 | * cfgloop.h (struct loop): Remove single_iv field. | |
981 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed. | |
982 | (scop_canonicalize_loops): Removed. | |
983 | (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate | |
984 | over all the loop phi nodes in loop->header. | |
985 | (build_poly_scop): Remove use of scop_canonicalize_loops. | |
986 | ||
dba9acfa SP |
987 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
988 | ||
989 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also | |
990 | handle GIMPLE_CALL. | |
991 | ||
8b059232 SP |
992 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
993 | ||
994 | * tree-chrec.c (chrec_apply): Should only apply to the specified | |
995 | variable. Also handle multivariate chains of recurrences that | |
996 | satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT. | |
997 | ||
2e286fd2 SP |
998 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
999 | ||
1000 | * graphite-clast-to-gimple.c (debug_clast_name_index): Removed. | |
1001 | (debug_clast_name_indexes_1): Removed. | |
1002 | (debug_clast_name_indexes): Removed. | |
1003 | (pbb_to_depth_to_oldiv): Removed. | |
1004 | (build_iv_mapping): Replace the use of rename_map with iv_map. | |
1005 | (translate_clast_user): Remove uses of rename_map. Allocate and | |
1006 | free iv_map. | |
1007 | (translate_clast_for_loop): Remove uses of rename_map. | |
1008 | (translate_clast_for): Same. | |
1009 | (translate_clast_guard): Same. | |
1010 | (translate_clast): Same. | |
1011 | (gloog): Same. | |
1012 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed. | |
1013 | * graphite-sese-to-poly.c (scev_analyzable_p): Moved... | |
1014 | * sese.c (set_rename): Now static. | |
1015 | (rename_variables_in_stmt): Removed. | |
1016 | (rename_uses): New. | |
1017 | (is_parameter): Removed. | |
1018 | (is_iv): Removed. | |
1019 | (expand_scalar_variables_call): Removed. | |
1020 | (expand_scalar_variables_ssa_name): Removed. | |
1021 | (expand_scalar_variables_expr): Removed. | |
1022 | (expand_scalar_variables_stmt): Removed. | |
1023 | (expand_scalar_variables): Removed. | |
1024 | (rename_variables): Removed. | |
1025 | (remove_condition): Removed. | |
1026 | (get_true_edge_from_guard_bb): Removed. | |
1027 | (get_false_edge_from_guard_bb): Removed. | |
1028 | (struct igp): Removed. | |
1029 | (default_before_guard): Removed. | |
1030 | (convert_for_phi_arg): Removed. | |
1031 | (add_guard_exit_phis): Removed. | |
1032 | (insert_guard_phis): Removed. | |
1033 | (graphite_copy_stmts_from_block): Now also uses iv_map and a | |
1034 | region. Do not copy conditions. Do not copy induction variables. | |
1035 | Call rename_uses. | |
1036 | (copy_bb_and_scalar_dependences): Allocate a local rename_map for | |
1037 | the translated statement. Use the iv_map for the induction | |
1038 | variable renaming. | |
1039 | * sese.h (copy_bb_and_scalar_dependences): Update declaration. | |
1040 | (set_rename): Removed declaration. | |
1041 | (scev_analyzable_p): ...here. | |
1042 | * tree-chrec.c (chrec_apply_map): New. | |
1043 | * tree-chrec.h (chrec_apply_map): Declared. | |
1044 | ||
e11d25e0 SP |
1045 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
1046 | ||
1047 | * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call | |
1048 | insert_loop_close_phis. | |
1049 | * sese.c (name_defined_in_loop_p): Removed. | |
1050 | (expr_defined_in_loop_p): Removed. | |
1051 | (alive_after_loop): Removed. | |
1052 | (close_phi_not_yet_inserted_p): Removed. | |
1053 | (struct alep): Removed. | |
1054 | (add_loop_exit_phis): Removed. | |
1055 | (insert_loop_close_phis): Removed. | |
1056 | ||
61298f69 AS |
1057 | 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1058 | ||
e11d25e0 SP |
1059 | * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped |
1060 | condition. | |
1061 | * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same. | |
61298f69 | 1062 | |
7ff28cc2 SP |
1063 | 2010-07-07 Sebastian Pop <sebastian.pop@amd.com> |
1064 | ||
1065 | * gfortran.dg/graphite/id-20.f: New. | |
1066 | ||
a9c2ba8f AS |
1067 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1068 | ||
1069 | * graphite-cloog-util.h: Added cloog.h. | |
1070 | * graphite-blocking.c: Removed cloog.h. | |
1071 | * graphite-dependences.c: Same. | |
1072 | * graphite-interchange.c: Same. | |
1073 | * graphite-poly.c: Same. | |
1074 | * graphite-ppl.c: Same. | |
1075 | * graphite-scop-detection.c: Same. | |
1076 | * graphite-sese-to-poly.c: | |
1077 | Removed cloog.h. | |
1078 | Removed graphite-clast-to-gimple.h. | |
1079 | (check_poly_representation): Removed (unused). | |
1080 | * graphite-sese-to-poly.h | |
1081 | (check_poly_representation): Removed (unused). | |
1082 | ||
0647324a AS |
1083 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1084 | ||
1085 | * Makefile.in | |
1086 | (OBJS-common): Added graphite-cloog-util.o. | |
1087 | (graphite-clast-to-gimple.o): Added graphite-cloog-util.h. | |
1088 | (graphite-cloog-util.o): New. | |
1089 | (graphite-ppl.o): Added graphite-cloog-util.h. | |
1090 | * graphite-clast-to-gimple.c: | |
1091 | Added graphite-cloog-util.h to include statements. | |
1092 | * graphite-cloog-util.c: New. | |
1093 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c. | |
1094 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
1095 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1096 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
1097 | (ppl_Constrain_System_number_of_constraints): Same. | |
1098 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
1099 | (oppose_constraint): Same. | |
1100 | (cloog_matrix_to_ppl_constraint): Same. | |
1101 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
1102 | (insert_constraint_into_matrix): Same. Declared static. | |
1103 | * graphite-cloog-util.h: New. | |
1104 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h. | |
1105 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
1106 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1107 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
1108 | (insert_constraint_into_matrix): Same. | |
1109 | * graphite-ppl.c: | |
1110 | Added graphite-cloog-util.h to include statements. | |
1111 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c. | |
1112 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
1113 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1114 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
1115 | (insert_constraint_into_matrix): Same. | |
1116 | (ppl_Constrain_System_number_of_constraints): Same. | |
1117 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
1118 | (oppose_constraint): Same. | |
1119 | (cloog_matrix_to_ppl_constraint): Same. | |
1120 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
1121 | * graphite-ppl.h: | |
1122 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to | |
1123 | graphite-cloog-util.h. | |
1124 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
1125 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1126 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
1127 | (insert_constraint_into_matrix): Removed. | |
1128 | ||
589ac63c AS |
1129 | 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1130 | ||
1131 | * graphite-clast-to-gimple.c | |
1132 | (precision_for_value): Resolve value_* calls to matching mpz_* calls. | |
1133 | (precision_for_interval): Same. | |
1134 | (gcc_type_for_interval): Same. | |
1135 | (compute_type_for_level): Same. | |
1136 | * graphite-interchange.c | |
1137 | (lst_interchange_profitable_p): Same. | |
1138 | * graphite-poly.c | |
1139 | (psct_scattering_dim_for_loop_depth): Same. | |
1140 | * graphite-ppl.c | |
1141 | (ppl_max_for_le_pointset): Same. | |
1142 | (ppl_min_for_le_pointset): Same. | |
1143 | ||
3e40cb77 VK |
1144 | 2010-06-25 Vladimir Kargov <kargov@gmail.com> |
1145 | ||
1146 | * refined-regions.c (bb_index_compare): New. | |
1147 | (get_bbs_in_region): New. | |
1148 | (print_bbs_in_region): New. | |
1149 | (print_refined_region): Add an argument that allows to print | |
1150 | all basic blocks contained in regions. | |
1151 | (debug_refined_region): Update call to print_refined_region. | |
1152 | * refined-regions.h (print_refined_region): Update declaration. | |
1153 | (get_bbs_in_region): Declared. | |
1154 | * graphite-scop-detection.c (build_scops_new): Print the refined | |
1155 | region tree into the Grahite dump file. | |
1156 | ||
d3e7b889 SP |
1157 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
1158 | ||
1159 | * graphite-sese-to-poly.c (rewrite_degenerate_phi): New. | |
1160 | (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result. | |
1161 | ||
aedede66 SP |
1162 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
1163 | ||
1164 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call | |
1165 | rewrite_close_phi_out_of_ssa. | |
1166 | ||
1167 | * gcc.dg/graphite/id-22.c: New. | |
1168 | ||
f2c51113 SP |
1169 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
1170 | ||
1171 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code. | |
1172 | ||
32e68db9 SP |
1173 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
1174 | ||
1175 | * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with | |
1176 | rename_map. | |
1177 | * sese.c (debug_rename_map): Same. | |
1178 | (get_rename): Same. | |
1179 | (set_rename): Same. | |
1180 | (rename_variables_in_stmt): Same. | |
1181 | (expand_scalar_variables_call): Same. | |
1182 | (expand_scalar_variables_ssa_name): Same. | |
1183 | (expand_scalar_variables_expr): Same. | |
1184 | (expand_scalar_variables_stmt): Same. | |
1185 | (expand_scalar_variables): Same. | |
1186 | (rename_variables): Same. | |
1187 | (graphite_copy_stmts_from_block): Same. | |
1188 | (copy_bb_and_scalar_dependences): Same. | |
1189 | ||
8b164754 SP |
1190 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
1191 | ||
1192 | * graphite-clast-to-gimple.c (copy_renames): Removed. | |
1193 | (translate_clast_for): Do not call copy_renames. | |
1194 | (translate_clast_guard): Same. | |
1195 | ||
9773d730 SP |
1196 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1197 | ||
1198 | * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up. | |
1199 | (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps. | |
1200 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps | |
1201 | before rewrite_cross_bb_scalar_deps. | |
1202 | ||
cc588970 SP |
1203 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1204 | ||
1205 | * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa): | |
1206 | Early return in when flag_associative_math is not set. | |
1207 | ||
3d125479 SP |
1208 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1209 | ||
1210 | * gcc.dg/graphite/run-id-2.c: Call abort. | |
1211 | ||
4aa9a167 SP |
1212 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1213 | ||
1214 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out | |
1215 | of SSA copies on edges except for loop->latch. | |
1216 | ||
ee646fc6 SP |
1217 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1218 | ||
1219 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
1220 | Split out of rewrite_reductions_out_of_ssa. | |
1221 | * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
1222 | Declared. | |
1223 | * graphite.c (graphite_transform_loops): Call it. | |
1224 | ||
6a7441f5 SP |
1225 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
1226 | ||
1227 | * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. | |
1228 | ||
d4332d00 SP |
1229 | 2010-06-15 Sebastian Pop <sebastian.pop@amd.com> |
1230 | ||
1231 | * passes.c (init_optimization_passes): Add pass_graphite. | |
1232 | Schedule a pass_copy_prop before pass_graphite_transforms. | |
1233 | * timevar.def (TV_GRAPHITE): Declared. | |
1234 | * tree-pass.h (pass_graphite): Declared. | |
1235 | * tree-ssa-loop.c (pass_graphite): New. | |
1236 | ||
1237 | * gcc.dg/graphite/id-20.c: New. | |
1238 | ||
14d0e129 SP |
1239 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
1240 | ||
1241 | * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter. | |
1242 | Remove calls to rename_nb_iterations and rename_sese_parameters. | |
1243 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
1244 | * graphite.c (graphite_transform_loops): Update call to gloog. | |
1245 | * sese.c (rename_variables_in_expr): Removed. | |
1246 | (rename_nb_iterations): Removed. | |
1247 | (rename_sese_parameters): Removed. | |
1248 | * sese.h (rename_nb_iterations): Removed. | |
1249 | (rename_sese_parameters): Removed. | |
1250 | ||
d1ba0721 SP |
1251 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
1252 | ||
1253 | * graphite-clast-to-gimple.c (gloog): Remove call to | |
1254 | sese_adjust_liveout_phis. | |
1255 | * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an | |
1256 | SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps. | |
1257 | (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call | |
1258 | rewrite_phi_out_of_ssa. | |
1259 | * sese.c (get_vdef_before_sese): Removed. | |
1260 | (sese_adjust_vphi): Removed. | |
1261 | (sese_adjust_liveout_phis): Removed. | |
1262 | * sese.h (sese_adjust_liveout_phis): Removed. | |
1263 | ||
5fed5769 SP |
1264 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
1265 | ||
1266 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra | |
1267 | argument for the place after which to insert the out of SSA copy. | |
1268 | (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy. | |
1269 | (rewrite_phi_out_of_ssa): Same. | |
1270 | (rewrite_cross_bb_scalar_deps): Same. | |
1271 | (insert_copyout): Removed. | |
1272 | (insert_copyin): Removed. | |
1273 | (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and | |
1274 | insert_out_of_ssa_copy_on_edge instead of insert_copyout and | |
1275 | insert_copyin. | |
1276 | ||
3a7086cc SP |
1277 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
1278 | ||
1279 | * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore. | |
1280 | (rewrite_reductions_out_of_ssa): Same. | |
1281 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
1282 | (build_poly_scop): Do not call these functions. | |
1283 | * graphite-sese-to-poly.h (build_poly_scop): Declared. | |
1284 | (rewrite_reductions_out_of_ssa): Declared. | |
1285 | (rewrite_commutative_reductions_out_of_ssa): Declared. | |
1286 | * graphite.c (graphite_transform_loops): Call on every scop | |
1287 | rewrite_commutative_reductions_out_of_ssa before calling | |
1288 | rewrite_reductions_out_of_ssa and build_scop_bbs. | |
1289 | ||
61ca46ce SP |
1290 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
1291 | ||
1292 | * graphite-dependences.c (dot_deps): Make system call to dotty run | |
1293 | in background. | |
1294 | (dot_deps_stmt): Same. | |
1295 | * graphite-poly.c (dot_lst): Same. | |
1296 | ||
f5f50480 SP |
1297 | 2010-06-11 Sebastian Pop <sebastian.pop@amd.com> |
1298 | ||
1299 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass | |
1300 | old_type in parameter. | |
1301 | (gcc_type_for_value): Update call to gcc_type_for_interval. | |
1302 | (compute_type_for_level_1): Renamed compute_type_for_level. | |
1303 | Update call to gcc_type_for_interval. | |
1304 | ||
081970eb SP |
1305 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
1306 | ||
1307 | * tree-scalar-evolution.c (instantiate_scev_name): Do not fail | |
1308 | the scev analysis when the variable is not used outside the loop | |
1309 | in a close phi node: call compute_overall_effect_of_inner_loop. | |
1310 | ||
bb17c851 SP |
1311 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
1312 | ||
1313 | * graphite-sese-to-poly.c (single_pred_cond): Renamed | |
1314 | single_pred_cond_non_loop_exit. Return NULL for loop exit edges. | |
1315 | (build_sese_conditions_before): Renamed call to single_pred_cond. | |
1316 | (build_sese_conditions_after): Same. | |
1317 | ||
86e40af7 SP |
1318 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
1319 | ||
1320 | * graphite-poly.h: Fix comments and indentation. | |
1321 | * graphite-sese-to-poly.c: Same. | |
1322 | (build_sese_conditions_before): Compute stmt and gbb only when needed. | |
1323 | * tree-chrec.c: Fix comments and indentation. | |
1324 | (tree-ssa-loop-niter.c): Same. | |
1325 | ||
5599dea7 TG |
1326 | 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de> |
1327 | ||
1328 | * refined-regions.c (create_region): Only initialize the region. | |
1329 | (find_regions_with_entry): Initialize parent relation and bbmap | |
1330 | correctly. | |
1331 | (build_regions_tree): Set outermost_region to region instead of | |
1332 | topmost_region. | |
1333 | (calculate_region_tree): Remove unneeded parameters. | |
1334 | ||
2a6909ec TG |
1335 | 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de> |
1336 | ||
1337 | * graphite-scop-detection.c (is_scop_p): New. | |
1338 | (build_scops_new): New. A skeleton for the new scop detection. | |
1339 | (build_scops_old): Renamed from build_scops. | |
1340 | (build_scops): New version. Call the new and the old scop | |
1341 | detection. | |
1342 | ||
25c57e83 TG |
1343 | 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de> |
1344 | Antoniu Pop <antoniu.pop@gmail.com> | |
1345 | ||
1346 | * Makefile.in (OBJS-common): Add refined-regions.o. | |
1347 | (refined-regions.o): New. | |
1348 | (graphite-scop-detection.o): Use refined-regions.h. | |
1349 | * graphite-scop-detection.c: Include refined-regions.h | |
1350 | (build_scops): Also build the refined region tree. | |
1351 | * refined-regions.c: New. Adds an algorithm to detect refined | |
1352 | regions. | |
1353 | (print_refined_region): New. | |
1354 | (debug_refined_region): New. | |
1355 | (refined_region_contains_bb_p): New. | |
1356 | (refined_region_contains_region_p): New. | |
1357 | (is_common_df): New. | |
1358 | (struct find_regions_global_data): New. | |
1359 | (is_region): New. | |
1360 | (typedef struct bb_bb_def): New. | |
1361 | (new_bb_bb_def): New. | |
1362 | (bb_bb_map_hash): New. | |
1363 | (eq_bb_bb_map): New. | |
1364 | (find_new_bb): New. | |
1365 | (bb_reg_def): New. | |
1366 | (new_bb_reg_def): New. | |
1367 | (bb_reg_map_hash): New. | |
1368 | (eq_bb_reg_map): New. | |
1369 | (find_new_region): New. | |
1370 | (insert_new_reg): New. | |
1371 | (insert_new_bb): New. | |
1372 | (insert_shortcut): New. | |
1373 | (get_next_postdom): New. | |
1374 | (create_region): New. | |
1375 | (find_regions_with_entry): New. | |
1376 | (find_regions_adc): New. | |
1377 | (find_regions): New. | |
1378 | (get_topmost_parent): New. | |
1379 | (build_regions_tree): New. | |
1380 | (calculate_region_tree): New. | |
1381 | (free_region_tree): New. | |
1382 | * refined-regions.h: New. | |
1383 | (struct refined_region): New. | |
1384 | (calculate_region_tree): New. | |
1385 | (free_region_tree): New. | |
1386 | (refined_region_contains_bb_p): New. | |
1387 | (refined_region_contains_region_p): New. | |
1388 | (print_refined_region): New. | |
1389 | (debug_refined_region): New. | |
1390 | ||
8c131b3b SP |
1391 | 2010-05-26 Sebastian Pop <sebastian.pop@amd.com> |
1392 | ||
1393 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
1394 | size_one_node. | |
1395 | ||
d91949fa SP |
1396 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
1397 | ||
1398 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix | |
1399 | type of integer_one_node for fold_build of POINTER_PLUS_EXPR. | |
1400 | ||
159e4616 SP |
1401 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
1402 | ||
1403 | * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed | |
1404 | phi_arg_in_outermost_loop. | |
1405 | (remove_simple_copy_phi): Call phi_arg_in_outermost_loop. | |
1406 | (remove_invariant_phi): Same. | |
1407 | ||
e262fdda AS |
1408 | 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1409 | ||
1410 | * graphite-blocking.c | |
1411 | (pbb_strip_mine_profitable_p): Replace Value with mpz_t. | |
1412 | * graphite-clast-to-gimple.c | |
1413 | (clast_to_gcc_expression): Same. | |
1414 | (precision_for_value): Same. | |
1415 | (precision_for_interval): Same. | |
1416 | (gcc_type_for_interval): Same. | |
1417 | (graphite_create_new_guard): Same. | |
1418 | (compute_bounds_for_level): Same. | |
1419 | (graphite_create_new_loop_guard): Same. | |
1420 | * graphite-interchange.c | |
1421 | (build_linearized_memory_access): Same. | |
1422 | (pdr_stride_in_loop): Same. | |
1423 | (memory_strides_in_loop_1): Same. | |
1424 | (memory_strides_in_loop): Same. | |
1425 | (extend_scattering): Same. | |
1426 | (psct_scattering_dim_for_loop_depth): Same. | |
1427 | (pbb_number_of_iterations): Same. | |
1428 | * graphite-poly.h | |
1429 | (debug_iteration_domains): Same. | |
1430 | * graphite-ppl.c | |
1431 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1432 | (ppl_set_inhomogeneous_gmp): Same. | |
1433 | (ppl_strip_loop): Same. | |
1434 | (ppl_lexico_compare_linear_expressions): Same. | |
1435 | (ppl_read_polyhedron_matrix): Same. | |
1436 | (ppl_max_for_le_pointset): Same. | |
1437 | * graphite-ppl.h | |
1438 | (ppl_read_polyhedron_matrix): Same. | |
1439 | (tree_int_to_gmp): Same. | |
1440 | (gmp_cst_to_tree): Same. | |
1441 | (ppl_set_inhomogeneous): Same. | |
1442 | (ppl_set_inhomogeneous_tree): Same. | |
1443 | (ppl_set_coef): Same. | |
1444 | (ppl_set_coef_tree): Same. | |
1445 | * graphite-sese-to-poly.c | |
1446 | (build_pbb_scattering_polyhedrons): Same. | |
1447 | (build_scop_scattering): Same. | |
1448 | (scan_tree_for_params_right_scev): Same. | |
1449 | (scan_tree_for_params): Same. | |
1450 | (find_params_in_bb): Same. | |
1451 | (find_scop_parameters): Same. | |
1452 | (add_upper_bounds_from_estimated_nit): Same. | |
1453 | (build_loop_iteration_domains): Same. | |
1454 | (add_condition_to_domain): Same. | |
1455 | (pdr_add_memory_accesses): Same. | |
1456 | ||
a0bb35c7 AS |
1457 | 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1458 | ||
aa91c4cc | 1459 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve |
a0bb35c7 AS |
1460 | CLooG's value_* macros to their respective mpz_* counterparts. |
1461 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same. | |
1462 | (graphite_create_new_loop_guard): Same. | |
1463 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
1464 | (pdr_stride_in_loop): Same. | |
1465 | (memory_strides_in_loop_1): Same. | |
1466 | (1st_interchange_profitable_p): Same. | |
1467 | * graphite-poly.c (extend_scattering): Same. | |
1468 | (psct_scattering_dim_for_loop_depth): Same. | |
1469 | (pbb_number_of_iterations): Same. | |
1470 | (pbb_number_of_iterations_at_time): Same. | |
1471 | * graphite-poly.h (new_1st_loop): Same. | |
1472 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same. | |
1473 | (oppose_constraint): Same. | |
1474 | (insert_constraint_into_matrix): Same. | |
1475 | (ppl_set_inhomogeneous_gmp): Same. | |
1476 | (ppl_set_coef_gmp): Same. | |
1477 | (ppl_strip_loop): Same. | |
1478 | (ppl_lexico_compare_linear_expressions): Same. | |
1479 | (ppl_max_for_le_pointset): Same. | |
1480 | (ppl_min_for_le_pointset): Same. | |
1481 | (ppl_build_realtion): Same. | |
1482 | * graphite-ppl.h (gmp_cst_to_tree): Same. | |
1483 | (ppl_set_inhomogeneous): Same. | |
1484 | (ppl_set_inhomogeneous_tree): Same. | |
1485 | (ppl_set_coef): Same. | |
1486 | (ppl_set_coef_tree): Same. | |
1487 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same. | |
1488 | (build_scop_scattering): Same. | |
1489 | (add_value_to_dim): Same. | |
1490 | (scan_tree_for_params_right_scev): Same. | |
1491 | (scan_tree_for_params_int): Same. | |
1492 | (scan_tree_for_params): Same. | |
1493 | (find_params_in_bb): Same. | |
1494 | (find_scop_parameters): Same. | |
1495 | (add_upper_bounds_from_estimated_nit): Same. | |
1496 | (build_loop_iteration_domains): Same. | |
1497 | (create_linear_expr_from_tree): Same. | |
1498 | (add_condition_to_domain): Same. | |
1499 | (pdr_add_memory_accesses): Same. | |
1500 | ||
b8132a7d SP |
1501 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> |
1502 | ||
1503 | PR middle-end/43519 | |
1504 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
1505 | lang_hooks.types.type_for_size instead of build_nonstandard_integer_type. | |
1506 | When converting an unsigned type to signed, double its precision. | |
1507 | (gcc_type_for_interval): Use lang_hooks.types.type_for_size. | |
1508 | (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type. | |
1509 | (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub. | |
1510 | ||
1511 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
1512 | ||
1513 | PR middle-end/43519 | |
1514 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
1515 | build_nonstandard_integer_type. | |
1516 | (gcc_type_for_interval): Same. | |
1517 | ||
1518 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
dbe0d652 SP |
1519 | |
1520 | PR middle-end/43519 | |
1521 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
1522 | POINTER_PLUS_EXPR for pointer types. | |
1523 | ||
1524 | * gcc.dg/graphite/id-19.c: New. | |
1525 | ||
bd32f344 SP |
1526 | 2010-04-04 Sebastian Pop <sebastian.pop@amd.com> |
1527 | ||
1528 | PR middle-end/43519 | |
1529 | * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h. | |
1530 | * graphite-clast-to-gimple.c: Include langhooks.h. | |
1531 | (max_signed_precision_type): New. | |
1532 | (max_precision_type): Takes two types as arguments. | |
1533 | (precision_for_value): New. | |
1534 | (precision_for_interval): New. | |
1535 | (gcc_type_for_interval): New. | |
1536 | (gcc_type_for_value): New. | |
1537 | (gcc_type_for_clast_term): New. | |
1538 | (gcc_type_for_clast_red): New. | |
1539 | (gcc_type_for_clast_bin): New. | |
1540 | (gcc_type_for_clast_expr): Split up into several functions. | |
1541 | (gcc_type_for_clast_eq): Rewritten. | |
1542 | (compute_bounds_for_level): New. | |
1543 | (compute_type_for_level_1): New. | |
1544 | (compute_type_for_level): New. | |
1545 | (gcc_type_for_cloog_iv): Removed. | |
1546 | (gcc_type_for_iv_of_clast_loop): Rewritten. | |
1547 | (graphite_create_new_loop): Compute the lower and upper bound types | |
1548 | with gcc_type_for_clast_expr. | |
1549 | (graphite_create_new_loop_guard): Same. | |
1550 | (find_cloog_iv_in_expr): Removed. | |
1551 | (compute_cloog_iv_types_1): Removed. | |
1552 | (compute_cloog_iv_types): Removed. | |
1553 | (gloog): Do not call compute_cloog_iv_types. | |
1554 | * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize | |
1555 | GBB_CLOOG_IV_TYPES. | |
1556 | (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES. | |
1557 | * sese.h (struct gimple_bb): Removed field cloog_iv_types. | |
1558 | (GBB_CLOOG_IV_TYPES): Removed. | |
1559 | ||
1560 | * gcc.dg/graphite/run-id-pr42644.c: Call abort. | |
1561 | ||
79d03cf8 SP |
1562 | 2010-04-02 Sebastian Pop <sebastian.pop@amd.com> |
1563 | ||
1564 | Reverted this commit: as at this point the loop closed SSA form | |
1565 | is under a canonical form respecting the single argument condition. | |
1566 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
1567 | close phi nodes may have more than one argument. | |
1568 | ||
1569 | 2010-04-01 Sebastian Pop <sebastian.pop@amd.com> | |
1570 | ||
1571 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that | |
1572 | gimple_phi_num_args of the loop close SSA phi node is equal to 1. | |
1573 | (detect_commutative_reduction): Same. | |
1574 | ||
1575 | 2010-03-31 Sebastian Pop <sebastian.pop@amd.com> | |
1576 | ||
1577 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
1578 | close phi nodes may have more than one argument. | |
1579 | ||
3cbf7085 RG |
1580 | 2010-03-30 Richard Guenther <rguenther@suse.de> |
1581 | Zdenek Dvorak <ook@ucw.cz> | |
1582 | Sebastian Pop <sebastian.pop@amd.com> | |
1583 | ||
1584 | PR middle-end/43464 | |
1585 | * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes | |
1586 | with multiple arguments. | |
1587 | (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa. | |
1588 | ||
40bf935e SP |
1589 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1590 | ||
1591 | * graphite-dependences.c (print_pddr): Call print_pdr with an | |
1592 | extra argument. | |
1593 | * graphite-poly.c (debug_pdr): Add an extra argument for the | |
1594 | verbosity level. | |
1595 | (print_pdr): Same. | |
1596 | (print_pbb_domain): Same. | |
1597 | (print_pbb): Same. | |
1598 | (print_scop_context): Same. | |
1599 | (print_scop): Same. | |
1600 | (print_cloog): Same. | |
1601 | (debug_pbb_domain): Same. | |
1602 | (debug_pbb): Same. | |
1603 | (print_pdrs): Same. | |
1604 | (debug_pdrs): Same. | |
1605 | (debug_scop_context): Same. | |
1606 | (debug_scop): Same. | |
1607 | (debug_cloog): Same. | |
1608 | (print_scop_params): Same. | |
1609 | (debug_scop_params): Same. | |
1610 | (print_iteration_domain): Same. | |
1611 | (print_iteration_domains): Same. | |
1612 | (debug_iteration_domain): Same. | |
1613 | (debug_iteration_domains): Same. | |
1614 | (print_scattering_function): Same. | |
1615 | (print_scattering_functions): Same. | |
1616 | (debug_scattering_function): Same. | |
1617 | (debug_scattering_functions): Same. | |
1618 | * graphite-poly.h (debug_pdr): Update declaration. | |
1619 | (print_pdr): Same. | |
1620 | (print_pbb_domain): Same. | |
1621 | (print_pbb): Same. | |
1622 | (print_scop_context): Same. | |
1623 | (print_scop): Same. | |
1624 | (print_cloog): Same. | |
1625 | (debug_pbb_domain): Same. | |
1626 | (debug_pbb): Same. | |
1627 | (print_pdrs): Same. | |
1628 | (debug_pdrs): Same. | |
1629 | (debug_scop_context): Same. | |
1630 | (debug_scop): Same. | |
1631 | (debug_cloog): Same. | |
1632 | (print_scop_params): Same. | |
1633 | (debug_scop_params): Same. | |
1634 | (print_iteration_domain): Same. | |
1635 | (print_iteration_domains): Same. | |
1636 | (debug_iteration_domain): Same. | |
1637 | (debug_iteration_domains): Same. | |
1638 | (print_scattering_function): Same. | |
1639 | (print_scattering_functions): Same. | |
1640 | (debug_scattering_function): Same. | |
1641 | (debug_scattering_functions): Same. | |
1642 | ||
730a9846 SP |
1643 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1644 | ||
1645 | * graphite-poly.c (print_scattering_function_1): New. | |
1646 | (print_scattering_function): Call it. | |
1647 | (print_scop_params): Remove spaces at the end of lines. | |
1648 | (print_cloog): New. | |
1649 | (debug_cloog): New. | |
1650 | * graphite-poly.h (print_cloog): Declared. | |
1651 | (debug_cloog): Declared. | |
1652 | ||
9c0c34c2 SP |
1653 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1654 | ||
1655 | * tree-ssa-copy.c: Revert this previous change: | |
1656 | (init_copy_prop): Loop closed phi nodes cancontain more than one | |
1657 | argument. | |
1658 | (execute_copy_prop): Revert the previous change: do not call | |
1659 | rewrite_into_loop_closed_ssa. | |
1660 | ||
1661 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1662 | Richard Guenther <rguenther@suse.de> | |
1663 | ||
1664 | PR middle-end/43464 | |
1665 | * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can | |
1666 | contain more than one argument. | |
1667 | (execute_copy_prop): Revert the previous change: do not call | |
1668 | rewrite_into_loop_closed_ssa. | |
1669 | ||
1670 | * gcc.dg/graphite/id-pr43464.c: Remove compile warning. | |
1671 | * gcc.dg/graphite/id-pr43464-1.c: New. | |
1672 | ||
1673 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1674 | ||
1675 | PR middle-end/43464 | |
1676 | * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa | |
1677 | and verify_loop_closed_ssa when copy prop is executed in the LNO. | |
1678 | ||
1679 | * gcc.dg/graphite/id-pr43464.c: New. | |
1680 | ||
c80a5403 SP |
1681 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1682 | ||
1683 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump | |
1684 | in loop->header. | |
1685 | * tree-flow.h (canonicalize_loop_ivs): Updated declaration. | |
1686 | * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch. | |
1687 | * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter | |
1688 | to switch between adding the IV bump in loop->latch or in loop->header. | |
1689 | ||
caaf41d0 SP |
1690 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1691 | ||
1692 | * passes.c (init_optimization_passes): Add pass_copy_prop | |
1693 | after Graphite. | |
1694 | ||
03922af3 SP |
1695 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1696 | ||
1697 | * graphite-poly.c (print_scattering_function): Pretty print following | |
1698 | the scoplib format. | |
1699 | (print_pdr): Same. | |
1700 | (print_pbb_domain): Same. | |
1701 | (dump_gbb_cases): Same. | |
1702 | (dump_gbb_conditions): Same. | |
1703 | (print_pdrs): Same. | |
1704 | (print_pbb): Same. | |
1705 | (print_scop_params): Same. | |
1706 | (print_scop_context): Same. | |
1707 | (print_scop): Same. | |
1708 | (print_pbb_body): New. | |
1709 | (lst_indent_to): New. | |
1710 | (print_lst): Start new lines with a #. | |
1711 | * graphite-poly.h (pbb_bb): New. | |
1712 | (pbb_index): Use pbb_bb. | |
1713 | * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of | |
1714 | disjuncts. | |
1715 | * tree-data-ref.c (dump_data_reference): Start new lines with a #. | |
1716 | ||
7da9e6ed SP |
1717 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1718 | ||
1719 | PR middle-end/43351 | |
1720 | * gcc.dg/graphite/id-pr43351.c | |
1721 | ||
6492b694 SP |
1722 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1723 | ||
1724 | PR middle-end/43354 | |
1725 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not | |
1726 | call insert_out_of_ssa_copy for default definitions. | |
1727 | * gfortran.dg/graphite/id-pr43354.f: New. | |
1728 | ||
1729 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
113081e4 SP |
1730 | |
1731 | PR middle-end/43349 | |
1732 | * gfortran.dg/graphite/pr43349.f: New. | |
1733 | ||
248081bc SP |
1734 | 2010-03-11 Sebastian Pop <sebastian.pop@amd.com> |
1735 | ||
1736 | * graphite-clast-to-gimple.c (my_long_long): Defined. | |
1737 | (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node. | |
1738 | * graphite-sese-to-poly.c (my_long_long): Defined. | |
1739 | (scop_ivs_can_be_represented): Use it. | |
1740 | ||
d97c90ae SP |
1741 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1742 | ||
1743 | * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params, | |
1744 | graphite-max-bbs-per-function, and loop-block-tile-size. | |
1745 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal" | |
1746 | with "maximum". | |
1747 | (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same. | |
1748 | ||
a5a59b11 SP |
1749 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1750 | ||
1751 | * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove | |
1752 | forward declaration. | |
1753 | * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment. | |
1754 | (add_upper_bounds_from_estimated_nit): New. | |
1755 | (build_loop_iteration_domains): Use it. | |
1756 | ||
9d198913 SP |
1757 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1758 | ||
1759 | * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. | |
1760 | ||
1f380314 SP |
1761 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1762 | ||
1763 | PR middle-end/43306 | |
1764 | * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT | |
1765 | should be an INTEGER_CST. Also handle CASE_CONVERT. | |
1766 | * gcc.dg/graphite/pr43306.c: New. | |
1767 | ||
b6bb0094 SP |
1768 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1769 | ||
1770 | * graphite.c (graphite_initialize): To bound the number of bbs per | |
1771 | function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. | |
1772 | * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. | |
1773 | * doc/invoke.texi: Document it. | |
1774 | ||
e84aaa33 SP |
1775 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1776 | ||
1777 | * graphite-sese-to-poly.c (build_poly_scop): Do not return bool. | |
1778 | * graphite-sese-to-poly.h (build_poly_scop): Same. | |
1779 | ||
4e7dd376 SP |
1780 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1781 | ||
1782 | * graphite-sese-to-poly.c (build_poly_scop): Limit scops following | |
1783 | the number of parameters in the scop. Use as an upper bound | |
1784 | PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. | |
1785 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared. | |
1786 | * doc/invoke.texi: Document it. | |
1787 | ||
697f511d SP |
1788 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1789 | ||
1790 | * graphite-sese-to-poly.c (add_param_constraints): Use | |
1791 | lower_bound_in_type and upper_bound_in_type. | |
1792 | ||
456cc718 SP |
1793 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1794 | ||
1795 | * graphite-sese-to-poly.c (add_param_constraints): Use sizetype | |
1796 | instead of unsigned_type_node. | |
1797 | ||
3640d64c SP |
1798 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1799 | Reza Yazdani <reza.yazdani@amd.com> | |
1800 | ||
1801 | PR middle-end/43065 | |
1802 | * graphite-sese-to-poly.c (add_param_constraints): Insert bounds | |
1803 | on pointer type parameters. | |
1804 | ||
1805 | * gcc.dg/graphite/run-id-4.c: New. | |
1806 | ||
1807 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> | |
b75d95c9 SP |
1808 | |
1809 | PR middle-end/43065 | |
1810 | * gcc.dg/graphite/run-id-3.c: New. | |
1811 | ||
73102986 TG |
1812 | 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de> |
1813 | Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1814 | ||
1815 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also | |
1816 | handle conversions from pointer to integers. | |
1817 | (gcc_type_for_cloog_iv): Choose the smalles signed integer as an | |
1818 | induction variable, to be able to work with code generated by CLooG. | |
1819 | * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New. | |
1820 | (build_poly_scop): Bail out if we cannot codegen a loop. | |
1821 | ||
e3f81db1 TG |
1822 | 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de> |
1823 | ||
1824 | * graphite-clast-to-gimple.c (translate_clast): Do not short-cut | |
1825 | code generation with gloog_error. | |
1826 | ||
c7631a71 SP |
1827 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1828 | ||
1829 | * sese.c (expand_scalar_variables_ssa_name): Add new argument for type. | |
1830 | Call fold_convert on all the returned values. | |
1831 | (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name | |
1832 | the type of the resulting expression. | |
1833 | ||
b0602cc8 SP |
1834 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1835 | ||
1836 | * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed | |
1837 | ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. | |
1838 | * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. | |
1839 | ||
b188bb7c SP |
1840 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1841 | ||
1842 | * graphite-dependences.c (map_into_dep_poly): Removed. | |
1843 | (dependence_polyhedron_1): Use combine_context_id_scat. | |
1844 | ||
aa52513e SP |
1845 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1846 | ||
1847 | * graphite-poly.h (struct poly_scattering): Add layout documentation. | |
1848 | (struct poly_bb): Same. | |
1849 | (combine_context_id_scat): New. | |
1850 | ||
392c0ce1 SP |
1851 | 2010-03-02 Sebastian Pop <sebastian.pop@amd.com> |
1852 | ||
1853 | PR middle-end/42326 | |
1854 | * sese.c (name_defined_in_loop_p): Return false for default | |
1855 | definitions. | |
1856 | ||
1857 | * gcc.dg/graphite/pr42326.c: New. | |
1858 | ||
bd7742f8 SP |
1859 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1860 | ||
1861 | * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify | |
1862 | and clean up the logic. | |
1863 | ||
733ff09d SP |
1864 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1865 | ||
1866 | * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove | |
1867 | early return. | |
1868 | ||
4caa8e21 SP |
1869 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1870 | ||
1871 | PR middle-end/43083 | |
1872 | * graphite-scop-detection.c (create_single_exit_edge): Move | |
1873 | the call to find_single_exit_edge to.... | |
1874 | (create_sese_edges): ...here. Don't handle multiple edges | |
1875 | exiting the function. | |
1876 | (build_graphite_scops): Don't handle multiple edges | |
1877 | exiting the function. | |
1878 | ||
1879 | * gcc.dg/graphite/pr43083.c: New. | |
1880 | ||
c3382979 SP |
1881 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1882 | ||
b8df8b8b | 1883 | PR middle-end/43097 |
c3382979 SP |
1884 | * sese.c (get_rename): Assert that old_name is an SSA_NAME. |
1885 | (rename_variables_in_stmt): Continue when the use is not an SSA_NAME. | |
1886 | ||
1887 | * gfortran.dg/graphite/pr43097.f: New. | |
1888 | ||
13cd10a2 SP |
1889 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1890 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1891 | ||
1892 | PR middle-end/43140 | |
1893 | * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null. | |
1894 | ||
1895 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> | |
143b72a9 SP |
1896 | |
1897 | PR middle-end/43026 | |
1898 | * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF. | |
1899 | ||
1900 | * g++.dg/graphite/pr43026.C: New. | |
1901 | ||
4e722673 SP |
1902 | 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de> |
1903 | ||
1904 | * Merge from mainline (154736:156693). | |
1905 | ||
c2814aab SP |
1906 | 2010-02-11 Sebastian Pop <sebastian.pop@amd.com> |
1907 | ||
1908 | PR middle-end/43012 | |
1909 | * gcc.dg/graphite/pr43012.c: New. | |
be1c3b28 | 1910 | |
c2814aab | 1911 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
be1c3b28 | 1912 | |
c2814aab | 1913 | * graphite.c (graphite_transform_loops): Re-enable dbg_cnt. |
be1c3b28 SP |
1914 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
1915 | ||
1916 | * g++.dg/graphite/pr42930.C: New. | |
1917 | ||
141ecc24 | 1918 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
c4c4983e SP |
1919 | |
1920 | PR middle-end/42930 | |
1921 | * graphite-scop-detection.c (graphite_can_represent_scev): Call | |
1922 | graphite_can_represent_init for MULT_EXPR. | |
1923 | ||
141ecc24 | 1924 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a4681954 SP |
1925 | |
1926 | PR middle-end/42914 | |
1927 | PR middle-end/42530 | |
1928 | * graphite-sese-to-poly.c (remove_phi): New. | |
1929 | (translate_scalar_reduction_to_array): Call remove_phi. | |
1930 | ||
1931 | * gcc.dg/graphite/pr42530.c: New. | |
1932 | * gcc.dg/graphite/pr42914.c: New. | |
1933 | ||
141ecc24 | 1934 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a1954f72 SP |
1935 | |
1936 | PR middle-end/42771 | |
1937 | * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters. | |
1938 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
1939 | * graphite-poly.c (new_scop): Clear POLY_SCOP_P. | |
1940 | * graphite-poly.h (struct poly_bb): Add missing comments. | |
1941 | (struct scop): Add poly_scop_p field. | |
1942 | (POLY_SCOP_P): New. | |
1943 | * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P. | |
1944 | * graphite.c (graphite_transform_loops): Build the polyhedral | |
1945 | representation for each scop before code generation. | |
1946 | * sese.c (rename_variables_in_operand): Removed. | |
1947 | (rename_variables_in_expr): Return the renamed expression. | |
1948 | (rename_sese_parameters): New. | |
1949 | * sese.h (rename_sese_parameters): Declared. | |
1950 | ||
1951 | * gcc.dg/graphite/pr42771.c: New. | |
1952 | ||
0be957dc SP |
1953 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1954 | ||
1955 | * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always | |
1956 | return 0 from main. | |
1957 | * gcc.dg/graphite/block-1.c: Same. | |
1958 | * gcc.dg/graphite/block-3.c: Same. | |
1959 | * gcc.dg/graphite/block-4.c: Same. | |
1960 | * gcc.dg/graphite/block-5.c: Same. | |
1961 | * gcc.dg/graphite/block-6.c: Same. | |
1962 | * gcc.dg/graphite/block-7.c: Same. | |
1963 | * gcc.dg/graphite/interchange-0.c: Same. | |
1964 | * gcc.dg/graphite/interchange-1.c: Same. | |
1965 | * gcc.dg/graphite/interchange-10.c: Same. | |
1966 | * gcc.dg/graphite/interchange-11.c: Same. | |
1967 | * gcc.dg/graphite/interchange-12.c: Same. | |
1968 | * gcc.dg/graphite/interchange-2.c: Same. | |
1969 | * gcc.dg/graphite/interchange-3.c: Same. | |
1970 | * gcc.dg/graphite/interchange-4.c: Same. | |
1971 | * gcc.dg/graphite/interchange-5.c: Same. | |
1972 | * gcc.dg/graphite/interchange-6.c: Same. | |
1973 | * gcc.dg/graphite/interchange-7.c: Same. | |
1974 | * gcc.dg/graphite/interchange-8.c: Same. | |
1975 | * gcc.dg/graphite/interchange-9.c: Same. | |
1976 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1977 | ||
4d48441c SP |
1978 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1979 | ||
1980 | * gfortran.dg/graphite/id-19.f: New. | |
1981 | * gfortran.dg/graphite/pr14741.f90: New. | |
1982 | * gfortran.dg/graphite/pr41924.f90: New. | |
1983 | * gfortran.dg/graphite/run-id-2.f90: New. | |
1984 | ||
8d2220b2 SP |
1985 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1986 | ||
1987 | PR middle-end/42988 | |
1988 | * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND | |
1989 | to unknown_dependence. | |
1990 | (graphite_legal_transform_dr): Handle the unknown_dependence. | |
1991 | (graphite_carried_dependence_level_k): Same. | |
1992 | ||
45489e99 SP |
1993 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1994 | ||
1995 | * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/. | |
1996 | ||
28f9f145 SP |
1997 | 2010-02-05 Sebastian Pop <sebastian.pop@amd.com> |
1998 | Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
1999 | ||
2000 | PR middle-end/42637 | |
2001 | * graphite-dependences.c (build_lexicographical_constraint): Return | |
2002 | a union of dependence polyhedra. | |
2003 | (dependence_polyhedron_1): Adapt for build_lexicographical_constraint. | |
2004 | ||
45489e99 SP |
2005 | * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed. |
2006 | * gcc.dg/graphite/block-4.c: Same. | |
2007 | * gcc.dg/graphite/block-7.c: Same. | |
2008 | * gcc.dg/graphite/interchange-12.c: Same. | |
2009 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
2010 | * gfortran.dg/graphite/interchange-1.f: XFAILed. | |
2011 | * gfortran.dg/graphite/interchange-3.f90: XFAILed. | |
2012 | * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637. | |
28f9f145 | 2013 | |
4d0bf08b SP |
2014 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
2015 | ||
45489e99 | 2016 | * gcc.dg/graphite/interchange-12.c: Return 0 to avoid |
4d0bf08b SP |
2017 | the execution check to FAIL. This testcase is miscompiled by Graphite |
2018 | and the check should be re-enabled. | |
45489e99 SP |
2019 | * gcc.dg/graphite/interchange-mvt.c: Same. |
2020 | * gcc.dg/graphite/block-0.c: Same. | |
2021 | * gcc.dg/graphite/block-4.c: Same. | |
2022 | * gcc.dg/graphite/block-7.c: Same. | |
4d0bf08b | 2023 | |
54cf8879 SP |
2024 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
2025 | ||
45489e99 SP |
2026 | * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. |
2027 | * gcc.dg/graphite/scop-0.c: Fix spaces. | |
2028 | * gfortran.dg/graphite/block-1.f90: Rewrite expected output. | |
2029 | * gfortran.dg/graphite/block-2.f: Same. | |
2030 | * gfortran.dg/graphite/block-3.f90: Same. | |
2031 | * gfortran.dg/graphite/block-4.f90: Same. | |
2032 | * gfortran.dg/graphite/interchange-1.f: Un-XFAILed. | |
2033 | * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
54cf8879 | 2034 | |
b5eb099f SP |
2035 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
2036 | ||
2037 | * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and | |
2038 | PDDR_ORIGINAL_SCATTERING_P. | |
2039 | (pddr_is_empty): Rewritten. | |
2040 | (print_dependence_polyhedron_layout): New. | |
2041 | (print_pddr): New. | |
2042 | (debug_pddr): New. | |
2043 | (build_alias_set_powerset): Moved up. | |
2044 | (poly_drs_may_alias_p): Moved up. | |
2045 | (lexicographically_gt_p): Removed. | |
2046 | (build_lexicographically_gt_constraint): Renamed | |
2047 | build_lexicographical_constraint, reimplemented. | |
2048 | (dependence_polyhedron_1): Simplified parameters. | |
2049 | (dependence_polyhedron): Same. Keep along empty PDDRs | |
2050 | to make efficient use of the cache. | |
2051 | (reduction_dr_p): Compute the PBBs don't pass them as parameters. | |
2052 | (graphite_legal_transform_dr): Rewritten. | |
2053 | (graphite_legal_transform_bb): Pass fewer arguments to | |
2054 | graphite_legal_transform_dr. | |
2055 | (graphite_carried_dependence_level_k): Simplified implementation. | |
2056 | (dot_original_deps_stmt_1): Call dependence_polyhedron. | |
2057 | (dot_transformed_deps_stmt_1): Same. | |
2058 | (dot_original_deps): Same. | |
2059 | (dot_transformed_deps): Same. | |
2060 | * graphite-dependences.h (struct poly_ddr): Added a new field | |
2061 | original_scattering_p. | |
2062 | (PDDR_ORIGINAL_SCATTERING_P): New. | |
2063 | (print_pddr): Declared. | |
2064 | (debug_pddr): Declared. | |
2065 | * graphite-ppl.c: Clarify comment. | |
2066 | * sese.h (print_gimple_bb): Removed unused declaration. | |
2067 | (debug_gbb): Same. | |
2068 | ||
64630e61 SP |
2069 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
2070 | ||
45489e99 SP |
2071 | * g++.dg/graphite/graphite.exp: Rewritten. |
2072 | * gcc.dg/graphite/graphite.exp: Rewritten. | |
2073 | * gfortran.dg/graphite/graphite.exp: Rewritten. | |
2074 | * gcc.dg/graphite/block-0.c: Added runtime test. | |
2075 | * gcc.dg/graphite/block-1.c: Same. | |
2076 | * gcc.dg/graphite/block-3.c: Same. | |
2077 | * gcc.dg/graphite/block-4.c: Same. | |
2078 | * gcc.dg/graphite/block-5.c: Same. | |
2079 | * gcc.dg/graphite/block-6.c: Same. | |
2080 | * gcc.dg/graphite/block-7.c: Same. | |
2081 | * gcc.dg/graphite/interchange-0.c: Same. | |
2082 | * gcc.dg/graphite/interchange-1.c: Same. | |
2083 | * gcc.dg/graphite/interchange-10.c: Same. | |
2084 | * gcc.dg/graphite/interchange-11.c: Same. | |
2085 | * gcc.dg/graphite/interchange-12.c: Same. | |
2086 | * gcc.dg/graphite/interchange-2.c: Same. | |
2087 | * gcc.dg/graphite/interchange-3.c: Same. | |
2088 | * gcc.dg/graphite/interchange-4.c: Same. | |
2089 | * gcc.dg/graphite/interchange-5.c: Same. | |
2090 | * gcc.dg/graphite/interchange-6.c: Same. | |
2091 | * gcc.dg/graphite/interchange-7.c: Same. | |
2092 | * gcc.dg/graphite/interchange-8.c: Same. | |
2093 | * gcc.dg/graphite/interchange-9.c: Same. | |
2094 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
2095 | * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run. | |
64630e61 | 2096 | |
4c8f3c48 RU |
2097 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
2098 | ||
2099 | * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in | |
2100 | background. | |
2101 | ||
2102 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
2103 | ||
2104 | * common.opt: Add -fgraphite-cloog-opts. | |
2105 | * graphite-clast-to-gimple.c (set_cloog_options): Same. | |
2106 | * opts.c (decode_options): Same. | |
2107 | ||
86e4d552 SP |
2108 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2109 | ||
45489e99 SP |
2110 | * gcc.dg/graphite/id-17.c: New. |
2111 | * gcc.dg/graphite/pr41888.c: New. | |
2112 | * gcc.dg/graphite/scop-22.c: New. | |
2113 | * gfortran.dg/graphite/pr40982.f90: New. | |
86e4d552 | 2114 | |
3070ac15 SP |
2115 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2116 | ||
2117 | * graphite-dependences.c: Clarify comments. | |
2118 | (build_pddr): Add an extra parameter direction. | |
2119 | (graphite_legal_transform_dr): Use build_pddr. | |
2120 | (dot_original_deps_stmt_1): Update use of build_pddr. | |
2121 | (dot_transformed_deps_stmt_1): Same. | |
2122 | (dot_original_deps): Same. | |
2123 | (dot_transformed_deps): Same. | |
2124 | ||
45489e99 SP |
2125 | * gcc.dg/graphite/interchange-12.c: New. |
2126 | * gcc.dg/graphite/block-7.c: New. | |
3070ac15 | 2127 | |
a7ed6c90 SP |
2128 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2129 | ||
2130 | * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr. | |
2131 | (pddr_transformed_scattering): Removed. | |
2132 | (graphite_legal_transform_dr): Use build_pddr. | |
2133 | (dot_original_deps_stmt_1): Same. | |
2134 | (dot_transformed_deps_stmt_1): Same. | |
2135 | (dot_original_deps): Same. | |
2136 | (dot_transformed_deps): Same. | |
2137 | ||
e65a7579 SP |
2138 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2139 | ||
2140 | * graphite-dependences.c (lexicographically_gt_p): Add comments. | |
2141 | (build_lexicographically_gt_constraint): Same. | |
2142 | (dependence_polyhedron_1): Same. | |
2143 | (dependence_polyhedron): Same. | |
2144 | ||
7cbd4c5e SP |
2145 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2146 | ||
2147 | * graphite-dependences.c (build_pairwise_scheduling_equality): Removed. | |
2148 | (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling. | |
2149 | (lexicographically_gt_p): Change type of direction to int. | |
2150 | (build_lexicographically_gt_constraint): Same. | |
2151 | (dependence_polyhedron_1): Same. | |
2152 | (dependence_polyhedron): Same. | |
2153 | (pddr_original_scattering): Use integers for direction. | |
2154 | (pddr_transformed_scattering): Same. | |
2155 | (graphite_legal_transform_dr): Same. | |
2156 | (graphite_carried_dependence_level_k): Same. | |
2157 | ||
429ba740 SP |
2158 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
2159 | ||
2160 | * graphite-dependences.c (build_pairwise_constraint): Renamed | |
2161 | ppl_build_relation. Moved... | |
2162 | (dr_equality_constraints): Use ppl_build_relation. | |
2163 | (build_pairwise_scheduling_equality): Same. | |
2164 | (build_pairwise_scheduling_inequality): Same. | |
2165 | * graphite-ppl.c (ppl_build_relation): ...here. | |
2166 | * graphite-ppl.h (ppl_build_relation): Declared. | |
2167 | ||
3c7c0158 SP |
2168 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
2169 | ||
2170 | PR middle-end/42681 | |
2171 | * graphite-clast-to-gimple.c (gloog_error): New static variable. | |
2172 | (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P. | |
2173 | Set gloog_error when such an expression failed to be built. | |
2174 | (translate_clast): Early return when gloog_error is set. | |
2175 | (gloog): Clear gloog_error. When gloog_error is set, call | |
2176 | set_ifsese_condition to enable the original code. Return the status | |
2177 | of the code generation based on gloog_error. | |
2178 | * sese.c (set_ifsese_condition): New. | |
2179 | * sese.h (set_ifsese_condition): Declared. | |
2180 | ||
45489e99 | 2181 | * g++.dg/graphite/pr42681.C: New. |
3c7c0158 | 2182 | |
a7bf45de SP |
2183 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
2184 | ||
2185 | PR middle-end/42732 | |
2186 | * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and | |
2187 | rename_nb_iterations. | |
2188 | * sese.c (rename_variables_in_operand): New. | |
2189 | (rename_variables_in_expr): New. | |
2190 | (rename_nb_iterations): New. | |
2191 | (sese_adjust_liveout_phis): Update the rename_map. | |
2192 | * sese.h (rename_nb_iterations): Declared. | |
2193 | * tree-scalar-evolution.c (scev_reset_htab): New. | |
2194 | (scev_reset): Call scev_reset_htab. | |
2195 | * tree-scalar-evolution.h (scev_reset_htab): Declared. | |
2196 | ||
45489e99 | 2197 | * gfortran.dg/graphite/pr42732.f: New. |
a7bf45de | 2198 | |
e1496917 SP |
2199 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
2200 | ||
2201 | PR middle-end/42393 | |
2202 | * graphite-clast-to-gimple.c: Fix formatting. | |
2203 | * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p. | |
2204 | (expr_defined_in_loop_p): New. | |
2205 | (add_loop_exit_phis): Also handle full expressions: remove from | |
2206 | the rename_map the expressions defined in the loop that we're closing. | |
2207 | ||
45489e99 SP |
2208 | * gfortran.dg/graphite/pr42393-1.f90: New. |
2209 | * gfortran.dg/graphite/pr42393.f90: Add new flags | |
e1496917 SP |
2210 | -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also |
2211 | make this testcase useful in the Graphite branch. | |
2212 | ||
c8ae0613 SP |
2213 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
2214 | ||
2215 | * graphite-scop-detection.c (exclude_component_ref): Removed. | |
2216 | (is_simple_operand): Removed. | |
2217 | (stmt_simple_for_scop_p): Remove use of is_simple_operand. | |
2218 | ||
4e98c66c SP |
2219 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
2220 | ||
2221 | PR middle-end/42221 | |
2222 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
2223 | the array indexing of ADDR_EXPRs. | |
2224 | ||
45489e99 | 2225 | * gcc.dg/graphite/pr42221.c: New. |
4e98c66c | 2226 | |
fd4a56ff SP |
2227 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
2228 | ||
2229 | PR middle-end/42521 | |
2230 | * graphite.c (graphite_finalize): Call scev_reset. | |
2231 | (graphite_transform_loops): Do not call scev_reset between the code | |
2232 | generation of scops. | |
2233 | ||
45489e99 | 2234 | * gcc.dg/graphite/pr42521.c: New. |
fd4a56ff | 2235 | |
eaffa762 SP |
2236 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
2237 | ||
2238 | * graphite-interchange.c (memory_stride_in_loop): Renamed | |
2239 | pdr_stride_in_loop. | |
2240 | (memory_strides_in_loop): Renamed memory_strides_in_loop_1. | |
2241 | (memory_strides_in_loop): Memoize the memory strides per loop. | |
2242 | (lst_interchange_profitable_p): Do not initialize to zero the memory | |
2243 | strides. | |
2244 | * graphite-poly.h (struct lst): Add a field memory_strides. | |
2245 | (LST_LOOP_MEMORY_STRIDES): New. | |
2246 | (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1. | |
2247 | (free_lst): Clear LST_LOOP_MEMORY_STRIDES. | |
2248 | ||
bf69e754 SP |
2249 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
2250 | ||
2251 | * graphite-interchange.c (memory_strides_in_loop_depth): Renamed | |
2252 | memory_strides_in_loop. Gather memory strides on a whole loop. | |
2253 | (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p. | |
2254 | (lst_interchange_profitable_p): Removed. | |
2255 | (lst_try_interchange_loops): Call lst_interchange_profitable_p. | |
2256 | ||
9fa29a09 SP |
2257 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
2258 | ||
2259 | Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
2260 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
2261 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
2262 | Remove context_loop and level. | |
2263 | ||
11d6ea5e SP |
2264 | 2010-01-07 Richard Guenther <rguenther@suse.de> |
2265 | ||
2266 | PR tree-optimization/42641 | |
2267 | * sese.c (rename_map_elt_info): Use the SSA name version, do | |
2268 | not hash pointers. | |
2269 | ||
2270 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> | |
2271 | ||
2272 | * graphite-blocking.c (scop_do_block): Print "SCoP will be loop | |
2273 | blocked" only when both the strip mine and the interchange have | |
2274 | been applied. | |
2275 | ||
45489e99 SP |
2276 | * gcc.dg/graphite/block-2.c: Removed. |
2277 | * gcc.dg/graphite/block-3.c: Add scan pattern. | |
2278 | * gcc.dg/graphite/block-4.c: Same. | |
2279 | * gcc.dg/graphite/block-5.c: Same. | |
2280 | * gcc.dg/graphite/block-6.c: Same. | |
11d6ea5e | 2281 | |
556afcdc SP |
2282 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> |
2283 | ||
2284 | * graphite-clast-to-gimple.c (save_clast_name_index): Free slot | |
2285 | before allocating a new one. | |
2286 | (copy_renames): Check that slot is not NULL. | |
2287 | (mark_bb_with_pbb): Same. | |
2288 | (compute_cloog_iv_types_1): Same. | |
2289 | * graphite-interchange.c (lst_perfect_nestify): Free the before, | |
2290 | nest, and after LSTs. | |
2291 | (lst_try_interchange_loops): Same. | |
2292 | ||
e68c3c6c SP |
2293 | 2010-01-05 Sebastian Pop <sebastian.pop@amd.com> |
2294 | ||
2295 | PR middle-end/42178 | |
2296 | * graphite-interchange.c (lst_try_interchange_loops): Do not return | |
2297 | the before, nest, and after LSTs. | |
2298 | (lst_try_interchange): Removed. | |
2299 | (lst_interchange_select_inner): Do not iterate over the LSTs if they | |
2300 | were modified. | |
2301 | (lst_interchange_select_outer): Apply interchange on the outer loop | |
2302 | until there are no more changes in the inner loops. | |
2303 | ||
a84a556d SP |
2304 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
2305 | ||
2306 | Revert patch fixing PR middle-end/42221. | |
2307 | ||
2308 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> | |
2309 | ||
2310 | PR middle-end/42180 | |
2311 | * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle | |
2312 | GIMPLE_CALL. | |
2313 | ||
45489e99 | 2314 | * gfortran.dg/graphite/pr42180.f90: Add compile flags. |
a84a556d | 2315 | |
b147df0b SP |
2316 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
2317 | ||
2318 | PR middle-end/42180 | |
2319 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks | |
2320 | that contain only one statement. | |
2321 | ||
45489e99 | 2322 | * gfortran.dg/graphite/pr42180.f90: New. |
a84a556d | 2323 | |
ce20f9d6 SP |
2324 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
2325 | ||
2326 | PR middle-end/42393 | |
45489e99 | 2327 | * gfortran.dg/graphite/pr42393.f90: New. |
ce20f9d6 | 2328 | |
d2a271ac SP |
2329 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
2330 | ||
2331 | PR middle-end/42186 | |
45489e99 | 2332 | * gfortran.dg/graphite/pr42186.f90: New. |
d2a271ac | 2333 | |
403ebc7e SP |
2334 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
2335 | ||
2336 | PR middle-end/42205 | |
2337 | * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt): | |
2338 | Insert the reduction copy in the same block as the phi node. | |
2339 | (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs. | |
2340 | ||
45489e99 SP |
2341 | * gcc.dg/graphite/pr42205-1.c: New. |
2342 | * gcc.dg/graphite/pr42205-2.c: New. | |
403ebc7e SP |
2343 | |
2344 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> | |
2345 | ||
2346 | PR middle-end/42221 | |
2347 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
2348 | the array indexing of ADDR_EXPRs. | |
2349 | ||
45489e99 | 2350 | * gcc.dg/graphite/pr42221.c: New. |
403ebc7e | 2351 | |
070ba483 SP |
2352 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
2353 | ||
2354 | PR middle-end/42178 | |
2355 | PR middle-end/42334 | |
2356 | * graphite-interchange.c (lst_try_interchange): Do not modify OUTER | |
2357 | index. Call lst_interchange_select_inner only once. | |
2358 | (lst_interchange_select_inner): Update use of lst_try_interchange. | |
2359 | (lst_interchange_select_outer): Update. | |
2360 | ||
2361 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
2362 | ||
2363 | PR middle-end/42178 | |
2364 | PR middle-end/42334 | |
2365 | * graphite-interchange.c (lst_try_interchange): Do not increment the | |
2366 | the OUTER index when there is no AFTER kernel. Do not increment the | |
2367 | OUTER index for after processing the AFTER kernel. | |
2368 | (lst_interchange_select_inner): Call lst_try_interchange only on loops. | |
2369 | (lst_interchange_select_outer): Do not pass in a pointer to the OUTER | |
2370 | index. Do not pass to lst_interchange_select_inner the OUTER index. | |
2371 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
2372 | ||
45489e99 | 2373 | * gfortran.dg/graphite/graphite.exp |
070ba483 | 2374 | (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all. |
45489e99 | 2375 | * gfortran.dg/graphite/interchange-1.f: Add comment. Clean |
070ba483 | 2376 | the graphite dump file. |
45489e99 SP |
2377 | * gfortran.dg/graphite/interchange-2.f: Same. |
2378 | * gfortran.dg/graphite/pr42334-1.f: New. | |
070ba483 SP |
2379 | |
2380 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
2381 | ||
2382 | PR middle-end/42178 | |
2383 | PR middle-end/42334 | |
2384 | * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs | |
2385 | that are empty. | |
2386 | (lst_do_interchange_1): Renamed lst_interchange_select_inner. | |
2387 | (lst_try_interchange): Reimplemented. | |
2388 | (lst_interchange_select_inner): Same. | |
2389 | (lst_do_interchange): Renamed lst_interchange_select_outer. | |
2390 | Reimplemented. | |
2391 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
2392 | ||
45489e99 SP |
2393 | * g++.dg/graphite/pr42130.C: Add -fgraphite-identity. |
2394 | * gcc.dg/graphite/block-0.c: Un-XFAILed. | |
2395 | * gcc.dg/graphite/pr42211.c: New. | |
2396 | * gfortran.dg/graphite/pr42334.f90: New. | |
070ba483 | 2397 | |
4b216ab0 SP |
2398 | 2009-12-14 Sebastian Pop <sebastian.pop@amd.com> |
2399 | ||
2400 | PR middle-end/42181 | |
2401 | * graphite-scop-detection.c (graphite_can_represent_scev): Handle more | |
2402 | carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR. | |
2403 | ||
45489e99 | 2404 | * gfortran.dg/graphite/pr42181.f90: New. |
4b216ab0 | 2405 | |
c880097d SP |
2406 | 2009-12-12 Sebastian Pop <sebpop@gmail.com> |
2407 | ||
2408 | PR middle-end/42284 | |
2409 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call | |
2410 | insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs. | |
2411 | (detect_commutative_reduction_arg): Simplified. | |
2412 | (detect_commutative_reduction): Early return when the argument of | |
2413 | the close phi is not of an SSA_NAME. | |
2414 | ||
45489e99 | 2415 | * gcc.dg/graphite/pr42284.c: New. |
c880097d SP |
2416 | |
2417 | 2009-12-11 Alexander Monakov <amonakov@ispras.ru> | |
2418 | ||
2419 | * dbgcnt.def (graphite_scop): New counter. | |
2420 | * graphite.c: Include dbgcnt.h | |
2421 | (graphite_transform_loops): Use new counter to limit transformations. | |
2422 | ||
d505015a SP |
2423 | 2009-12-08 Sebastian Pop <sebpop@gmail.com> |
2424 | ||
2425 | PR middle-end/42285 | |
2426 | * graphite-scop-detection.c (graphite_can_represent_init): Also | |
2427 | handle more complex MULT_EXPRs containing parameters by recursion | |
2428 | on the structure. | |
2429 | ||
45489e99 | 2430 | * gfortran.dg/graphite/pr42285.f90: New. |
d505015a SP |
2431 | |
2432 | 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
2433 | ||
45489e99 | 2434 | * g++.dg/graphite/pr42130.C: Fix type. |
d505015a | 2435 | |
ed807d06 AM |
2436 | 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org> |
2437 | ||
45489e99 SP |
2438 | * g++.dg/graphite/pr42130.C: Correct testcase. |
2439 | ||
2440 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
2441 | ||
2442 | * Merge from mainline (154493:154734). | |
2443 | ||
2444 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
2445 | ||
2446 | * Merge from mainline (151362:154491). | |
ed807d06 | 2447 | |
7c246f5e TG |
2448 | 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de> |
2449 | ||
2450 | * graphite-clast-to-gimple.c (try_mark_loop_parallel, | |
2451 | graphite_create_new_loop_guard, translate_clast_for): Fix comments. | |
2452 | ||
0dd91484 TG |
2453 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2454 | ||
2455 | PR middle-end/42130 | |
2456 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard, | |
2457 | translate_clast_for_loop): New. | |
2458 | (translate_clast_for): Add a condition around the loop, to do not | |
2459 | execute loops with zero iterations. | |
45489e99 SP |
2460 | * g++.dg/graphite/pr42130.C: New. |
2461 | * gcc.dg/graphite/pr35356-2.c: Adapt. | |
0dd91484 | 2462 | |
fd2d813d TG |
2463 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2464 | ||
2465 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
2466 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
2467 | Remove context_loop and level. | |
2468 | ||
9016166f TG |
2469 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2470 | ||
2471 | * graphite-clast-to-gimple.c (translate_clast_user, | |
2472 | translate_clast_for, translate_clast_guard): Simplify and move common | |
2473 | elements to translate_clast(). | |
2474 | (translate_clast): Simplify and get common elements. | |
2475 | ||
e1f9c1cd TG |
2476 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2477 | ||
2478 | * graphite-clast-to-gimple.c (translate_clast_user, | |
2479 | translate_clast_for, translate_clast_guard): Split out of | |
2480 | translate_clast. | |
2481 | ||
7a521ff2 TG |
2482 | 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de> |
2483 | ||
2484 | * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index, | |
2485 | clast_name_to_index, save_clast_name_index, debug_clast_name_index, | |
2486 | debug_clast_name_indexes_1, debug_clast_name_indexes, | |
2487 | clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h. | |
2488 | (clast_name_to_gcc, clast_to_gcc_expression, | |
2489 | clast_to_gcc_expression_red, gcc_type_for_clast_expr, | |
2490 | gcc_type_for_clast_eq, graphite_translate_clast_equation, | |
2491 | graphite_create_guard_cond_expr, graphite_create_new_loop, | |
2492 | translate_clast): Add params_index. | |
2493 | (initialize_cloog_names): Create parameter strings from scratch, do | |
2494 | not reference other strings. | |
2495 | (create_params_index): New. | |
2496 | (gloog): Initialize params_index. | |
2497 | * graphite-scop-detection (free_scops_1): Removed. | |
2498 | (limit_scops): Use normal free_scops. | |
2499 | * graphite-sese-to-poly.c (save_var_names): Removed. | |
2500 | (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES | |
2501 | and SESE_PARAMS_INDEX. | |
2502 | * sese.c (new_sese, free_sese): Dito. | |
2503 | * sese.h (struct sese): Remove params_index, params_names. | |
2504 | (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed. | |
2505 | ||
ca11b093 SP |
2506 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
2507 | ||
2508 | Revert the following patch from 2009-09-14: | |
2509 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
2510 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
2511 | * graphite-clast-to-gimple.c: Same. | |
2512 | * graphite-dependences.c: Same. | |
2513 | * graphite-interchange.c: Same. | |
2514 | * graphite-poly.c: Same. | |
2515 | * graphite-scop-detection.c: Same. | |
2516 | * graphite-sese-to-poly.c: Same. | |
2517 | * graphite.c: Same. | |
2518 | * lambda-code.c: Same. | |
2519 | * matrix-reorg.c: Same. | |
2520 | * tree-data-ref.c: Same. | |
2521 | * tree-if-conv.c: Same. | |
2522 | * tree-loop-distribu: Same.: Same. | |
2523 | * tree-loop-linear.c: Same. | |
2524 | * tree-parloops.c: Same. | |
2525 | * tree-predcom.c: Same. | |
2526 | * tree-vect-patterns.c: Same. | |
2527 | ||
8a9e9475 SP |
2528 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
2529 | ||
2530 | Revert patch from 2009-09-14. | |
2531 | * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite | |
2532 | passes at -O1 and below. | |
2533 | ||
4bf4e169 SP |
2534 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2535 | ||
2536 | PR middle-end/40281 | |
45489e99 | 2537 | * gcc.dg/graphite/pr40281.c: New. |
4bf4e169 SP |
2538 | |
2539 | * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride | |
2540 | evolutions should not variate in inner loops. | |
2541 | ||
12aec731 SP |
2542 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2543 | ||
2544 | PR middle-end/42050 | |
45489e99 | 2545 | * gfortran.dg/graphite/pr42050.f90: New. |
12aec731 | 2546 | |
aec12420 SP |
2547 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2548 | ||
2549 | * graphite-interchange.c (memory_strides_in_loop_depth): New. | |
2550 | (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth. | |
2551 | ||
25e20d33 SP |
2552 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2553 | ||
2554 | * graphite-blocking.c (scop_do_block): New. | |
2555 | * graphite-poly.c (apply_poly_transforms): Call scop_do_block. | |
2556 | * graphite-poly.h (scop_do_block): Declared. | |
2557 | ||
e3bde9f4 SP |
2558 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2559 | ||
2560 | * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter | |
2561 | depth is the loop nesting depth in the LST. Call psct_dynamic_dim | |
2562 | to transform depth into the time_depth before calling | |
2563 | pbb_number_of_iterations_at_time. | |
2564 | (lst_do_strip_mine): Use a scalar variable instead of recomputing | |
2565 | lst_depth. | |
2566 | ||
27e432be SP |
2567 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2568 | ||
2569 | Reverted the patch for "scattering permutations" from 2009-10-28. | |
2570 | ||
2571 | * graphite-poly.c (print_permutation): New. | |
2572 | (debug_permutation): New. | |
2573 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2574 | (free_poly_bb): Free PBB_PERMUTATION. | |
2575 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2576 | (struct pbb_permutation_elt): New. | |
2577 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2578 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2579 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2580 | (new_pbb_permutation_elt): New. | |
2581 | (pbb_permutation_elt_free): New. | |
2582 | (struct poly_bb): Add field permutation. | |
2583 | (PBB_PERMUTATION): New. | |
2584 | (print_permutation): Declared. | |
2585 | (debug_permutation): Declared. | |
2586 | ||
2bc529bf KT |
2587 | 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> |
2588 | ||
2589 | * graphite-interchange.c (build_partial_difference): New. | |
2590 | (memory_stride_in_loop): Refactored the computation of | |
2591 | equality constraints into build_partial_difference function. | |
2592 | Added support for debugging stride computations. | |
2593 | ||
8c54631d SP |
2594 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2595 | ||
2596 | * graphite-clast-to-gimple.c (gloog): Free if_region, | |
2597 | if_region->true_region, and if_region->region. | |
2598 | * sese.c (if_region_set_false_region): Free if_region->false_region. | |
2599 | (create_if_region_on_edge): Do not use GGC_NEW. | |
2600 | (move_sese_in_condition): Remove useless initialization. | |
2601 | ||
7b7f2ca7 SP |
2602 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2603 | ||
2604 | * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters | |
2605 | for the loops created by the loop distribution. Do not modify the | |
2606 | input LSTs. | |
2607 | (lst_try_interchange_loops): Same. Use a temporary LST for the | |
2608 | transformed schedule. Call lst_update_scattering before data | |
2609 | dependence analysis. | |
2610 | (lst_try_interchange): Pass an extra parameter INDEX. | |
2611 | (lst_do_interchange_1): New. | |
2612 | (lst_do_interchange): Call lst_do_interchange_1. | |
2613 | (scop_do_interchange): Call lst_update_scattering. | |
2614 | * graphite-poly.c (apply_poly_transforms): Do not call | |
2615 | lst_update_scattering. | |
2616 | * graphite-poly.h (lst_pred): New. | |
2617 | (lst_succ): New. | |
2618 | (lst_find_first_pbb): Return NULL when not found. | |
2619 | (lst_empty_p): New. | |
2620 | (lst_insert_in_sequence): Allow LST1 to be NULL. | |
2621 | (lst_replace): New. | |
2622 | (lst_substitute_3): New. | |
2623 | * gcc.dg/graphite/interchange-1.c: XFail. | |
2624 | * gcc.dg/graphite/interchange-8.c: XFail. | |
2625 | * gcc.dg/graphite/interchange-11.c: XFail. | |
2626 | ||
6119e7d5 SP |
2627 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2628 | ||
2629 | * graphite-interchange.c (lst_perfectly_nested_p): New. | |
2630 | (lst_perfect_nestify): New. | |
2631 | (lst_try_interchange_loops): Call store_lst_schedule, | |
2632 | lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule. | |
2633 | (scop_do_interchange): Avoid redundant legality test. | |
2634 | Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE. | |
2635 | * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering. | |
2636 | * graphite-poly.h (psct_static_dim): New. | |
2637 | (lst_dewey_number_at_depth): New. | |
2638 | (lst_find_pbb): Restructured. | |
2639 | (lst_find_first_pbb): Restructured. | |
2640 | (lst_find_last_pbb): New. | |
2641 | (lst_contains_p): New. | |
2642 | (lst_contains_pbb): New. | |
2643 | (lst_create_nest): New. | |
2644 | (lst_remove_from_sequence): New. | |
2645 | (pbb_update_scattering): New. | |
2646 | (lst_update_scattering_under): New. | |
2647 | (lst_update_scattering_seq): New. | |
2648 | (lst_update_scattering): New. | |
2649 | (lst_insert_in_sequence): New. | |
2650 | (lst_distribute_lst): New. | |
2651 | (lst_remove_all_before_including_pbb): New. | |
2652 | (lst_remove_all_before_excluding_pbb): New. | |
2653 | ||
431f3f22 SP |
2654 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2655 | ||
2656 | * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice | |
2657 | get_loop_exit_edges. | |
2658 | ||
4c768046 SP |
2659 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2660 | ||
2661 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed. | |
2662 | ||
5fa8514e SP |
2663 | 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2664 | ||
2665 | * graphite-poly.c (print_permutation): New. | |
2666 | (debug_permutation): New. | |
2667 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2668 | (free_poly_bb): Free PBB_PERMUTATION. | |
2669 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2670 | (struct pbb_permutation_elt): New. | |
2671 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2672 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2673 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2674 | (new_pbb_permutation_elt): New. | |
2675 | (pbb_permutation_elt_free): New. | |
2676 | (struct poly_bb): Add field permutation. | |
2677 | (PBB_PERMUTATION): New. | |
2678 | (print_permutation): Declared. | |
2679 | (debug_permutation): Declared. | |
2680 | ||
6c6f84d7 SP |
2681 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2682 | ||
2683 | * graphite-clast-to-gimple.c (gloog): Do not call | |
2684 | sese_reset_aux_in_loops. | |
2685 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an | |
2686 | extra argument for domains. Do not use loop->aux. | |
2687 | (build_scop_iteration_domain): Initialize and free domains, pass it | |
2688 | to build_loop_iteration_domains and extract the information from | |
2689 | domains. Do not use loop->aux. | |
2690 | * sese.c (sese_reset_aux_in_loops): Removed. | |
2691 | * sese.h (sese_reset_aux_in_loops): Removed. | |
2692 | ||
585b3e19 SP |
2693 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2694 | ||
2695 | * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. | |
2696 | (dependency_in_loop_p): Same. | |
2697 | (translate_clast): Do not use loop->aux. Initialize | |
2698 | loop->can_be_parallel. | |
2699 | (mark_loops_parallel): Removed. | |
2700 | * graphite-clast-to-gimple.h (mark_loops_parallel): Removed. | |
2701 | * graphite.c (free_aux_in_new_loops): Removed. | |
2702 | (graphite_finalize): Do not call free_aux_in_new_loops. | |
2703 | (graphite_transform_loops): Do not call mark_loops_parallel. | |
2704 | ||
2705 | 2009-10-26 Li Feng <nemokingdom@gmail.com> | |
a7ed27ac LF |
2706 | |
2707 | * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed. | |
2708 | (translate_clast): Pass an extra parameter LEVEL. | |
2709 | Call get_scattering_level. | |
2710 | * graphite-clast-to-gimple.h (get_scattering_level): New. | |
2711 | ||
8e6ef139 SP |
2712 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2713 | ||
2714 | * cfgloop.c (alloc_loop): Initialize loop->single_iv. | |
2715 | * cfgloop.h (struct loop): New field single_iv. | |
2716 | ||
2717 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use | |
2718 | loop->aux anymore: use loop->single_iv. | |
2719 | (graphite_loop_normal_form): Moved... | |
2720 | (build_graphite_loop_normal_form): Removed. | |
2721 | (gloog): Do not call build_graphite_loop_normal_form. | |
2722 | (free_aux_in_new_loops): Moved... | |
2723 | (mark_loops_parallel): Restructure. | |
2724 | * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare. | |
2725 | * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here. | |
2726 | (scop_canonicalize_loops): New. | |
2727 | (build_poly_scop): Call scop_canonicalize_loops. | |
2728 | * graphite.c (free_aux_in_new_loops): ...here. | |
2729 | ||
e6dd91b2 SP |
2730 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2731 | ||
2732 | * g++.dg/graphite/graphite.exp: Add the same rules as in | |
2733 | gcc.dg/graphite/graphite.exp. | |
2734 | ||
47fb473f SP |
2735 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2736 | ||
2737 | * g++.dg/graphite/id-1.C: New. | |
2738 | ||
63858ac6 SP |
2739 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2740 | ||
2741 | * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra | |
2742 | argument base_name. | |
2743 | (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array. | |
2744 | (rewrite_phi_out_of_ssa): Same. | |
2745 | (rewrite_cross_bb_scalar_deps): Same. | |
2746 | (translate_scalar_reduction_to_array): Same. | |
2747 | ||
decfe536 SP |
2748 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2749 | ||
2750 | * graphite-sese-to-poly.c (build_scop_drs): Disable call to | |
2751 | dump_alias_graphs. | |
2752 | ||
0d5ef2a9 SP |
2753 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2754 | ||
2755 | * graphite-sese-to-poly.c (dump_alias_graphs): New. | |
2756 | (build_scop_drs): Call dump_alias_graphs. | |
2757 | ||
f70de156 SP |
2758 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2759 | ||
2760 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE, | |
2761 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2762 | (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE, | |
2763 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2764 | * graphite-poly.h (free_lst): New. | |
2765 | (store_lst_schedule): Free SCOP_SAVED_SCHEDULE. | |
2766 | (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE. | |
2767 | ||
74715a9b SP |
2768 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2769 | ||
2770 | * graphite-poly.h (struct scop): Add a field saved_schedule. | |
2771 | (SCOP_SAVED_SCHEDULE): New. | |
2772 | (store_lst_schedule): New. | |
2773 | (restore_lst_schedule): New. | |
2774 | (store_scattering): Call store_lst_schedule. | |
2775 | (restore_scattering): Call restore_lst_schedule. | |
2776 | ||
fb00d28e SP |
2777 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2778 | ||
2779 | * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting. | |
2780 | (pdr_add_alias_set): Same. | |
2781 | (build_poly_dr): Same. | |
2782 | (build_alias_set_optimal_p): Same. | |
2783 | (build_base_obj_set_for_drs): Same. Do not store the result of | |
2784 | graphds_dfs. | |
2785 | ||
917f481a SP |
2786 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2787 | ||
2788 | * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize | |
2789 | all_components_are_cliques to 1. | |
2790 | ||
2b178a5f LF |
2791 | 2009-10-20 Li Feng <nemokingdom@gmail.com> |
2792 | ||
2793 | * graphite-sese-to-poly.c (free_data_refs_aux): Update to free | |
2794 | the new structure. | |
2795 | (pdr_add_alias_set): Update retrieving alias_set_num. | |
2796 | (build_poly_dr): Update retrieving dr_base_object_set. | |
2797 | (partition_drs_to_sets): Remove. | |
2798 | (build_alias_set_optimal_p): New. | |
2799 | (build_alias_set_for_drs): Rename. | |
2800 | (build_scop_drs): Update. | |
2801 | * graphite-sese-to-poly.h (struct base_alias_pair): New. | |
2802 | (ALIAS_SET_INDEX): Remove. | |
2803 | (BASE_OBJECT_SET_INDEX): Remove. | |
2804 | ||
e8af4842 SP |
2805 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2806 | ||
2807 | * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL. | |
2808 | ||
3899a0b2 SP |
2809 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2810 | ||
2811 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer | |
2812 | loop upper bounds for 1-element arrays at end of structures. | |
2813 | * tree-flow.h (array_at_struct_end_p): Declared. | |
2814 | * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore. | |
2815 | ||
e34e5835 SP |
2816 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2817 | ||
2818 | * g++.dg/graphite/pr41305.C: New. | |
2819 | ||
07b0d0e2 AM |
2820 | 2009-10-20 Alexander Monakov <amonakov@ispras.ru> |
2821 | ||
2822 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize | |
2823 | construction of parameter constraints from loop iteration analysis. | |
2824 | * gcc.dg/graphite/run-id-2.c: New test. | |
2825 | ||
67255edf SP |
2826 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2827 | ||
2828 | * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma | |
2829 | and new_cstr. | |
2830 | ||
14ba996b SP |
2831 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2832 | ||
2833 | * graphite-dependences.c (dependence_polyhedron_1): Remove | |
2834 | unused gdim dimensions from the DDR polyhedron. | |
2835 | ||
4454141a SP |
2836 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2837 | ||
2838 | * graphite-dependences.c (pddr_transformed_scattering): New. | |
2839 | (dot_original_deps_stmt_1): New. | |
2840 | (dot_transformed_deps_stmt_1): New. | |
2841 | (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and | |
2842 | dot_transformed_deps_stmt_1. | |
2843 | (dot_original_deps): New. | |
2844 | (dot_transformed_deps): New. | |
2845 | (dot_deps_1): Call dot_original_deps and dot_transformed_deps. | |
2846 | ||
dd61070d SP |
2847 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2848 | ||
2849 | * graphite-dependences.c (reduction_dr_1): Remove wrong | |
2850 | assert: reduction BBs can have multiple reduction writes | |
4454141a | 2851 | to memory. interchange-3.f90 is an example. |
dd61070d | 2852 | |
65421bcc SP |
2853 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2854 | ||
2855 | * gfortran.dg/graphite/interchange-3.f90: New. | |
2856 | ||
3e9f43ee SP |
2857 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2858 | ||
2859 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
2860 | ||
16bf8ab1 SP |
2861 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2862 | ||
2863 | * graphite-dependences.c (dependence_polyhedron_1): Add the | |
2864 | context to the dependence polyhedron. | |
2865 | ||
d422adfa SP |
2866 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2867 | ||
2868 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize | |
2869 | PBB_PDR_DUPLICATES_REMOVED. | |
2870 | (new_poly_bb): Same. | |
2871 | ||
62e475c5 SP |
2872 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2873 | ||
2874 | * graphite-sese-to-poly.c (find_scop_parameters): Initialize | |
2875 | SCOP_CONTEXT. | |
2876 | (build_loop_iteration_domains): Extract bounds on parameters | |
2877 | based on the data size. | |
2878 | (build_scop_context): Do not initialize SCOP_CONTEXT; | |
2879 | add new constraints. | |
2880 | ||
3ecbce7e SP |
2881 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2882 | ||
2883 | * graphite-ppl.c (ppl_min_for_le_polyhedron): New. | |
2884 | * graphite-ppl.h (graphite-ppl.h): Declared. | |
2885 | ||
04863400 SP |
2886 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2887 | ||
2888 | * graphite-ppl.c (ppl_print_linear_expr): New. | |
2889 | (debug_ppl_linear_expr): New. | |
2890 | * graphite-ppl.h (ppl_print_linear_expr): Declared. | |
2891 | (debug_ppl_linear_expr): Declared. | |
2892 | ||
009150e1 SP |
2893 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2894 | ||
2895 | * graphite-interchange.c: Fix comments. | |
2896 | * gcc.dg/graphite/block-1.c: Fix comments. | |
2897 | ||
9b196c93 SP |
2898 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2899 | ||
2900 | * gcc.dg/graphite/interchange-7.c: Un-XFAILed. | |
2901 | * gcc.dg/graphite/interchange-9.c: Un-XFAILed. | |
2902 | ||
caa675f8 SP |
2903 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2904 | ||
2905 | Reapply the patch from Alexander Monakov that disappeared during | |
2906 | the last merges from trunk. | |
2907 | ||
2908 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> | |
2909 | ||
2910 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2911 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2912 | ||
92d92abb SP |
2913 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2914 | ||
2915 | * graphite-interchange.c (memory_stride_in_loop): The depth | |
2916 | argument corresponds to a dynamic time dimension, so use | |
2917 | psct_dynamic_dim to refer to the transformed scattering dimension. | |
2918 | ||
23159c56 SP |
2919 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2920 | ||
2921 | * graphite-interchange.c (memory_stride_in_loop): Fix comments. | |
2922 | ||
5c6c42c9 SP |
2923 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2924 | ||
2925 | * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the | |
2926 | root of the LST. | |
2927 | * graphite-interchange.c (lst_do_interchange): Avoid interchanging | |
2928 | the root of the LST. | |
2929 | * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost | |
2930 | fake loop. | |
2931 | (print_lst): Print the root of LST in a different format. | |
2932 | * graphite-poly.h (lst_depth): Adjust to include the root of the LST. | |
2933 | ||
f58be90e SP |
2934 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2935 | ||
2936 | * graphite-poly.c (print_scop): Fix pretty printing of a SCoP. | |
2937 | ||
4e4ee197 SP |
2938 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2939 | ||
2940 | * doc/passes.texi: Document the Graphite infrastructure. | |
2941 | ||
6c4499b6 SP |
2942 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2943 | ||
2944 | * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge. | |
2945 | (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts, | |
2946 | and check the SSA representation. | |
2947 | ||
2948 | * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193. | |
2949 | ||
8e49fe91 SP |
2950 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2951 | ||
2952 | * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR. | |
2953 | ||
bb2b2dfc SP |
2954 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2955 | ||
2956 | * gcc.dg/graphite/interchange-11.c: New. | |
2957 | ||
e7ed4a64 SP |
2958 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2959 | ||
2960 | * gcc.dg/graphite/interchange-8.c: Enable loop interchange. | |
2961 | ||
d7f25aa6 SP |
2962 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2963 | ||
2964 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2965 | Add -fno-loop-strip-mine and -fno-loop-interchange. | |
2966 | (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and | |
2967 | -fno-loop-strip-mine. | |
2968 | * gfortran.dg/graphite/graphite.exp: Same. | |
2969 | ||
6231cf49 SP |
2970 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2971 | ||
2972 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2973 | Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK. | |
2974 | (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed | |
2975 | DEFAULT_FLAGS_GRAPHITE_IDENTITY. | |
2976 | (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed | |
2977 | DEFAULT_FLAGS_GRAPHITE_INTERCHANGE. | |
2978 | (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed | |
2979 | DEFAULT_FLAGS_GRAPHITE_SCOP. | |
2980 | (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID. | |
2981 | (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE. | |
2982 | ||
2b7c09a8 SP |
2983 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2984 | ||
2985 | * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments. | |
2986 | ||
b0c7a278 KT |
2987 | 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2988 | Sebastian Pop <sebastian.pop@amd.com> | |
2989 | ||
2990 | * graphite-interchange.c (build_linearized_memory_access): Pass an | |
2991 | offset as parameter. | |
2992 | (memory_stride_in_loop): Include transform scattering in the | |
2993 | access functions to be able to querry the strides in the | |
2994 | transformed loops. | |
2995 | (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim, | |
2996 | not the psct_iterator_dim. | |
2997 | ||
13ae6f91 SP |
2998 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2999 | ||
3000 | * graphite-blocking.c (pbb_do_strip_mine): Removed. | |
3001 | (lst_do_strip_mine_loop): New. | |
3002 | (lst_do_strip_mine): New. | |
3003 | (scop_do_strip_mine): Call lst_do_strip_mine. | |
3004 | * graphite-poly.h (lst_add_loop_under_loop): New. | |
3005 | (lst_find_first_pbb): New. | |
3006 | ||
c0fe753b SP |
3007 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
3008 | ||
3009 | * graphite-poly.c (loop_to_lst): Fix LST creation. | |
3010 | ||
8d75ec87 TG |
3011 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> |
3012 | ||
45489e99 | 3013 | * gcc.dg/graphite/id-15.c: (8 * 8) replaced with |
8d75ec87 TG |
3014 | sizeof(unsigned long) to make it run on 32bit systems. |
3015 | ||
3016 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
3017 | ||
45489e99 | 3018 | * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not |
8d75ec87 TG |
3019 | SEGFAULT on 32bit. |
3020 | ||
2e5a7cbf RU |
3021 | 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
3022 | ||
8d75ec87 TG |
3023 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix |
3024 | Comment. | |
2e5a7cbf RU |
3025 | (write_alias_graph_to_ascii_dot): New. |
3026 | (write_alias_graph_to_ascii_ecc): Ditto. | |
8d75ec87 TG |
3027 | (partition_drs_to_sets): Add testing of optimality of current method |
3028 | which assigns alias numbers according to DFS Comopnent number. used | |
3029 | as heuristic for the upcoming ECC algorithm. | |
2e5a7cbf RU |
3030 | (build_scop_drs): Write to file also with the ecc and dot format. |
3031 | ||
1e82de2a SP |
3032 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
3033 | ||
3034 | * gfortran.dg/graphite/interchange-1.f: XFail. | |
3035 | ||
9bf13085 SP |
3036 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
3037 | ||
3038 | * graphite.c (graphite_initialize): Do not handle functions with | |
3039 | more than 100 basic blocks. | |
3040 | ||
e797c5f2 SP |
3041 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
3042 | ||
3043 | * graphite-blocking.c (pbb_do_strip_mine): Use | |
3044 | PARAM_LOOP_BLOCK_TILE_SIZE. | |
3045 | ||
bfa00f48 SP |
3046 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
3047 | ||
3048 | * graphite-poly.c (dot_lst_1): New. | |
3049 | (dot_lst): New. | |
3050 | * graphite-poly.h (dot_lst): Declared. | |
3051 | ||
3c7bdeb8 SP |
3052 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
3053 | ||
3054 | * graphite-dependences.c (dot_deps_stmt_1): New. | |
3055 | (dot_deps_stmt): New. | |
3056 | * graphite-dependences.h (dot_deps_stmt): Declared. | |
3057 | ||
c7dc2fab SP |
3058 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
3059 | ||
3060 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do | |
3061 | not replace cross BB scalar dependences ending on PHI nodes. | |
3062 | (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes. | |
3063 | ||
24c79709 SP |
3064 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
3065 | ||
3066 | * graphite-poly.c (apply_poly_transforms): Implement the high | |
3067 | level driver for flag_loop_block. | |
45489e99 | 3068 | * opts.c (decode_options): Enable flag_loop_block at -O2. |
24c79709 SP |
3069 | * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for |
3070 | flag_loop_block. | |
3071 | ||
3072 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add | |
3073 | -floop-block. | |
3074 | * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
3075 | Add -floop-block. | |
3076 | ||
a0517b76 SP |
3077 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
3078 | ||
3079 | * graphite-poly.h (lst_find_pbb): New. | |
3080 | (find_lst_loop): New. | |
3081 | ||
9d077835 SP |
3082 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
3083 | ||
3084 | * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH. | |
3085 | * graphite-poly.h (struct scop): Remove dep_graph field. | |
3086 | (SCOP_DEP_GRAPH): Removed. | |
3087 | ||
75b63a91 SP |
3088 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
3089 | ||
3090 | * graphite-poly.h (copy_lst): Do full copy of LST. | |
3091 | ||
7cc4ff8d SP |
3092 | 2009-10-07 Sebastian Pop <sebastian.pop@amd.com> |
3093 | ||
3094 | * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi | |
3095 | when the loop stride is zero. | |
3096 | ||
3097 | * gcc.dg/graphite/id-16.c: New. | |
3098 | ||
60d2a8c3 SP |
3099 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
3100 | ||
3101 | * graphite-dependences.c (reduction_dr_1): New. | |
3102 | (reduction_dr_p): New. | |
3103 | (graphite_legal_transform_dr): Call reduction_dr_p. | |
3104 | (reduction_ddr): Renamed reduction_ddr_p. | |
3105 | * graphite-poly.h (same_pdr_p): New. | |
3106 | (number_of_write_pdrs): New. | |
3107 | * graphite-sese-to-poly.c (nb_data_writes_in_bb): New. | |
3108 | (split_reduction_stmt): Do not split reduction statements | |
3109 | when there are no writes to memory. | |
3110 | (translate_scalar_reduction_to_array_for_stmt): Insert the | |
3111 | memory reduction statement just after the scalar reduction statement. | |
3112 | ||
3113 | * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c. | |
3114 | Un-XFAIL-ed. | |
3115 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed. | |
3116 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed. | |
3117 | ||
95baeff8 SP |
3118 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
3119 | ||
3120 | * graphite-interchange.c (lst_apply_interchange): New. | |
3121 | (lst_interchange_profitable_p): New. | |
3122 | (lst_try_interchange_loops): New. | |
3123 | (lst_try_interchange): New. | |
3124 | (lst_do_interchange): New. | |
3125 | (pbb_do_interchange): Removed. | |
3126 | (scop_do_interchange): Call lst_do_interchange. | |
3127 | ||
a36d12e2 SP |
3128 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
3129 | ||
3130 | * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and | |
3131 | SCOP_TRANSFORMED_SCHEDULE. | |
3132 | (loop_to_lst): New. | |
3133 | (scop_to_lst): New. | |
3134 | (print_lst): New. | |
3135 | (debug_lst): New. | |
3136 | * graphite-poly.h (lst_p): New. | |
3137 | (struct lst): New. | |
3138 | (LST_LOOP_P): New. | |
3139 | (LST_LOOP_FATHER): New. | |
3140 | (LST_PBB): New. | |
3141 | (LST_SEQ): New. | |
3142 | (scop_to_lst): Declared. | |
3143 | (print_lst): Declared. | |
3144 | (debug_lst): Declared. | |
3145 | (new_lst_loop): New. | |
3146 | (new_lst_stmt): New. | |
3147 | (copy_lst): New. | |
3148 | (lst_depth): New. | |
3149 | (lst_dewey_number): New. | |
3150 | (struct scop): Add original_schedule and transformed_schedule fields. | |
3151 | (SCOP_ORIGINAL_SCHEDULE): New. | |
3152 | (SCOP_TRANSFORMED_SCHEDULE): New. | |
3153 | * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst. | |
3154 | ||
a0dd1440 SP |
3155 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
3156 | ||
3157 | * graphite-dependences.c (reduction_ddr): New. | |
3158 | (graphite_legal_transform_bb): Call reduction_ddr. | |
3159 | * graphite-poly.c (new_poly_bb): Pass a new bool parameter. | |
3160 | Initialize PBB_IS_REDUCTION. | |
3161 | * graphite-poly.h (struct poly_bb): New bool field is_reduction. | |
3162 | (PBB_IS_REDUCTION): New. | |
3163 | (new_poly_bb): Update declaration. | |
3164 | * graphite-scop-detection.h (build_scop_bbs): Removed. | |
3165 | (nb_reductions_in_loop): Removed. | |
3166 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap | |
3167 | parameter for reductions. | |
3168 | (try_generate_gimple_bb): Update call to new_poly_bb. | |
3169 | (build_scop_bbs_1): Same. | |
3170 | (build_scop_bbs): Same. | |
3171 | (gsi_for_phi_node): New. | |
3172 | (scalar_close_phi_node_p): Remove gcc_assert. | |
3173 | (split_reduction_stmt): New. | |
3174 | (is_reduction_operation_p): New. | |
3175 | (phi_contains_arg): New. | |
3176 | (follow_ssa_with_commutative_ops): New. | |
3177 | (detect_commutative_reduction_arg): New. | |
3178 | (detect_commutative_reduction_assign): New. | |
3179 | (follow_inital_value_to_phi): New. | |
3180 | (edge_initial_value_for_loop_phi): New. | |
3181 | (initial_value_for_loop_phi): New. | |
3182 | (detect_commutative_reduction): New. | |
3183 | (translate_scalar_reduction_to_array_for_stmt): New. | |
3184 | (insert_copyout): New. | |
3185 | (insert_copyin): New. | |
3186 | (translate_scalar_reduction_to_array): New. | |
3187 | (rewrite_commutative_reductions_out_of_ssa_close_phi): New. | |
3188 | (rewrite_commutative_reductions_out_of_ssa_loop): New. | |
3189 | (rewrite_commutative_reductions_out_of_ssa): New. | |
3190 | (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa. | |
3191 | * sese.h (split_region_for_bb): New. | |
3192 | ||
3193 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math. | |
3194 | * gcc.dg/graphite/interchange-1.c: Fix format. | |
3195 | * gcc.dg/graphite/interchange-10.c: New. | |
3196 | ||
db7e9485 SP |
3197 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
3198 | ||
3199 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove | |
3200 | buggy assert. | |
3201 | ||
5dcc64d9 SP |
3202 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
3203 | ||
3204 | * graphite-sese-to-poly.c (scev_analyzable_p): New. | |
3205 | (rewrite_cross_bb_scalar_dependence): New. | |
3206 | (rewrite_cross_bb_scalar_deps): New. | |
3207 | (rewrite_reductions_out_of_ssa): Use bb_in_sese_p. | |
3208 | Call rewrite_cross_bb_scalar_deps. | |
3209 | ||
947121b8 SP |
3210 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
3211 | ||
3212 | * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed. | |
3213 | (insert_out_of_ssa_copy): Directly use gsi_after_labels and | |
3214 | gsi_for_stmt. | |
3215 | ||
d48e288d SP |
3216 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
3217 | ||
3218 | * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. | |
3219 | * graphite-interchange.c (pbb_do_interchange): Same. | |
3220 | * graphite-poly.c (print_scattering_function): Same. | |
3221 | (debug_pdrs): Same. | |
3222 | * graphite-poly.h (pbb_loop): New. | |
3223 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. | |
3224 | ||
d17286f6 SP |
3225 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
3226 | ||
3227 | * graphite-scop-detection.c (limit_scops): Do not build poly_bbs. | |
3228 | ||
ee03cd20 SP |
3229 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
3230 | ||
3231 | * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, | |
3232 | so don't pass a pointer to it. | |
3233 | (build_alias_set_for_drs): Same. | |
3234 | (build_base_obj_set_for_drs): Same. | |
3235 | (build_scop_drs): Same. | |
3236 | ||
888beba1 LF |
3237 | 2009-09-26 Li Feng <nemokingdom@gmail.com> |
3238 | ||
3239 | * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file | |
3240 | the alias graph of data references. | |
3241 | ||
cd43e5d7 LF |
3242 | 2009-09-25 Li Feng <nemokingdom@gmail.com> |
3243 | ||
3244 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. | |
3245 | (build_scop_drs): When debugging, write the alias graph to file, | |
3246 | otherwise, should be disabled. | |
3247 | ||
45489e99 SP |
3248 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
3249 | ||
3250 | * Merge from mainline (151310:151361). | |
3251 | ||
3252 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
3253 | ||
3254 | * Merge from mainline (151171:151310). | |
3255 | ||
3256 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
3257 | ||
3258 | * Merge from mainline (151171:151806). | |
3259 | ||
3260 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
3261 | ||
3262 | * Revert the last commit. | |
3263 | ||
3264 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
3265 | ||
3266 | * Merge from mainline (151171:151819). | |
3267 | ||
aeda6535 SP |
3268 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
3269 | ||
3270 | * graphite-scop-detection.c (stmt_simple_memref_p): Removed. | |
3271 | (is_simple_operand): Remove call to stmt_simple_memref_p. | |
3272 | (stmt_simple_for_scop_p): Update call to is_simple_operand. | |
3273 | ||
8b6b8570 DE |
3274 | 2009-09-17 David Edelsohn <edelsohn@gnu.org> |
3275 | ||
45489e99 SP |
3276 | * gcc.dg/graphite/interchange-mvt.c: New File. |
3277 | * gcc.dg/graphite/scop-dsyrk.c: New File. | |
3278 | * gcc.dg/graphite/scop-dsyr2k.c: New File. | |
3279 | * gcc.dg/graphite/scop-mvt.c: New File. | |
3280 | * gcc.dg/graphite/scop-sor.c: New File. | |
8b6b8570 | 3281 | |
1825f9a2 LF |
3282 | 2009-09-17 Li Feng <nemokingdom@gmail.com> |
3283 | ||
1825f9a2 LF |
3284 | * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. |
3285 | (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. | |
3286 | (graphite_carried_dependence_level_k): Ditto. | |
3287 | * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. | |
3288 | * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. | |
3289 | (new_poly_dr): Adjust declaration. | |
3290 | * graphite-sese-to-poly.c (free_data_refs_aux): New. | |
3291 | (free_gimple_bb): Added free_data_refs_aux. | |
3292 | (build_poly_dr): Add dr_base_object_set. | |
3293 | (partition_drs_to_sets): New. | |
3294 | (dr_same_base_object_p): New. | |
3295 | (build_alias_set_for_drs): New. | |
3296 | (build_base_object_set_for_drs): New. | |
3297 | (build_scop_drs): Add build_base_obj_set_for_drs. | |
3298 | * graphite-sese-to-poly.h: Added #define for alias set number index and | |
3299 | base object set index. | |
3300 | * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. | |
3301 | * libgomp/testsuite/libgomp.graphite/pr4118.c: New. | |
3302 | ||
ac90803f SP |
3303 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> |
3304 | ||
3305 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
3306 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
3307 | ||
54fc808a SP |
3308 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
3309 | ||
3310 | * graphite-sese-to-poly.c (struct irp_data): Removed. | |
3311 | (idx_record_params): Removed. | |
3312 | (find_params_in_bb): Scan for parameters the access functions; don't | |
3313 | parse the tree representation. | |
3314 | ||
e88e021f SP |
3315 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
3316 | ||
3317 | * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite | |
3318 | passes at -O1 and below. | |
3319 | ||
3690f8d7 SP |
3320 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
3321 | ||
3322 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
3323 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
3324 | * graphite-clast-to-gimple.c: Same. | |
3325 | * graphite-dependences.c: Same. | |
3326 | * graphite-interchange.c: Same. | |
3327 | * graphite-poly.c: Same. | |
3328 | * graphite-scop-detection.c: Same. | |
3329 | * graphite-sese-to-poly.c: Same. | |
3330 | * graphite.c: Same. | |
3331 | * lambda-code.c: Same. | |
3332 | * matrix-reorg.c: Same. | |
3333 | * tree-data-ref.c: Same. | |
3334 | * tree-if-conv.c: Same. | |
3335 | * tree-loop-distribu: Same.: Same. | |
3336 | * tree-loop-linear.c: Same. | |
3337 | * tree-parloops.c: Same. | |
3338 | * tree-predcom.c: Same. | |
3339 | * tree-vect-patterns.c: Same. | |
3340 | ||
2495a183 SP |
3341 | 2009-09-02 Sebastian Pop <sebastian.pop@amd.com> |
3342 | ||
3343 | Partially revert the previous patch, except the following. | |
3344 | * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass | |
3345 | as parameters the operands of the not expression. | |
3346 | ||
20179b0d SP |
3347 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3348 | ||
3349 | * tree-scalar-evolution.c (instantiate_scev_assign): New. | |
3350 | Do not call analyze_scalar_evolution on assignments. | |
3351 | (instantiate_scev_phi): Call analyze_scalar_evolution. | |
3352 | (instantiate_scev_name): Call instantiate_scev_assign and | |
3353 | instantiate_scev_phi. | |
3354 | (instantiate_scev_not): Adapted to pass as parameters the operands | |
3355 | of the not expression. | |
3356 | ||
ffa34f4b SP |
3357 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3358 | ||
3359 | * tree-scalar-evolution.c (instantiate_scev_binary): Adapted | |
3360 | to pass as parameters the operands of the binary expression. | |
3361 | ||
4b9d48a1 SP |
3362 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3363 | ||
3364 | * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed | |
3365 | instantiate_scev_not. Handle NEGATE_EXPR. | |
3366 | (instantiate_scev_r): Handle NEGATE_EXPR. | |
3367 | ||
9e5dc77f SP |
3368 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3369 | ||
3370 | * tree-scalar-evolution.c (instantiate_scev_1): Renamed | |
3371 | instantiate_scev_r. | |
3372 | (instantiate_scev_r): Move code in instantiate_scev_2 | |
3373 | and instantiate_scev_1. | |
3374 | ||
d814176c SP |
3375 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3376 | ||
3377 | * tree-scalar-evolution.c (instantiate_scev_3): New. | |
3378 | (instantiate_scev_1): Move code in instantiate_scev_3. | |
3379 | ||
ec6636eb SP |
3380 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3381 | ||
3382 | * tree-scalar-evolution.c (instantiate_scev_poly): New. | |
3383 | (instantiate_scev_1): Move code in instantiate_scev_poly. | |
3384 | ||
7ec0665d SP |
3385 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3386 | ||
3387 | * tree-scalar-evolution.c (instantiate_scev_bitnot): New. | |
3388 | (instantiate_scev_1): Move code in instantiate_scev_bitnot. | |
3389 | ||
9c382ce9 SP |
3390 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3391 | ||
3392 | * tree-scalar-evolution.c (instantiate_scev_convert): New. | |
3393 | (instantiate_scev_1): Move code in instantiate_scev_convert. | |
3394 | ||
15fda317 SP |
3395 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3396 | ||
3397 | * tree-scalar-evolution.c (instantiate_scev_binary): New. | |
3398 | (instantiate_scev_1): Move code in instantiate_scev_binary. | |
3399 | ||
320f5a78 SP |
3400 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3401 | ||
3402 | * tree-scalar-evolution.c (instantiate_scev_name): New. | |
3403 | (instantiate_scev_1): Move code in instantiate_scev_name. | |
3404 | ||
3405 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> | |
3406 | ||
3407 | * Merge from mainline (150992:151171). | |
3408 | ||
45489e99 SP |
3409 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3410 | ||
3411 | * opts.c (decode_options): Enable flag_loop_interchange at -O2. | |
3412 | ||
211694b6 SP |
3413 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3414 | ||
3415 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
3416 | pbb_remove_duplicate_pdrs. | |
3417 | * graphite-poly.c (can_collapse_pdr): Removed. | |
3418 | (pdr_find_duplicate): Removed. | |
3419 | (can_collapse_pdrs): New. | |
3420 | (pbb_remove_duplicate_pdrs): New. | |
3421 | (new_poly_dr): Do not look for duplicates. | |
3422 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
3423 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
3424 | (pbb_remove_duplicate_pdrs): Declared. | |
3425 | ||
7bd2a8a7 SP |
3426 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3427 | ||
3428 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
3429 | the strides by multiplying by PDR_NB_REFS. | |
3430 | * graphite-poly.c (can_collapse_pdr): New. | |
3431 | (pdr_find_duplicate): New. | |
3432 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
3433 | Initialize PDR_NB_REFS. | |
3434 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
3435 | (PDR_NB_REFS): New. | |
3436 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
3437 | ||
3438 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3439 | ||
3440 | Revert one of the previous commits: | |
3441 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
3442 | the computation of symmetric data dependence relations. | |
3443 | (dependency_between_pbbs_p): Same. | |
3444 | ||
93b2db87 SP |
3445 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3446 | ||
3447 | PR middle-end/40965 | |
3448 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
3449 | any transform. | |
3450 | ||
d8eeb078 SP |
3451 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3452 | ||
3453 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
3454 | for read-read dependence relations. | |
3455 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
3456 | (pdr_read_p): New. | |
3457 | (pdr_write_p): New. | |
3458 | (pdr_may_write_p): New. | |
3459 | ||
e6dec0fb SP |
3460 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3461 | ||
3462 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
3463 | (struct poly_dr): Same. | |
3464 | (new_poly_dr): Same. | |
3465 | * graphite-poly.c (new_poly_dr): Same. | |
3466 | ||
baf4b881 KT |
3467 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3468 | Sebastian Pop <sebastian.pop@amd.com> | |
3469 | ||
3470 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
3471 | pbb_strip_mine_time_depth. Changed the implementation so that | |
3472 | transformation is expressed as a transformation on | |
3473 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
3474 | scheduling format is preserved. | |
3475 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
3476 | iteration number of a given time (scattering) dimension, | |
3477 | and not on a original loop depth dimension. | |
3478 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
3479 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
3480 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
3481 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
3482 | (pbb_nb_dynamic_scattering_transform): New. | |
3483 | (psct_dynamic_dim): New. | |
3484 | ||
059a5f9f KT |
3485 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3486 | ||
3487 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3488 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3489 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
3490 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
3491 | (memory_stride_in_loop): Same. | |
3492 | ||
afae0207 SP |
3493 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3494 | ||
3495 | * graphite-dependences.c (pddr_original_scattering): New. | |
3496 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
3497 | (dot_deps_1): New. | |
3498 | (dot_deps): New. | |
3499 | * graphite-dependences.h (dot_deps): Declared. | |
3500 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
3501 | (print_pdr): Print PDR_ID. | |
3502 | * graphite-poly.h (struct poly_dr): Add field id. | |
3503 | (PDR_ID): New. | |
3504 | (pbb_index): New. | |
3505 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
3506 | ||
f8e0bb8b SP |
3507 | 2009-08-22 Sebastian Pop <sebastian.pop@amd.com> |
3508 | ||
3509 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
3510 | not delete the original dependence relation. | |
3511 | ||
3512 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3513 | ||
3514 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
3515 | the computation of symmetric data dependence relations. | |
3516 | (dependency_between_pbbs_p): Same. | |
3517 | ||
e37f165f SP |
3518 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> |
3519 | ||
3520 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
3521 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
3522 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
3523 | (free_poly_ddr): New. | |
3524 | (pddr_is_empty): New. | |
3525 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
3526 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
3527 | Remove fprintfs. | |
3528 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
3529 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
3530 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
3531 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
3532 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
3533 | (PDRP_SINK): Renamed PDDR_SINK. | |
3534 | (PDRP_DDP): Renamed PDDR_DDP. | |
3535 | (PDDR_KIND): New. | |
3536 | (free_poly_ddr): Declared. | |
3537 | * graphite-poly.c (new_scop): Use the new hash function names. | |
3538 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
3539 | into original_pddrs. | |
3540 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
3541 | ||
3542 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3543 | ||
3544 | * Merge from mainline (150764:150992). | |
3545 | ||
45e76e9f SP |
3546 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
3547 | ||
3548 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
3549 | bounds with LT_EXPR to make niter analysis more precise on code | |
3550 | generated by Graphite. | |
3551 | ||
66b466c3 SP |
3552 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
3553 | ||
3554 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
3555 | (graphite_legal_transform_bb): Same. | |
3556 | (poly_drs_may_alias_p): Same. | |
3557 | ||
f263917c SP |
3558 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
3559 | ||
3560 | PR middle-end/40981 | |
3561 | * graphite-ppl.c (ppl_max_for_le): Correct the use of | |
3562 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
3563 | ||
3564 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3565 | ||
3566 | * graphite-poly.c (print_pbb): Print PBB index. | |
3567 | ||
3568 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3569 | ||
3570 | * Merge from mainline (r150672:150764). | |
3571 | ||
3572 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3573 | ||
3574 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
3575 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
3576 | * graphite-ppl.c (ppl_max_for_le): ... here. | |
3577 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
3578 | ||
3579 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> | |
3580 | ||
3581 | * Merge from mainline (r150372:150672). | |
3582 | ||
30de1632 SP |
3583 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3584 | ||
3585 | PR middle-end/40980 | |
3586 | * sese.c (convert_for_phi_arg): New. | |
3587 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
3588 | ||
45489e99 | 3589 | * gfortran.dg/graphite/id-17.f: New. |
30de1632 | 3590 | |
8c31ebfa SP |
3591 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3592 | ||
3593 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
3594 | unknown subscript upper bounds. | |
3595 | ||
45489e99 | 3596 | * gcc.dg/graphite/interchange-6.c: Un-XFAIL. |
8c31ebfa | 3597 | |
fb9fb290 SP |
3598 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3599 | Pranav Garg <pranav.garg2107@gmail.com> | |
3600 | ||
3601 | * graphite-interchange.c (gather_access_strides): Removed. | |
3602 | (ppl_max_for_le): New. | |
3603 | (build_linearized_memory_access): New. | |
3604 | (memory_stride_in_loop): New. | |
3605 | (pbb_interchange_profitable_p): Reimplemented. | |
3606 | * graphite-ppl.h (ppl_new_id_map): New. | |
3607 | (ppl_interchange): New. | |
3608 | ||
45489e99 | 3609 | * gcc.dg/graphite/interchange-6.c: XFAILed. |
fb9fb290 | 3610 | |
312aea7f SP |
3611 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3612 | ||
3613 | * graphite-interchange.c (compute_subscript): Removed. | |
3614 | (compute_array_size_cstr): Removed. | |
3615 | (compute_array_size_poly): Removed. | |
3616 | (compute_array_size): Removed. | |
3617 | (gather_access_strides_poly): Removed. | |
3618 | (gather_access_strides): Empty. | |
3619 | ||
25d7cc15 SP |
3620 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3621 | ||
3622 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
3623 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
3624 | (graphite_legal_transform_dr): Same. | |
3625 | (graphite_carried_dependence_level_k): Same. | |
3626 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
3627 | Initialize PDR_NB_SUBSCRIPTS. | |
3628 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
3629 | PDR_NB_SUBSCRIPTS. | |
3630 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
3631 | (PDR_NB_SUBSCRIPTS): New. | |
3632 | (pdr_nb_subscripts): Removed. | |
3633 | (pdr_dim): Simplified. | |
3634 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
3635 | with PDR_NB_SUBSCRIPTS. | |
3636 | ||
66096911 SP |
3637 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3638 | ||
3639 | * graphite-interchange.c (compute_array_size): Remove use of | |
3640 | PDR_DATA_CONTAINER. | |
3641 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
3642 | Do not initialize PDR_DATA_CONTAINER. | |
3643 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
3644 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
3645 | (PDR_DATA_CONTAINER): Removed. | |
3646 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
3647 | PDR_DATA_CONTAINER. | |
3648 | (build_poly_dr): Same. | |
3649 | ||
273c5dd3 SP |
3650 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3651 | ||
45489e99 | 3652 | * gcc.dg/graphite/interchange-9.c: New. |
273c5dd3 | 3653 | |
7491e5f0 KT |
3654 | 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3655 | Sebastian Pop <sebastian.pop@amd.com> | |
3656 | ||
3657 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
3658 | copy of the dependence polyhedron. Free the temporary objects. | |
3659 | (graphite_carried_dependence_level_k): Free unused objects before | |
3660 | returning. | |
3661 | ||
45489e99 SP |
3662 | * gcc.dg/graphite/interchange-1.c: XFAILed. |
3663 | * gcc.dg/graphite/interchange-2.c: XFAILed. | |
3664 | * gcc.dg/graphite/interchange-3.c: XFAILed. | |
3665 | * gcc.dg/graphite/interchange-4.c: XFAILed. | |
3666 | * gcc.dg/graphite/interchange-7.c: XFAILed. | |
7491e5f0 | 3667 | |
f4648ed1 SP |
3668 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3669 | ||
3670 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
3671 | Early return without analyzing the data dependences if no | |
3672 | transform has been done. Call restore_scattering if the transform | |
3673 | is not legal. | |
3674 | (graphite-interchange.c): Same. | |
3675 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
3676 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
3677 | (apply_poly_transforms): Do not gcc_assert that | |
3678 | the transform is legal. | |
3679 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3680 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
3681 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
3682 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3683 | * graphite-poly.h (struct poly_scattering): New. | |
3684 | (struct poly_bb): Add original, transformed, and saved fields. | |
3685 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
3686 | and nb_scattering_transform fields. | |
3687 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
3688 | (poly_scattering_new): New. | |
3689 | (poly_scattering_free): New. | |
3690 | (poly_scattering_copy): New. | |
3691 | (store_scattering_pbb): New. | |
3692 | (store_scattering): New. | |
3693 | (restore_scattering_pbb): New. | |
3694 | (restore_scattering): New. | |
3695 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3696 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
273c5dd3 | 3697 | |
e31a5bd4 SP |
3698 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3699 | ||
3700 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
3701 | (print_scop): Same. | |
3702 | ||
8e88f9fd SP |
3703 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3704 | ||
3705 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
3706 | * graphite.c: Include predict.h. | |
3707 | (graphite_finalize): Call tree_estimate_probability. | |
3708 | * predict.c (predict_loops): Do not call scev_initialize and | |
3709 | scev_finalize. | |
3710 | (tree_estimate_probability_bb): New. | |
3711 | (tree_estimate_probability): Do not initialize loops: move that | |
3712 | code to the driver. Call tree_estimate_probability_bb. | |
3713 | (tree_estimate_probability_driver): New. | |
3714 | (pass_profile): Use tree_estimate_probability_driver. | |
3715 | * predict.h (tree_estimate_probability): Declared. | |
3716 | ||
87d4d0ee SP |
3717 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3718 | ||
3719 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
3720 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
3721 | TV_GRAPHITE_DATA_DEPS. | |
3722 | (dependency_between_pbbs_p): Same. | |
3723 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
3724 | ||
3725 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3726 | ||
3727 | * Merge from mainline (r149952:150372). | |
3728 | ||
2abae5f1 SP |
3729 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
3730 | ||
3731 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
3732 | * graphite-blocking.c: Same. | |
3733 | * graphite-clast-to-gimple.c: Same. | |
3734 | * graphite-dependences.c: Same. | |
3735 | * graphite-poly.c: Same. | |
3736 | * graphite-poly.h: Same. | |
3737 | * graphite-ppl.c: Same. | |
3738 | * graphite-scop-detection.c: Same. | |
3739 | * graphite-sese-to-poly.c: Same. | |
3740 | * graphite.c: Same. | |
3741 | ||
3742 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3743 | ||
3744 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
3745 | (remove_simple_copy_phi): New. | |
3746 | (remove_invariant_phi): New. | |
3747 | (simple_copy_phi_p): New. | |
3748 | (reduction_phi_p): New. | |
3749 | (gsi_for_ssa_name_def): New. | |
3750 | (insert_out_of_ssa_copy): New. | |
3751 | (insert_out_of_ssa_copy_on_edge): New. | |
3752 | (create_zero_dim_array): New. | |
3753 | (scalar_close_phi_node_p): New. | |
3754 | (rewrite_close_phi_out_of_ssa): New. | |
3755 | (rewrite_phi_out_of_ssa): New. | |
3756 | (rewrite_reductions_out_of_ssa): New. | |
3757 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
3758 | ||
45489e99 SP |
3759 | * gcc.dg/graphite/id-11.c: New. |
3760 | * gcc.dg/graphite/id-15.c: New. | |
3761 | * gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
3762 | * gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
3763 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
3764 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
3765 | * gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
3766 | * gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
3767 | * gfortran.dg/graphite/id-13.f: New. | |
3768 | * gfortran.dg/graphite/id-5.f: New. | |
2abae5f1 SP |
3769 | |
3770 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3771 | ||
3772 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
3773 | check that nb_reductions_in_loop is zero. | |
3774 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
3775 | reduction phi nodes. | |
3776 | (nb_reductions_in_loop): Removed. | |
3777 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
3778 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
3779 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
3780 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
3781 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
3782 | ||
3783 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3784 | ||
3785 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
3786 | statements that have an empty iteration domain. | |
45489e99 | 3787 | * gfortran.dg/graphite/id-16.f: New. |
2abae5f1 SP |
3788 | |
3789 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3790 | ||
3791 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
3792 | chrec_dont_know when the result is not above instantiate_below. | |
3793 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
3794 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
3795 | the tree has a known scalar evolution. | |
45489e99 SP |
3796 | * gfortran.dg/graphite/id-14.f: New. |
3797 | * gfortran.dg/graphite/id-15.f: New. | |
2abae5f1 SP |
3798 | |
3799 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3800 | ||
3801 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
3802 | insert_gsi. | |
3803 | (rename_variables): Keep inserting renames after the ones already | |
3804 | inserted. | |
3805 | ||
3806 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3807 | ||
3808 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
3809 | (graphite_sort_dominated_info): New. | |
3810 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
3811 | (build_scop_scattering): Fix comment. | |
3812 | ||
3813 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3814 | ||
3815 | * graphite.c (graphite_finalize): Call print_loops instead of | |
3816 | dump_function_to_file. | |
45489e99 SP |
3817 | * gcc.dg/graphite/graphite.exp: Fix formatting. |
3818 | * gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
2abae5f1 | 3819 | loops generated in the graphite output file. |
45489e99 SP |
3820 | * gcc.dg/graphite/pr35356-2.c: New. |
3821 | * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
3822 | * gfortran.dg/graphite/id-12.f: New. | |
2abae5f1 SP |
3823 | |
3824 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3825 | ||
45489e99 | 3826 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: |
2abae5f1 SP |
3827 | Remove 2 XFAIL. |
3828 | ||
3829 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3830 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3831 | ||
3832 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
3833 | alias set number build alias in ACCESSES polyhedron. | |
3834 | (build_alias_set_for_drs): New. | |
3835 | (build_pbb_drs): Added build_alias_set_for_drs. | |
3836 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
3837 | (graphite_carried_dependence_level_k): Check alias information | |
3838 | before building polyhedron. | |
3839 | ||
3840 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3841 | ||
3842 | * Makefile.in (lambda-code.o): Fix formatting. | |
3843 | ||
3844 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3845 | ||
3846 | * Merge from mainline (r149350-149952) | |
3847 | ||
3848 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3849 | ||
3850 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
3851 | before interchange to prepare for loop blocking. | |
3852 | ||
3853 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3854 | ||
3855 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
3856 | transformation. | |
3857 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
3858 | done in apply_poly_transforms. | |
3859 | ||
3860 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3861 | ||
3862 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
3863 | Replace RES parameter with *RES. | |
3864 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
3865 | instead of value of RES. | |
3866 | ||
3867 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3868 | ||
3869 | * graphite.c (graphite_finalize): Fix comment. | |
3870 | (graphite_transform_loops): Reset scev info after code generation | |
3871 | of each scop. | |
3872 | ||
3873 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3874 | ||
3875 | * graphite.c (graphite_finalize): Call scev_reset. | |
3876 | ||
3877 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3878 | ||
3879 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
3880 | GBB_CLOOG_IV_TYPES hash table twice. | |
3881 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
3882 | (add_condition_to_domain): Clear GMP values. | |
3883 | ||
3884 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3885 | ||
3886 | * graphite-dependences.c: Fix formatting. | |
3887 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
3888 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
3889 | * graphite-sese-to-poly.c: Fix formatting. | |
3890 | * graphite.c (graphite_transform_loops): Create the hash table | |
3891 | after the early return. | |
3892 | ||
3893 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3894 | ||
45489e99 SP |
3895 | * gcc.dg/graphite/id-14.c: New. |
3896 | * gcc.dg/graphite/pr40157.c: New. | |
3897 | * gfortran.dg/graphite/id-11.f: New. | |
2abae5f1 SP |
3898 | |
3899 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3900 | ||
3901 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
3902 | (build_poly_scop): Return false when there are no pbbs within | |
3903 | loops to avoid to pass to cloog scops with no loops. | |
3904 | ||
3905 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3906 | ||
3907 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
3908 | useless test "i % 2". | |
3909 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
3910 | (build_poly_dr): Same. | |
3911 | * graphite.c (graphite_transform_loops): Restructure. | |
3912 | ||
3913 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
3914 | ||
3915 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
3916 | reduction_list parameter. | |
3917 | (rewrite_all_phi_nodes_with_iv): Same. | |
3918 | (canonicalize_loop_ivs): Same. | |
3919 | * tree-parloops.c (struct brli): Removed. | |
3920 | (build_reduction_list_info): Removed. | |
3921 | (build_new_reduction): New. | |
3922 | (analyze_reduction_list): Removed. | |
3923 | (gather_scalar_reductions): Find reductions instead of phi | |
3924 | nodes that can't be canonicalized. | |
3925 | (try_create_reduction_list): Remove reduction_list parameter. | |
3926 | (gen_parallel_loop): Same. | |
3927 | (parallelize_loops): Remove analyze_reductions variable, | |
3928 | initialization and free. | |
3929 | Change reduction_list htab initialization to reduction_info | |
3930 | elements instead of ssa names. | |
3931 | Call try_create_reduction_list and gen_parallel_loop without | |
3932 | analyzed_reduction argument. | |
3933 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
3934 | canonicalize_loop_ivs with one less argument. | |
3935 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
3936 | ||
3937 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3938 | ||
3939 | * graphite-dependences.c (new_poly_dr_pair): New. | |
3940 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
3941 | (new_poly_dr_pair): New. | |
3942 | (eq_poly_dr_pair_p): New. | |
3943 | (hash_poly_dr_pair_p): New. | |
3944 | * graphite-dependences.h (struct poly_dr_pair): New. | |
3945 | (eq_poly_dr_pair_p): Declared. | |
3946 | (hash_poly_dr_pair_p): Declared. | |
3947 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
3948 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
3949 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
3950 | * Makefile.in (graphite-poly.o): Add dependence on | |
3951 | graphite-dependences.h. | |
3952 | ||
3953 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3954 | ||
3955 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
3956 | polynomials of degree > 1 pass to Graphite. | |
3957 | * tree-chrec.c (scev_is_linear_expression): Call | |
3958 | evolution_function_is_affine_multivariate_p. | |
45489e99 | 3959 | * gfortran.dg/graphite/id-10.f90: New. |
2abae5f1 SP |
3960 | |
3961 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3962 | ||
3963 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
3964 | Instantiate scevs varying in outer loops. | |
45489e99 | 3965 | * gfortran.dg/graphite/id-9.f: Correct testcase. |
2abae5f1 SP |
3966 | |
3967 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3968 | ||
3969 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
3970 | redundant constraint. | |
3971 | ||
3972 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3973 | ||
45489e99 SP |
3974 | * gcc.dg/graphite/graphite.exp: Fix comments. |
3975 | * gfortran.dg/graphite/graphite.exp: Trigger actions | |
2abae5f1 | 3976 | based on the file names as in the C testsuite. |
45489e99 SP |
3977 | * gfortran.dg/graphite/block-1.f90: Fix patterns. |
3978 | * gfortran.dg/graphite/block-2.f: Same. | |
3979 | * gfortran.dg/graphite/block-3.f90: Same. | |
3980 | * gfortran.dg/graphite/block-4.f90: Same. | |
3981 | * gfortran.dg/graphite/id-1.f90: Same. | |
3982 | * gfortran.dg/graphite/id-2.f90: Same. | |
3983 | * gfortran.dg/graphite/id-3.f90: Same. | |
3984 | * gfortran.dg/graphite/id-4.f90: Same. | |
3985 | * gfortran.dg/graphite/id-6.f: Same. | |
3986 | * gfortran.dg/graphite/id-9.f: Same. | |
3987 | * gfortran.dg/graphite/interchange-1.f: Same. | |
3988 | * gfortran.dg/graphite/interchange-2.f: Same. | |
3989 | * gfortran.dg/graphite/scop-1.f: Same. | |
2abae5f1 SP |
3990 | |
3991 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3992 | ||
3993 | * sese.c (expand_scalar_variables_call): New. | |
3994 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
3995 | ||
3996 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3997 | ||
45489e99 | 3998 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: |
2abae5f1 | 3999 | Expect to see the pattern twice. |
45489e99 SP |
4000 | * gcc.dg/graphite/interchange-0.c: Un-XFAIL. |
4001 | * gcc.dg/graphite/interchange-5.c: Same. | |
4002 | * gcc.dg/graphite/interchange-6.c: Same. | |
2abae5f1 SP |
4003 | |
4004 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
4005 | ||
45489e99 SP |
4006 | * gcc.dg/graphite/id-10.c: New. |
4007 | * gcc.dg/graphite/id-12.c: New. | |
4008 | * gfortran.dg/graphite/id-7.f: New. | |
4009 | * gfortran.dg/graphite/id-8.f: New. | |
2abae5f1 SP |
4010 | |
4011 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
4012 | ||
4013 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
4014 | zero. | |
4015 | ||
4016 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
4017 | ||
4018 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
4019 | ||
4020 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
4021 | ||
4022 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
4023 | ||
4024 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
4025 | ||
4026 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
4027 | building PDR subscripts. | |
4028 | ||
4029 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
4030 | ||
4031 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
4032 | computation of array sizes. | |
4033 | ||
4034 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
4035 | ||
4036 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
4037 | ||
4038 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4039 | ||
4040 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
4041 | build_pairwise_constraint, dr_equality_constraints, | |
4042 | build_pairwise_scheduling_equality, | |
4043 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
4044 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
4045 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
4046 | Move from NNC_Polyhedron to C_Polyhedron. | |
4047 | * graphite-interchange.c (compute_array_size_poly, | |
4048 | gather_access_strides): Dito. | |
4049 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
4050 | free_scop, pbb_number_of_iterations): Dito. | |
4051 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
4052 | pbb_dim_iter_domain, struct scop): Dito. | |
4053 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
4054 | new_Cloog_Domain_from_ppl_Polyhedron, | |
4055 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
4056 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
4057 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
4058 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
4059 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
4060 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
4061 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
4062 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
4063 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
4064 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
4065 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
4066 | build_scop_iteration_domain, build_poly_dr): Dito | |
4067 | ||
4068 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4069 | ||
45489e99 | 4070 | * gcc.dg/graphite/graphite.exp: Added a rule to execute |
2abae5f1 | 4071 | run-id-*.c files. |
45489e99 | 4072 | * gcc.dg/graphite/run-id-1.c: New. |
2abae5f1 SP |
4073 | |
4074 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4075 | ||
4076 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
4077 | positivity constraint on the symbolic number of iterations. | |
4078 | ||
4079 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4080 | ||
4081 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
4082 | ||
4083 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4084 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4085 | ||
4086 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
4087 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
4088 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
4089 | (free_scop): Free SCOP_CONTEXT. | |
4090 | (print_scop_context): New. | |
4091 | (print_scop): Call print_scop_context. | |
4092 | (debug_scop_context): New. | |
4093 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
4094 | (struct scop): Added field context. | |
4095 | (SCOP_CONTEXT): New. | |
4096 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
4097 | (build_scop_context): New. | |
4098 | (build_poly_scop): Call build_scop_context. | |
4099 | ||
4100 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4101 | ||
4102 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
4103 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
4104 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
4105 | * graphite-ppl.h: Include double-int.h and tree.h. | |
4106 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
4107 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
4108 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
4109 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
4110 | ||
4111 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4112 | ||
4113 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
4114 | POINTER_PLUS_EXPR for pointer types. | |
4115 | (clast_to_gcc_expression): Same. | |
4116 | ||
4117 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
4118 | ||
4119 | * graphite-poly.c (print_scattering_function): Early return when | |
4120 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
4121 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
4122 | ||
4123 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
4124 | ||
4125 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
4126 | to fix bootstrap. | |
4127 | ||
4128 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
4129 | ||
4130 | * tree-parloops.c (analyze_reduction_list): Change return | |
4131 | value to void. | |
4132 | (try_create_reduction_list): Move the call to | |
4133 | analyze_reduction_list to the beginining. | |
4134 | Call reduction_phi with analyzed_reductions as argument | |
4135 | instead of reduction_list. | |
4136 | ||
4137 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4138 | ||
4139 | * Merge from mainline (r148296:149346) | |
4140 | ||
4141 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
4142 | ||
4143 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
4144 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
4145 | check that the initial value does not contain multiplications of | |
4146 | parameters. | |
4147 | (stmt_has_simple_data_refs_p): New. | |
4148 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
4149 | (is_simple_operand): Fix formatting. | |
4150 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
4151 | ||
4152 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
4153 | ||
45489e99 | 4154 | * gcc.dg/graphite/id-13.c: New. |
2abae5f1 SP |
4155 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call |
4156 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
4157 | (scan_tree_for_params_right_scev): Add extra assert. | |
4158 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
4159 | (idx_record_params): Use scalar_evolution_in_region. | |
4160 | (find_params_in_bb): Same. | |
4161 | (find_scop_parameters): Same. | |
4162 | (build_loop_iteration_domains): Same. | |
4163 | (create_linear_expr_from_tree): Same. | |
4164 | * sese.c (scalar_evolution_in_region): New. | |
4165 | * sese.h (scalar_evolution_in_region): Declared. | |
4166 | (defined_in_sese_p): New. | |
4167 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
4168 | static anymore. | |
4169 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
4170 | Declared. | |
4171 | ||
4172 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
4173 | ||
4174 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
4175 | TREE_DATA_REF_H also implies SCEV_H. | |
4176 | ||
4177 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
4178 | ||
4179 | * graphite-poly.c (print_scop_params): New. | |
4180 | (print_scop): Call print_scop_params. | |
4181 | (debug_scop_params): New. | |
4182 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
4183 | ||
4184 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
4185 | ||
45489e99 SP |
4186 | * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. |
4187 | * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
4188 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
4189 | * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
4190 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
4191 | * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
2abae5f1 SP |
4192 | |
4193 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
4194 | ||
4195 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
4196 | for dependency checking part. | |
45489e99 | 4197 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add |
2abae5f1 | 4198 | tests for dependency checking. |
45489e99 SP |
4199 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
4200 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
4201 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
2abae5f1 SP |
4202 | flag -fdump-tree-graphite-all for autopar testsuites. |
4203 | ||
4204 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
4205 | ||
4206 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
4207 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
4208 | canonicalize_loop_ivs): Moved... | |
4209 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
4210 | ||
4211 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
4212 | ||
4213 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
4214 | argument analyzed_reductions. Call analyze_reduction_list. | |
4215 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
4216 | (parallelize_loops): Init and finalize analyzed_reductions. | |
4217 | ||
4218 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
4219 | ||
45489e99 | 4220 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
4221 | Added flag -fno-loop-strip-mine for autopar testcase. |
4222 | ||
4223 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
4224 | ||
4225 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
4226 | transformed scattering dimension instead of unmatch orignal when | |
4227 | calling dependence_polyhedron. | |
4228 | ||
4229 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
4230 | ||
4231 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
4232 | ||
4233 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
4234 | ||
4235 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
4236 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
4237 | ||
4238 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
4239 | ||
4240 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
4241 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
4242 | * graphite-poly.c (pbb_number_of_iterations): New. | |
4243 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
4244 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
4245 | ||
4246 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
4247 | ||
4248 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
4249 | last commit on type of lower and upper bound of loops. | |
4250 | ||
4251 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
4252 | ||
4253 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
4254 | graphite-dependences.h. | |
4255 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
4256 | (mark_bb_with_pbb): New. | |
4257 | (get_stmtfor_depth): New. | |
4258 | (find_pbb_via_hash): New. | |
4259 | (dependency_in_loop_p): New. | |
4260 | (mark_loops_parallel): New. | |
4261 | (free_aux_in_new_loops): New. | |
4262 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
4263 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
4264 | innermost loop parallel without checking. | |
4265 | (gloog): Add parameter BB_PBB_MAPPING. | |
4266 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
4267 | (gloog): Change declaration. | |
4268 | (mark_loop_parallel): Make extern. | |
4269 | (free_aux_in_new_loops): Declare. | |
4270 | (bb_pbb_map_hash): New. | |
4271 | (eq_bb_pbb_map): New. | |
4272 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
4273 | auto parallelization when flag_graphite_force_parallel is set. | |
4274 | (graphite_finalize): Added free_aux_in_new_loops. | |
4275 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
4276 | the innermost loop that marked parallel. Use | |
4277 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
4278 | (loop_parallel_p): Move inner most checking out of function. | |
4279 | ||
4280 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4281 | ||
4282 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
4283 | type of lower and upper bound of loops signed long int. | |
4284 | ||
4285 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4286 | ||
4287 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
4288 | expression outside the loop. | |
4289 | ||
4290 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4291 | ||
4292 | * gcc.dg/graphite/interchange-8.c: New. | |
4293 | ||
4294 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4295 | ||
4296 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
4297 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
4298 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
4299 | ||
4300 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4301 | ||
4302 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
4303 | recursion should return 1. | |
4304 | ||
4305 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4306 | ||
4307 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
4308 | subscript multiplier to be -1. | |
4309 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
4310 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
4311 | data_container. Initializes PDR_DATA_CONTAINER. | |
4312 | (print_pdr_access_layout): New. | |
4313 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
4314 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
4315 | data_container. | |
4316 | (PDR_DATA_CONTAINER): New. | |
4317 | (new_poly_dr): Update declaration. | |
4318 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
4319 | (build_poly_dr): Call pdr_add_data_dimensions. | |
4320 | ||
4321 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4322 | ||
4323 | * graphite-poly.h (struct poly_dr): Fix comment. | |
4324 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
4325 | (pdr_add_memory_accesses): New. | |
4326 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
4327 | ||
4328 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
4329 | ||
4330 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
4331 | (print_pbb): Add call to print_pdrs. | |
4332 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
4333 | ||
4334 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
4335 | Li Feng <nemokingdom@gmail.com> | |
4336 | ||
4337 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
4338 | (dependency_between_pbbs_p): New. | |
4339 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
4340 | intersection assign. | |
4341 | (build_lexicographically_gt_constraint): Correct lexicographically | |
4342 | judging. | |
4343 | * graphite-dependences.h: New. | |
4344 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
4345 | ||
4346 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
4347 | ||
4348 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
4349 | (gloog): Print to dump_file the generated clast. | |
4350 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
4351 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
4352 | ||
4353 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
4354 | ||
4355 | * graphite-poly.c (extend_scattering): Increment | |
4356 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
4357 | ||
4358 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
4359 | ||
4360 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
4361 | recursion condition. Continue iterating even after the first equality. | |
4362 | (compute_array_size): Same. | |
4363 | ||
4364 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
4365 | ||
45489e99 | 4366 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update |
2abae5f1 | 4367 | -fdump-tree-final_cleanup to -fdump-tree-optimized. |
45489e99 SP |
4368 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
4369 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
4370 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
2abae5f1 SP |
4371 | |
4372 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4373 | ||
4374 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
4375 | only when the use verifies is_gimple_reg. | |
4376 | ||
4377 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4378 | ||
4379 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
4380 | Allocate scaldims after call to unify_scattering_dimensions. | |
4381 | ||
4382 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4383 | ||
4384 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
4385 | ||
4386 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4387 | Albert Cohen <albert.cohen@inria.fr> | |
4388 | ||
4389 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
4390 | variables for the strip mining. | |
4391 | ||
4392 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4393 | Pranav Garg <pranav.garg2107@gmail.com> | |
4394 | ||
4395 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
4396 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
4397 | (graphite-blocking.o): New rule. | |
4398 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
4399 | * graphite-blocking.c: New. | |
4400 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
4401 | flag_loop_strip_mine. | |
4402 | (psct_scattering_dim_for_loop_depth): New. | |
4403 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
4404 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
4405 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
4406 | flag_loop_strip_mine. | |
4407 | ||
4408 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4409 | ||
4410 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
4411 | a GMP value and a PPL coefficient at each iteration of a loop. | |
4412 | ||
4413 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4414 | ||
4415 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
4416 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
4417 | pbb_nb_scattering_transform. | |
4418 | (graphite_legal_transform_dr): Same. | |
4419 | * graphite-poly.c (extend_scattering): Same. | |
4420 | (unify_scattering_dimensions): Same. | |
4421 | (print_scattering_function): Same. | |
4422 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
4423 | PBB_NB_LOCAL_VARIABLES. | |
4424 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
4425 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
4426 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
4427 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
4428 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
4429 | (pbb_nb_scattering_transform): New. | |
4430 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
4431 | (psco_scattering_dim): Add assert on parameters. | |
4432 | (psct_scattering_dim): Same. | |
4433 | (psct_scattering_dim_for_loop_depth): Declared. | |
4434 | (psct_local_var_dim): New. | |
4435 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
4436 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
4437 | correct layout, call pbb_nb_local_vars. | |
4438 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
4439 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
4440 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
4441 | ||
4442 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4443 | ||
4444 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
4445 | (set_coef): Renamed ppl_set_coef. | |
4446 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
4447 | ||
4448 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4449 | ||
4450 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
4451 | test a boolean against 1. | |
4452 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
4453 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
4454 | (pbb_do_interchange): Returns true when a transform has been performed. | |
4455 | (scop_do_interchange): Same. | |
4456 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
4457 | scop_do_interchange. | |
4458 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
4459 | ||
4460 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
4461 | ||
4462 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
4463 | after last use. | |
4464 | * sese.c (sese_reset_aux_in_loops): New. | |
4465 | * sese.h (sese_reset_aux_in_loops): New. | |
4466 | ||
4467 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4468 | ||
4469 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
4470 | multiplier and multiply the constant by the multiplier. | |
4471 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
4472 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
4473 | ||
4474 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4475 | ||
4476 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
4477 | compiler's data reference. Initialize PDR_CDR. | |
4478 | (print_pdr): Call dump_data_reference. | |
4479 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
4480 | Add compiler_dr field. | |
4481 | (PDR_BB): Renamed PDR_PBB. | |
4482 | (PDR_CDR): New. | |
4483 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
4484 | GCC's data reference representation. | |
4485 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
4486 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
4487 | ||
4488 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4489 | ||
4490 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
4491 | * graphite-poly.h (pbb_nb_local_vars): New. | |
4492 | ||
4493 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4494 | ||
4495 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
4496 | ||
4497 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4498 | ||
4499 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
4500 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
4501 | (PDR_BASE): Removed. | |
4502 | ||
4503 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4504 | ||
45489e99 | 4505 | * gcc.dg/graphite/interchange-{1..7}.c: New avatars of |
2abae5f1 SP |
4506 | ltrans-{1..6,8}.c. |
4507 | ||
4508 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4509 | ||
4510 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
4511 | subscript identification column. | |
4512 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
4513 | interchanged". Rely on that chain of characters in the testcases. | |
4514 | * gcc.dg/graphite/interchange-0.c: New. | |
4515 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
4516 | interchange-*.c files and compile them with -floop-interchange. | |
4517 | ||
4518 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
4519 | ||
4520 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
4521 | pbb_interchange_profitable_p. | |
4522 | ||
4523 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4524 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4525 | Pranav Garg <pranav.garg2107@gmail.com> | |
4526 | ||
4527 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
4528 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
4529 | scop_do_interchange): New. | |
4530 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
4531 | for flag_loop_interchange. | |
4532 | * graphite-poly.h (scop_do_interchange): Declared. | |
4533 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
4534 | flag_loop_interchange is used. | |
4535 | ||
4536 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4537 | ||
4538 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
4539 | pbb_nb_scattering_dims. | |
4540 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
4541 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
4542 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
4543 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
4544 | ||
4545 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
4546 | ||
4547 | * graphite.c: Cleanup foo. | |
4548 | ||
4549 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
4550 | ||
4551 | * Merge from mainline (r143684:148293). | |
4552 | * Disabled libpcp until it gets fixed. | |
4553 | ||
4554 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
4555 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4556 | ||
4557 | * graphite-interchange.c: New. | |
4558 | * Makefile.in (graphite-interchange.o): New. | |
4559 | * graphite-poly.h (interchange_profitable_p): Declared. | |
4560 | * graphite-ppl.h (value_max): New. | |
4561 | ||
4562 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4563 | ||
4564 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
4565 | * graphite-poly.h: Fix some comments. | |
4566 | (pdr_dim): New. | |
4567 | (pdr_scop): New. | |
4568 | ||
4569 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4570 | ||
4571 | * graphite-poly.h | |
4572 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
4573 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
4574 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
4575 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
4576 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
4577 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
4578 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
4579 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
4580 | * graphite-clast-to-gimple.c: Same. | |
4581 | * graphite-dependences.c: Same. | |
4582 | * graphite-poly.c: Same. | |
4583 | * graphite-sese-to-poly.c: Same. | |
4584 | ||
4585 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4586 | ||
4587 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
4588 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
4589 | (copy_renames): Rename new_name to expr. | |
4590 | * sese.c (debug_rename_elt): Same. | |
4591 | (get_rename): Same. | |
4592 | (set_rename): Same. | |
4593 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
4594 | the information from the rename map. | |
4595 | (rename_variables_in_stmt): Same. | |
4596 | (add_loop_exit_phis): Rename new_name to expr. | |
4597 | (insert_loop_close_phis): Same. | |
4598 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
4599 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
4600 | (new_rename_map_elt): Same. | |
4601 | ||
4602 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4603 | ||
4604 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
4605 | * sese.c (set_rename): Make it extern. | |
4606 | * sese.h (set_rename): Declared. | |
4607 | ||
4608 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4609 | ||
4610 | * graphite-poly.c (extend_scattering): Free values. | |
4611 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
4612 | Free iterators. | |
4613 | (ppl_print_powerset_matrix): Same. | |
4614 | * graphite-scop-detection.c (free_scops_1): New. | |
4615 | (limit_scops): Call free_scops_1. | |
4616 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
4617 | (build_poly_dr): Free PPL coefficients. | |
4618 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
4619 | ||
4620 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
4621 | ||
4622 | * graphite-dependences.c: New. | |
4623 | * graphite-data-ref.c: Removed. | |
4624 | * graphite-data-ref.h: Removed. | |
4625 | * Makefile.in (graphite-data-ref.o): Removed. | |
4626 | (graphite-dependences.o): Added. | |
4627 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
4628 | * graphite-poly.c: Same. | |
4629 | Move the data dependence testing to graphite-dependences.c. | |
4630 | ||
4631 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4632 | ||
4633 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
4634 | from graphite_cannot_represent_loop. Code refactored. | |
4635 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
4636 | ||
4637 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
4638 | ||
45489e99 | 4639 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
4640 | Cover all the testcases (not only the filtered ones). |
4641 | ||
4642 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4643 | ||
4644 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
4645 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
4646 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
4647 | done in (stmt_simple_for_scop_p). | |
4648 | ||
4649 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4650 | ||
4651 | * graphite.c (print_global_statistics): New. | |
4652 | (print_graphite_scop_statistic): New. | |
4653 | (print_graphite_statistics): New. | |
4654 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
4655 | * graphite-scop-detection (build_scops): Print statistics. | |
4656 | (print_graphite_scop_statistics): New. | |
4657 | (print_graphite_statistics): New. | |
4658 | ||
4659 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4660 | ||
4661 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
4662 | (debug_clast_name_index): Removed. | |
4663 | (debug_clast_name_indexes_1): Removed. | |
4664 | (debug_clast_name_indexes): Removed. | |
4665 | (clast_name_index_elt_info): Removed. | |
4666 | (eq_clast_name_indexes): Removed. | |
4667 | (clast_name_to_index): Removed. | |
4668 | (new_clast_name_index): Removed. | |
4669 | (save_clast_name_index): Removed. | |
4670 | (save_var_name): Moved... | |
4671 | (init_sese_params_index): Removed. | |
4672 | (clast_name_to_gcc): Remove use of name_tree. | |
4673 | (initialize_cloog_names): Same. | |
4674 | (gloog): Do not call init_sese_params_index. | |
4675 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
4676 | (parameter_index_in_region): New. | |
4677 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
4678 | (parameter_index_in_region): Removed. | |
4679 | (is_parameter): Remove use of name_tree. | |
4680 | * sese.h (struct name_tree): Removed. | |
4681 | (struct sese): Remove use of name_tree. New field params_names. | |
4682 | (SESE_PARAMS_NAMES): New. | |
4683 | (SESE_PARAMS): Remove duplicate. | |
4684 | (parameter_index_in_region): Removed. | |
4685 | (sese_nb_params): Remove use of name_tree. | |
4686 | (struct clast_name_index): New. | |
4687 | (new_clast_name_index): New. | |
4688 | (clast_name_to_index): New. | |
4689 | (save_clast_name_index): New. | |
4690 | (debug_clast_name_index): New. | |
4691 | (debug_clast_name_indexes_1): New. | |
4692 | (debug_clast_name_indexes): New. | |
4693 | (clast_name_index_elt_info): New. | |
4694 | (eq_clast_name_indexes): New. | |
4695 | ||
4696 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4697 | ||
4698 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
4699 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
4700 | (graphite_loop_normal_form): Do not pass region. Do not | |
4701 | initialize SESE_OLDIVS. | |
4702 | (build_graphite_loop_normal_form): Update call to | |
4703 | graphite_loop_normal_form. | |
4704 | * sese.c (debug_oldivs): Removed. | |
4705 | (new_sese): Do not initialize SESE_OLDIVS. | |
4706 | (free_sese): Do not free SESE_OLDIVS. | |
4707 | (oldiv_for_loop): Removed. | |
4708 | * sese.h (struct sese): Remove old_ivs. | |
4709 | (SESE_OLDIVS): Removed. | |
4710 | (oldiv_for_loop): Removed. | |
4711 | ||
4712 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4713 | ||
4714 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
4715 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
4716 | replaced by a call to newivs_to_depth_to_newiv. | |
4717 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
4718 | (clast_to_gcc_expression_red): Same. | |
4719 | (gcc_type_for_clast_expr): Same. | |
4720 | (gcc_type_for_clast_eq): Same. | |
4721 | (graphite_translate_clast_equation): Same. | |
4722 | (graphite_create_guard_cond_expr): Same. | |
4723 | (graphite_create_new_guard): Same. | |
4724 | (graphite_create_new_loop): Same. | |
4725 | (build_iv_mapping): Same. | |
4726 | (translate_clast): Same. | |
4727 | (gloog): Same. | |
4728 | (loop_iv_stack_patch_for_consts): Removed. * | |
4729 | sese.c (iv_stack_entry_is_constant): Removed. | |
4730 | (iv_stack_entry_is_iv): Removed. | |
4731 | (loop_iv_stack_push_iv): Removed. | |
4732 | (loop_iv_stack_insert_constant): Removed. | |
4733 | (loop_iv_stack_pop): Removed. | |
4734 | (loop_iv_stack_get_iv): Removed. | |
4735 | (loop_iv_stack_get_iv_from_name): Removed. | |
4736 | (debug_loop_iv_stack): Removed. | |
4737 | (free_loop_iv_stack): Removed. | |
4738 | (loop_iv_stack_remove_constants): Removed. * | |
4739 | sese.h (iv_stack_entry_kind): Removed. | |
4740 | (iv_stack_entry_data_union): Removed. | |
4741 | (iv_stack_entry_struct): Removed. | |
4742 | (iv_stack_entry_p): Removed. | |
4743 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
4744 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
4745 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
4746 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
4747 | (gbb_loop_at_index): Fix indenting. | |
4748 | (gbb_loop_index): Removed. | |
4749 | ||
4750 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4751 | ||
4752 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
4753 | Call clast_name_to_index. | |
4754 | ||
4755 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4756 | ||
4757 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
4758 | do not pass params. Get params from SESE_PARAMS. | |
4759 | (clast_to_gcc_expression): Same. | |
4760 | (clast_to_gcc_expression_red): Same. | |
4761 | (gcc_type_for_clast_eq): Same. | |
4762 | (graphite_translate_clast_equation): Same. | |
4763 | (graphite_create_new_loop): Same. | |
4764 | * sese.c (rename_variables_in_stmt): Fix comment. | |
4765 | ||
4766 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4767 | ||
4768 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
4769 | newivs_index. | |
4770 | Call save_clast_name_index. | |
4771 | (translate_clast): Pass newivs_index. | |
4772 | (gloog): Create and free newivs_index. | |
4773 | ||
4774 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4775 | ||
4776 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
4777 | (clast_name_index_p): New type. | |
4778 | (debug_clast_name_index): New. | |
4779 | (debug_clast_name_indexes_1): New. | |
4780 | (debug_clast_name_indexes): New. | |
4781 | (clast_name_index_elt_info): New. | |
4782 | (eq_clast_name_indexes): New. | |
4783 | (clast_name_to_index): New. | |
4784 | (new_clast_name_index): New. | |
4785 | (save_clast_name_index): New. | |
4786 | (init_sese_params_index): New. | |
4787 | (gloog): Call init_sese_params_index. | |
4788 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
4789 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
4790 | (free_sese): Free SESE_PARAMS_INDEX. | |
4791 | * sese.h (struct sese): Add params_index. | |
4792 | (SESE_PARAMS_INDEX): New. | |
4793 | ||
4794 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4795 | ||
4796 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
4797 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
4798 | newly created IV to newivs. | |
4799 | (translate_clast): Pass the newivs vector. | |
4800 | (gloog): Create and destroy the newivs vector. | |
4801 | ||
4802 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4803 | ||
4804 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
4805 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
4806 | IV that has been created. | |
4807 | ||
4808 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4809 | ||
4810 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
4811 | scev with parameters in the base part. They where forbidden | |
4812 | exidently. | |
4813 | ||
4814 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
4815 | ||
45489e99 | 4816 | * gcc.dg/graphite/graphite.exp: Set different default |
2abae5f1 | 4817 | compile options by file names. |
45489e99 SP |
4818 | * gcc.dg/graphite/block{0-6}.c: Remove dg-option line. |
4819 | * gcc.dg/graphite/id-{1-9}.c: Ditto. | |
4820 | * gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
4821 | * gcc.dg/graphite/scop-matmult.c: Ditto. | |
2abae5f1 SP |
4822 | |
4823 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
4824 | ||
45489e99 SP |
4825 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. |
4826 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
4827 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
4828 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
2abae5f1 SP |
4829 | |
4830 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4831 | ||
4832 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
4833 | by final cleanup. | |
4834 | ||
4835 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4836 | ||
4837 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
4838 | allow integer constant strides. | |
4839 | (graphite_can_represent_expr): Depend on outermost_loop. | |
4840 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
4841 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
4842 | build_scops_1): Same. | |
4843 | (scopdet_basic_block_info): Same and insert layered SCoP | |
4844 | detection. | |
4845 | (try_generate_gimple_bb): Cleanup. | |
4846 | (build_scops): Enable data references. | |
4847 | ||
45489e99 SP |
4848 | * gcc.dg/graphite/id-5.c: New. |
4849 | * gcc.dg/graphite/id-9.c: New. | |
2abae5f1 SP |
4850 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. |
4851 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
4852 | ||
4853 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4854 | ||
4855 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
4856 | that we have not yet built for this SCoP. | |
4857 | ||
4858 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4859 | ||
4860 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
4861 | for complex numbers. | |
4862 | ||
4863 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4864 | ||
4865 | * graphite-ppl.c: Fix build if cloog is not available. | |
4866 | ||
4867 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
4868 | ||
4869 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
4870 | NITER and REDUCTION_LIST. | |
4871 | (try_get_loop_niter): New. | |
4872 | (try_create_reduction_list): New. | |
4873 | (parallelize_loops): Bypass the failed checkings in autopar | |
4874 | when can_be_parallel in loop structure is set to true. | |
4875 | ||
4876 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4877 | ||
45489e99 SP |
4878 | * gcc.dg/graphite/id-6.c: Update testcase. |
4879 | * gcc.dg/graphite/scop-3.c: Dito. | |
2abae5f1 SP |
4880 | |
4881 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4882 | ||
4883 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
4884 | Enable EQ_EXPR and NE_EXPR again. | |
4885 | ||
4886 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4887 | ||
4888 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
4889 | Add check if scev is affine multivariate. | |
4890 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
4891 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
4892 | harmful_stmt_in_bb. | |
45489e99 | 4893 | * gcc.dg/graphite/id-7.c: New. |
2abae5f1 SP |
4894 | |
4895 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4896 | ||
4897 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
4898 | Check all bbs in region, not only the bbs that are represented in | |
4899 | GRAPHITE. | |
4900 | (build_poly_scop): Add newline. | |
45489e99 | 4901 | * gcc.dg/graphite/id-8.c: New. |
2abae5f1 SP |
4902 | |
4903 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4904 | ||
4905 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
4906 | when loop initialize. | |
4907 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
4908 | * common.opt: Declare flag_graphite_force_parallel. | |
4909 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
4910 | loop parallel. | |
4911 | * graphite-poly.c (apply_poly_transforms): Introduce | |
4912 | flag_graphite_force_parallel. | |
4913 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
4914 | * toplev.c (process_options): ditto and replace a not correctly | |
4915 | encoded space. | |
4916 | ||
4917 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4918 | ||
4919 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
4920 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
4921 | to the redefinition. | |
4922 | (compute_cloog_iv_types_1): ditto. | |
4923 | (build_iv_mapping): ditto. | |
4924 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
4925 | initialization. | |
4926 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
4927 | (build_bb_loops): Removed. | |
4928 | * sese.h (struct gimple_bb): Removed loops. | |
4929 | (GBB_LOOPS): Removed. | |
4930 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
4931 | (gbb_loop_index): ditto. | |
4932 | ||
4933 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4934 | ||
4935 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
4936 | allow non constant strides. | |
45489e99 | 4937 | * gcc.dg/graphite/scop-20.c: New. |
2abae5f1 SP |
4938 | |
4939 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4940 | ||
4941 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
4942 | return value warning. | |
4943 | (dot_scop): Same. | |
4944 | ||
4945 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4946 | ||
45489e99 SP |
4947 | * gcc.dg/graphite/id-6.c: Fix pattern. |
4948 | * gcc.dg/graphite/scop-3.c: Same. | |
2abae5f1 SP |
4949 | |
4950 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4951 | ||
4952 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
4953 | build_pairwise_constraint, dr_equality_constraints, | |
4954 | build_pairwise_scheduling_equality, | |
4955 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
4956 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
4957 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
4958 | graphite_legal_transform): New. | |
4959 | * graphite-poly.h (graphite_legal_transform): Declared. | |
4960 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
4961 | graphite_legal_transform is disabled for the moment. | |
4962 | ||
4963 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4964 | ||
4965 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
4966 | (pbb_nb_scattering): Use it. | |
4967 | ||
4968 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4969 | ||
4970 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
4971 | Pointset_Powerset version of ppl_insert_dimensions. | |
4972 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
4973 | ||
4974 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4975 | ||
4976 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
4977 | ||
4978 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4979 | ||
4980 | * graphite-poly.h: Fix comment. | |
4981 | ||
4982 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4983 | ||
4984 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
4985 | ||
4986 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4987 | ||
4988 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
4989 | statements. | |
4990 | ||
4991 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4992 | ||
4993 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
4994 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
4995 | conditions. | |
4996 | ||
4997 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
4998 | ||
4999 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
5000 | handle EQ_EXPR and NE_EXPR. | |
5001 | ||
5002 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
5003 | ||
5004 | * graphite-poly.h (poly_dr): Fix comment. | |
5005 | ||
5006 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
5007 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5008 | ||
5009 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
5010 | with a zero dimension polyhedron. | |
5011 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
5012 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
5013 | domain polyhedron. | |
5014 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
5015 | by any loop in scop. | |
5016 | (build_poly_scop): Do not call scop_set_nb_params. | |
5017 | ||
5018 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
5019 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5020 | ||
5021 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
5022 | add_condition_to_domain not GT_EXPR. | |
5023 | ||
5024 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5025 | ||
5026 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
5027 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
5028 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
5029 | upper_bound_assign to calculate unions. | |
45489e99 | 5030 | * gcc.dg/graphite/id-6.c: New. |
2abae5f1 SP |
5031 | |
5032 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5033 | ||
5034 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
5035 | handle abnormal edges. | |
5036 | ||
5037 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5038 | ||
5039 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
5040 | (free_poly_bb): Also free poly_drs. | |
5041 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
5042 | (poly_dr): Polyhedron to Pointset_Powerset. | |
5043 | (pdr_accessp_nb_subscripts): Same. | |
5044 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
5045 | poly_drs. | |
5046 | ||
5047 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5048 | ||
5049 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
5050 | names into more meaningful names. | |
5051 | ||
5052 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5053 | ||
45489e99 SP |
5054 | * gfortran.dg/graphite/interchange-1.c: New. |
5055 | * gfortran.dg/graphite/interchange-2.c: New. | |
2abae5f1 SP |
5056 | |
5057 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5058 | ||
5059 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
5060 | the reduction_list. | |
5061 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
5062 | (rewrite_all_phi_nodes_with_iv): New. | |
5063 | (canonicalize_loop_ivs): Call them. | |
5064 | ||
5065 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5066 | ||
5067 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
5068 | graphite_find_data_references_in_stmt. | |
5069 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
5070 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
5071 | ||
5072 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5073 | ||
5074 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
5075 | ||
5076 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5077 | ||
5078 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
5079 | instead of bb_in_region. | |
5080 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
5081 | (build_sese_conditions): Use flag_bb_in_sese. | |
5082 | * sese.c (register_bb_in_sese): Removed. | |
5083 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
5084 | (free_sese): Do not free SESE_REGION_BBS. | |
5085 | * sese.h (struct sese): Remove field region_basic_blocks. | |
5086 | (SESE_REGION_BBS): Removed. | |
5087 | (bb_in_sese_p): Implement in function of bb_in_region. | |
5088 | ||
5089 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
5090 | ||
5091 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
5092 | loops. | |
5093 | ||
5094 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
5095 | ||
5096 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
5097 | and EQ_EXPR. | |
5098 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
5099 | (add_condition_to_domain): New. | |
5100 | (add_condition_to_pbb): New. | |
5101 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
45489e99 | 5102 | * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. |
2abae5f1 SP |
5103 | |
5104 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
5105 | ||
5106 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
5107 | ppl_Pointset_Powerset. | |
5108 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
5109 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
5110 | (pbb_nb_loops): Same. | |
5111 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
5112 | add_conditions_to_domain): Same. | |
5113 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
5114 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
5115 | ppl_const_Polyhedron_t. | |
5116 | (ppl_print_powerset_matrix): New. | |
5117 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
5118 | ppl_print_powerset_matrix): New. | |
5119 | (ppl_print_polyhedron_matrix): Updated. | |
5120 | ||
5121 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
5122 | ||
5123 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
5124 | ||
5125 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
5126 | ||
5127 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
5128 | (print_iteration_domains, debug_iteration_domain, | |
5129 | debug_iteration_domains): New. | |
5130 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
5131 | debug_iteration_domains): Declared. | |
5132 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
5133 | indenting. | |
5134 | ||
5135 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5136 | Sebastian Pop <sebastian.pop@amd.com> | |
5137 | ||
5138 | * graphite-poly.h (print_iteration_domain): New. | |
5139 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
5140 | (build_sese_conditions_1, build_sese_conditions_after, | |
5141 | build_sese_conditions_before): New. | |
5142 | (build_sese_conditions): Rewritten. | |
5143 | ||
5144 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
5145 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5146 | ||
5147 | Cleanup of code generation liveouts. | |
5148 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
5149 | rename_map instead of one per translated statement. | |
5150 | Do not use SESE_LIVEOUT_RENAMES. | |
5151 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
5152 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
5153 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
5154 | phi node of a reduction: when a loop contains a reduction used outside | |
5155 | the loop, there should be a scalar close phi node on the exit block. | |
5156 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
5157 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
5158 | (free_sese): Do not free them. | |
5159 | (sese_build_liveouts_use): Do not use them. | |
5160 | (sese_build_liveouts_bb): Same. | |
5161 | (sese_build_liveouts): Same. | |
5162 | (sese_insert_phis_for_liveouts): Same. | |
5163 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
5164 | (defined_in_loop_p): New. | |
5165 | (alive_after_loop): New. | |
5166 | (close_phi_not_yet_inserted_p): New. | |
5167 | (struct alep, alep_p): New. | |
5168 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
5169 | in the code generated loop. | |
5170 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
5171 | Don't use SESE_LIVEOUT_RENAMES. | |
5172 | (default_liveout_before_guard): Renamed default_before_guard. | |
5173 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
5174 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
5175 | (register_sese_liveout_renames): Removed. | |
5176 | (copy_bb_and_scalar_dependences): Do not call it. | |
5177 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
5178 | reduction_list. | |
5179 | (SESE_LIVEOUT): Removed. | |
5180 | (SESE_LIVEOUT_RENAMES): Removed. | |
5181 | (SESE_REDUCTION_LIST): Removed. | |
5182 | (sese_build_liveouts): Removed. | |
5183 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
5184 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
5185 | (insert_guard_phis): Same. | |
5186 | (rename_map_elt): Declare a VEC of them. | |
5187 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
5188 | trees not pointers to trees. | |
5189 | ||
5190 | Rewrite in canonical close SSA form: | |
5191 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
5192 | (limit_scops): Close the scop after the block containing the close phi | |
5193 | nodes. | |
5194 | (canonicalize_loop_closed_ssa): New. | |
5195 | (canonicalize_loop_closed_ssa_form): New. | |
5196 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
5197 | ||
5198 | * graphite-sese-to-poly.c: Fix typos. | |
5199 | ||
5200 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
5201 | ||
5202 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
5203 | Extended. | |
5204 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
5205 | (print_pbb): Add conditions. | |
5206 | ||
5207 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
5208 | Sebastian Pop <sebastian.pop@amd.com> | |
5209 | ||
5210 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
5211 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
5212 | (build_scop_bbs_1): New. | |
5213 | (build_scop_bbs): Rewrite. | |
5214 | * sese.h (bb_in_region): New. | |
5215 | ||
5216 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5217 | ||
5218 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
5219 | poly_drs vector. | |
5220 | (print_scop): Style. | |
5221 | * graphite-poly.h (poly_bb): Add drs vector. | |
5222 | (PBB_DRS): Add accessor. | |
5223 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
5224 | (build_pbb_drs, build_scop_drs): New. | |
5225 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
5226 | ||
5227 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5228 | ||
5229 | * tree-ssa-loop.c: Include forgotten toplev.h | |
5230 | ||
5231 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5232 | ||
5233 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
45489e99 SP |
5234 | * gcc.dg/graphite/pr37883.c: Remove -floop-* |
5235 | * gcc.dg/graphite/pr37928.c: Same | |
5236 | * gcc.dg/graphite/pr38409.c: Same | |
5237 | * gcc.dg/graphite/pr38498.c: Same | |
5238 | * gcc.dg/graphite/pr38559.c: Same | |
5239 | * gcc.dg/graphite/pr39335.c: Same | |
5240 | * gcc.dg/graphite/pr39335_1.c: Same | |
5241 | * gfortran.dg/graphite/block-2.f: Same | |
2abae5f1 SP |
5242 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called |
5243 | with -floop-*. | |
5244 | ||
5245 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
5246 | ||
5247 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
5248 | build_access_matrix, build_scop_data_accesses): Remove access function | |
5249 | building. (We get a new version soon). | |
5250 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
5251 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
5252 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
5253 | ||
5254 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
5255 | Sebastian Pop <sebastian.pop@amd.com> | |
5256 | ||
5257 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
5258 | field to exit. | |
5259 | (scopdet_basic_block_info, build_scops_1): Don't use | |
5260 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
5261 | ||
5262 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
5263 | Sebastian Pop <sebastian.pop@amd.com> | |
5264 | ||
5265 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
5266 | * sese.c (sese_build_liveouts_use): Renamed from | |
5267 | sese_build_livein_liveouts_use. Remove liveins. | |
5268 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
5269 | Call sese_build_liveouts_use. | |
5270 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
5271 | Call sese_build_liveouts_bb. | |
5272 | (new_sese, free_sese): Remove liveins. | |
5273 | (sese_add_exit_phis_var): Deleted. | |
5274 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
5275 | directly. | |
5276 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
5277 | ||
5278 | * sese.h (sese): Remove num_ver and livein. | |
5279 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
5280 | ||
5281 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
5282 | ||
5283 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
5284 | ||
5285 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
5286 | ||
5287 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
5288 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
5289 | (nb_common_loops): New. | |
5290 | ||
5291 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5292 | ||
5293 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
5294 | (register_old_and_new_names): Renamed set_rename. | |
5295 | ||
5296 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5297 | ||
5298 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
5299 | of the decl from the previous commit. | |
5300 | ||
5301 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5302 | ||
5303 | * graphite-scop-detection.c (dot_scop): New. | |
5304 | * graphite-scop-detection.h (dot_scop): Declared. | |
5305 | ||
5306 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5307 | ||
5308 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
5309 | ||
5310 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5311 | ||
5312 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
5313 | condition at the end of the loop. | |
5314 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
5315 | dump_file the compiled function. | |
5316 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
5317 | of create_empty_loop_on_edge. | |
5318 | (translate_clast): Update the code generation of loops for the new | |
5319 | shape of loops. | |
5320 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
5321 | ||
5322 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
5323 | ||
5324 | Reverted the patch from 2009-03-19. | |
5325 | ||
5326 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
5327 | ||
5328 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
5329 | poly_drs vector. | |
5330 | (print_scop): Style. | |
5331 | * graphite-poly.h (poly_bb): Add drs vector. | |
5332 | (PBB_DRS): Add accessor. | |
5333 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
5334 | (build_access_matrix_with_af, build_access_matrix, | |
5335 | build_scop_data_accesses): Delete. | |
5336 | (build_poly_dr): New. | |
5337 | (build_pbb_drs, build_scop_drs): New. | |
5338 | (build_poly_scop): call build_scop_drs. | |
5339 | ||
5340 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
5341 | ||
5342 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
5343 | once per basic block. | |
5344 | ||
5345 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
5346 | ||
5347 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
5348 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
5349 | and enhanced. | |
5350 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
5351 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
5352 | (scopdet_basic_block_info): Actually define entry_block. | |
5353 | (stmt_simple_memref_p): Moved here from ... | |
5354 | ||
5355 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
5356 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
5357 | ||
5358 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
5359 | ||
45489e99 | 5360 | * gcc.dg/graphite/id-4.c: New. |
2abae5f1 SP |
5361 | |
5362 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
5363 | ||
5364 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
5365 | (register_old_and_new_names): Update the content of the map. | |
5366 | When there was already a rename_map_elt in the map at that | |
5367 | location, free it. | |
5368 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
5369 | expand_scalar_variables. | |
5370 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
5371 | of the map. When there was already a rename_map_elt in the | |
5372 | map at that location, free it. | |
5373 | (translate_clast): Pass the rename_map. Do not initialize and free | |
5374 | a rename_map per stmt_user. | |
5375 | (gloog): Initialize and free one rename_map and pass it to | |
5376 | translate_clast. | |
5377 | ||
5378 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
5379 | ||
5380 | * sese.c (expand_scalar_variables_stmt, | |
5381 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
5382 | parameter. | |
5383 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
5384 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
5385 | the gimple_stmt_iterator of the statement to be expanded. | |
5386 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
5387 | REALPART_EXPR. | |
5388 | ||
5389 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5390 | ||
5391 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
5392 | REALPART_EXPR. | |
45489e99 | 5393 | * gcc.dg/graphite/id-2.c: New. |
2abae5f1 SP |
5394 | |
5395 | * graphite-sese-to-poly.c (build_bb_loops, | |
5396 | add_value_to_dim, scan_tree_for_params_right_scev, | |
5397 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
5398 | find_params_in_bb, build_loop_iteration_domains, | |
5399 | add_conditions_to_domain): Remove subtract. | |
5400 | ||
5401 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5402 | ||
5403 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
5404 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
5405 | pbb_loop_at_index -> gbb_loop_at_index. | |
5406 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
5407 | (debug_loop_vec): Delete. | |
5408 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
5409 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
5410 | (PBB_LOOPS): Removed. | |
5411 | (PBB_BLACK_BOX): Insert cast. | |
5412 | (pbb_set_black_box): New setter. | |
5413 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
5414 | (scop_set_region, scop_set_nb_params): New. | |
5415 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
5416 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
5417 | (build_poly_scop): Use scop_set_nb_params. | |
5418 | * sese.h (gimple_bb): Add LOOPS. | |
5419 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
5420 | ||
5421 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5422 | ||
5423 | Revert previous commit. | |
5424 | ||
5425 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
5426 | ||
5427 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
5428 | (register_old_and_new_names): Update the content of the map. | |
5429 | When there was already a rename_map_elt in the map at that | |
5430 | location, free it. | |
5431 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
5432 | expand_scalar_variables. | |
5433 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
5434 | of the map. When there was already a rename_map_elt in the | |
5435 | map at that location, free it. | |
5436 | (translate_clast): Pass the rename_map. Do not initialize and free | |
5437 | a rename_map per stmt_user. | |
5438 | (gloog): Initialize and free one rename_map and pass it to | |
5439 | translate_clast. | |
5440 | ||
5441 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5442 | ||
5443 | Remove forgotten line in revert. | |
5444 | ||
5445 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
5446 | ||
5447 | Revert previous commit. | |
5448 | ||
5449 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
5450 | ||
5451 | * sese.c (register_old_and_new_names): Update the content | |
5452 | of the map. When there was already a rename_map_elt in the | |
5453 | map at that location, free it. | |
5454 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
5455 | expand_scalar_variables. | |
5456 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
5457 | of the map. When there was already a rename_map_elt in the | |
5458 | map at that location, free it. | |
5459 | (translate_clast): Pass the rename_map. Do not initialize and free | |
5460 | a rename_map per stmt_user. | |
5461 | (gloog): Initialize and free one rename_map and pass it to | |
5462 | translate_clast. | |
5463 | ||
5464 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
5465 | ||
5466 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
5467 | is never NULL. | |
5468 | ||
5469 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5470 | Sebastian Pop <sebastian.pop@amd.com> | |
5471 | ||
5472 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
5473 | of the use of ppl_Polyhedron_map_space_dimensions. | |
5474 | ||
5475 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5476 | Sebastian Pop <sebastian.pop@amd.com> | |
5477 | ||
5478 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
5479 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
5480 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
5481 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
5482 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
5483 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
5484 | pbb_nb_params): New. | |
5485 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
5486 | nb_loops_around_pbb): Adapt return types. | |
5487 | ||
5488 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5489 | ||
5490 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
5491 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
5492 | graphite-scop-detection.o, graphite-poly.o): Add | |
5493 | more headers. | |
5494 | ||
5495 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
5496 | ||
5497 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
5498 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
5499 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
5500 | ||
5501 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5502 | ||
45489e99 SP |
5503 | * gcc.dg/graphite/pr37485.c: Remove -floop-block |
5504 | * gcc.dg/graphite/pr37828.c: Same. | |
5505 | * gcc.dg/graphite/pr37684.c: Same. | |
5506 | * gcc.dg/graphite/block-0.c: Same. | |
5507 | * gcc.dg/graphite/block-1.c: Same. | |
5508 | * gcc.dg/graphite/block-2.c: Same. | |
5509 | * gcc.dg/graphite/block-3.c: Same. | |
5510 | * gcc.dg/graphite/block-4.c: Same. | |
5511 | * gcc.dg/graphite/block-5.c: Same. | |
5512 | * gcc.dg/graphite/block-6.c: Same. | |
5513 | * gfortran.dg/graphite/pr38083.f90: Same. | |
5514 | * gfortran.dg/graphite/block-1.f90: Same. | |
5515 | * gfortran.dg/graphite/block-3.f90: Same. | |
5516 | * gfortran.dg/graphite/pr37852.f90: Same. | |
5517 | * gfortran.dg/graphite/block-4.f90: Same. | |
5518 | * gfortran.dg/graphite/pr37980.f90: Same. | |
5519 | * gfortran.dg/graphite/pr38953.f90: Same. | |
5520 | * gfortran.dg/graphite/pr37857.f90: Same. | |
2abae5f1 SP |
5521 | * opts.c: Remove -floop-block from -O2. |
5522 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
5523 | -floop-strip-mine are used. | |
5524 | ||
5525 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5526 | Sebastian Pop <sebastian.pop@amd.com> | |
5527 | ||
5528 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
5529 | dimensions. | |
5530 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
5531 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
5532 | strip_mine_profitable_p, is_interchange_valid, | |
5533 | graphite_trans_bb_block, graphite_trans_loop_block, | |
5534 | graphite_trans_scop_block): Temporary removed. | |
5535 | (extend_scattering, unify_scattering_dimensions): New. | |
5536 | (print_scattering_function, graphite_read_transforms): | |
5537 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5538 | (graphite_generate_scattering_fns): Removed. | |
5539 | (apply_poly_transforms): Cleanup. | |
5540 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5541 | (schedule_to_scattering): Moved. | |
5542 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
5543 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
5544 | (pbb_nb_scattering): New. | |
5545 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5546 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
5547 | Removed. | |
5548 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
5549 | shift_poly. | |
5550 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5551 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
5552 | -> PBB_TRANSFORMED_SCATTERING. | |
5553 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
5554 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
5555 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
5556 | (check_poly_representation): Do not return bool. | |
5557 | (graphite_transform_loops): Reformat. | |
5558 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
5559 | ||
5560 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
5561 | ||
5562 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
5563 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
5564 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
5565 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
5566 | ||
5567 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5568 | ||
5569 | PR middle-end/39335 | |
5570 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
5571 | when the type precision of the induction variable should be | |
5572 | larger than the type precision of nit. | |
5573 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
5574 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
5575 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
5576 | ||
45489e99 SP |
5577 | * gcc.dg/graphite/pr39335_1.c: New. |
5578 | * gcc.dg/graphite/pr39335.c: New. | |
2abae5f1 SP |
5579 | |
5580 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5581 | ||
5582 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
5583 | SSA_NAMES not struct reduction_info. | |
5584 | ||
5585 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5586 | ||
5587 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
5588 | ||
5589 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5590 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5591 | ||
5592 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
5593 | (free_sese): Free SESE_REDUCTION_LIST. | |
5594 | * sese.h (struct sese): Add field reduction_list. | |
5595 | (SESE_REDUCTION_LIST): New. | |
5596 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
5597 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
5598 | ||
5599 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5600 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5601 | ||
5602 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
5603 | of loop_p. | |
5604 | ||
5605 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5606 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5607 | ||
5608 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
5609 | analyze_reduction_list, gather_scalar_reductions): New. | |
5610 | (loop_parallel_p): Build a reduction list containing only | |
5611 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
5612 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
5613 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
5614 | * tree-flow.h (gather_scalar_reductions): Declared. | |
5615 | ||
5616 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
5617 | ||
5618 | PR middle-end/39308 | |
5619 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
5620 | number_of_iterations_exit from a gcc_assert. | |
5621 | ||
5622 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
5623 | Jan Sjodin <jan.sjodin@amd.com> | |
5624 | ||
5625 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
5626 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
5627 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
5628 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
5629 | Don't call schedule_to_scattering. | |
5630 | * common.opt (fgraphite-write, fgraphite-read): New. | |
5631 | * graphite-poly.c: Include output.h. | |
5632 | (print_scattering_function, print_scattering_functions, | |
5633 | debug_scattering_function, debug_scattering_functions, | |
5634 | graphite_write_transforms, graphite_read_transforms, | |
5635 | graphite_generate_scattering_fns): New. | |
5636 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
5637 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
5638 | graphite_read_transforms. | |
5639 | (new_poly_bb): Initialize PBB_SCATTERING. | |
5640 | (free_poly_bb): Free PBB_SCATTERING. | |
5641 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
5642 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
5643 | (PBB_SCATTERING): New. | |
5644 | (print_scattering_function, print_scattering_functions, | |
5645 | debug_scattering_function, debug_scattering_functions): Declared. | |
5646 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
5647 | GMP values, not integers! | |
5648 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
5649 | ppl_read_polyhedron_matrix): New. | |
5650 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
5651 | debug_ppl_polyhedron_matrix, | |
5652 | ppl_read_polyhedron_matrix): Declared. | |
5653 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
5654 | ||
5655 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5656 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5657 | ||
5658 | Revert this change: | |
5659 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5660 | scalar evolutions in the scop_entry->loop_father. | |
5661 | ||
5662 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5663 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5664 | ||
5665 | * graphite.h (ref_nb_loops): Remove declaration. | |
5666 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
5667 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
5668 | debug_gbb): Moved to sese.h. | |
5669 | * sese.h: As said. | |
5670 | ||
5671 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5672 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5673 | ||
5674 | * graphite-data-ref.[ch]: Disable. | |
5675 | ||
5676 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5677 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5678 | ||
5679 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5680 | scalar evolutions in the scop_entry->loop_father. | |
5681 | ||
5682 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5683 | ||
5684 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
5685 | (graphite_cannot_represent_loop_niter): Renamed | |
5686 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
5687 | (limit_scops): build_sese_loop_nests does not return a bool. | |
5688 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
5689 | * sese.c (nb_reductions_in_loop): ... from here. | |
5690 | (graphite_loop_normal_form): ... from here. | |
5691 | (sese_record_loop): Does not fail, so does not return a bool. | |
5692 | (build_sese_loop_nests): Same. | |
5693 | * sese.h (build_sese_loop_nests): Update declaration. | |
5694 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
5695 | (build_graphite_loop_normal_form): New. | |
5696 | (gloog): Call build_graphite_loop_normal_form. | |
5697 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
5698 | build_sese_loop_nests. | |
5699 | ||
45489e99 | 5700 | * gcc.dg/graphite/id-1.c: New. |
2abae5f1 SP |
5701 | |
5702 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5703 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5704 | ||
5705 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
5706 | The SCoP detection fix is sufficient. | |
5707 | ||
5708 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5709 | ||
5710 | PR tree-optimization/39260 | |
5711 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
5712 | the basic block contains a condition with a real type. | |
5713 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
5714 | ||
5715 | * gcc.dg/graphite/pr39260.c: New. | |
5716 | ||
5717 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5718 | ||
5719 | * graphite-poly.c: Inlcude params.h. | |
5720 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
5721 | the size of a tile. | |
5722 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
5723 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
5724 | ||
5725 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5726 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5727 | ||
5728 | * graphite-scop-detection.c (dot_all_scops_1, | |
5729 | dot_all_scops): Moved here. | |
5730 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
5731 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
5732 | (graphite_transform_loops): Cleaned up. | |
5733 | * sese.c (debug_oldivs): Moved here. | |
5734 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
5735 | apply_poly_transforms. | |
5736 | (debug_loop_vec): Moved here. | |
5737 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
5738 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
5739 | find_scop_parameters, build_scop_iteration_domain, | |
5740 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
5741 | build_scop_data_accesses): Now static. | |
5742 | (build_poly_scop, check_poly_representation): New. | |
5743 | ||
5744 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5745 | ||
5746 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
5747 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
5748 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
5749 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
5750 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
5751 | scan_tree_for_params, struct irp_data, dx_record_params, | |
5752 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
5753 | build_loop_iteration_domains, add_conditions_to_domain, | |
5754 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
5755 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
5756 | build_sese_conditions, add_conditions_to_constraints, | |
5757 | build_scop_iteration_domain, build_access_matrix_with_af, | |
5758 | build_access_matrix, | |
5759 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
5760 | ||
5761 | * graphite-sese-to-poly.c: New. | |
5762 | * graphite-sese-to-poly.h: New. | |
5763 | ||
5764 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
5765 | ||
5766 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5767 | ||
5768 | * graphite.c: Split graphite code generation to a new file. | |
5769 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
5770 | max_precision_type, clast_to_gcc_expression_red, | |
5771 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
5772 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
5773 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
5774 | graphite_create_new_guard, clast_get_body_of_loop, | |
5775 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
5776 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
5777 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5778 | compute_cloog_iv_types, free_scattering, save_var_name, | |
5779 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
5780 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
5781 | print_generated_program, debug_generated_program, | |
5782 | gloog): Moved to graphite-clast-to-gimple.c. | |
5783 | ||
5784 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
5785 | ||
5786 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
5787 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
5788 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
5789 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
5790 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
5791 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
5792 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
5793 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
5794 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
5795 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
5796 | get_vdef_before_sese, sese_adjust_vphi, | |
5797 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
5798 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
5799 | is_iv, expand_scalar_variables_ssa_name, | |
5800 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
5801 | expand_scalar_variables, rename_variables, remove_condition, | |
5802 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
5803 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
5804 | default_liveout_before_guard, add_guard_exit_phis, | |
5805 | insert_guard_phis, register_old_and_new_names, | |
5806 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
5807 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
5808 | if_region_set_false_region, create_if_region_on_edge, | |
5809 | move_sese_in_condition): Moved to sese.c. | |
5810 | ||
5811 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
5812 | if_region_exit, if_region_get_condition_block, | |
5813 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
5814 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
5815 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
5816 | ivtype_map_elt, new_ivtype_map_elt, | |
5817 | recompute_all_dominators): Moved to sese.h. | |
5818 | ||
5819 | * graphite-clast-to-gimple.c: New. | |
5820 | * graphite-clast-to-gimple.h: New. | |
5821 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
5822 | * sese.c: Modified as said above. | |
5823 | * sese.h: Same. | |
5824 | ||
5825 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5826 | ||
5827 | * graphite.c: Split scop detection to a new file. | |
5828 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
5829 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
5830 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
5831 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
5832 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
5833 | find_single_entry_edge, find_single_exit_edge, | |
5834 | create_single_entry_edge, sd_region_without_exit, | |
5835 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
5836 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
5837 | Moved to graphite-scop-detection.c. | |
5838 | ||
5839 | * graphite-scop-detection.c: New. | |
5840 | * graphite-scop-detection.h: New. | |
5841 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
5842 | ||
5843 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
5844 | tree-scalar-evolution.h. | |
5845 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
5846 | build_sese_loop_nests): Moved here from graphite.c. | |
5847 | (param_index): Renamed parameter_index_in_region. | |
5848 | ||
5849 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5850 | Sebastian Pop <sebastian.pop@amd.com> | |
5851 | ||
5852 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
5853 | * gcc.dg/graphite/block-1.c: Same. | |
5854 | * gcc.dg/graphite/block-5.c: Same. | |
5855 | * gcc.dg/graphite/block-6.c: Same. | |
5856 | ||
5857 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5858 | Sebastian Pop <sebastian.pop@amd.com> | |
5859 | ||
5860 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
5861 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
5862 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
5863 | graphite-data-ref.h. | |
5864 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
5865 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
5866 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
5867 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5868 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
5869 | scop_nb_params): Moved to graphite-poly.h. | |
5870 | * graphite-data-ref.c: Same. | |
5871 | * graphite-data-ref.h: New. | |
5872 | * graphite.c: Same. | |
5873 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
5874 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
5875 | is_interchange_valid, graphite_trans_bb_block, | |
5876 | graphite_trans_loop_block, scop_max_loop_depth, | |
5877 | graphite_trans_scop_block, graphite_apply_transformations, | |
5878 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
5879 | graphite-poly.c. | |
5880 | * graphite-poly.h: New. | |
5881 | * graphite-poly.c: New. | |
5882 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
5883 | (graphite-poly.o): New rule. | |
5884 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
5885 | (DR_SCOP): Removed. | |
5886 | ||
5887 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5888 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5889 | ||
5890 | * graphite.c: Replace gb -> gbb. | |
5891 | * graphite.h: Same. | |
5892 | * graphite-data-ref.c: Same. | |
5893 | ||
5894 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5895 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5896 | ||
5897 | * Makefile.in (OBJS-commmon): Add sese.o. | |
5898 | (sese.o): New. | |
5899 | (graphite.o): Add sese.h. | |
5900 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
5901 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
5902 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
5903 | Move to sese. | |
5904 | (block_before_scop): Add missing return. | |
5905 | (new_scop, free_scop): Remove SESE data structures. | |
5906 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
5907 | find_scop_parameters, build_loop_iteration_domains, | |
5908 | add_conditions_to_domain, register_scop_liveout_renames, | |
5909 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
5910 | ||
5911 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
5912 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
5913 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
5914 | non iv scalar phi nodes. | |
5915 | (print_scop_statistics): New. | |
5916 | (graphite_transform_loops): Cleanup. | |
5917 | ||
5918 | * graphite.h: Move to sese & cleanup. | |
5919 | * sese.c: New. | |
5920 | * sese.h: New. | |
5921 | ||
5922 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5923 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5924 | ||
5925 | * graphite.c (build_scop_conditions_1): Conditions are only | |
5926 | at the end of a basic block. | |
5927 | ||
5928 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5929 | Tobias Grosser <grosser@fim.uni-passau> | |
5930 | ||
5931 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
5932 | field. | |
5933 | (GBB_ALPHA): Removed. | |
5934 | ||
5935 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5936 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5937 | ||
5938 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
5939 | GBB_DYNAMIC_SCHEDULE. | |
5940 | * graphite.c (new_graphite_bb): Same. | |
5941 | (free_graphite_bb): Same. | |
5942 | (build_scop_dynamic_schedules): Removed. | |
5943 | (graphite_transform_loops): Don't call it. | |
5944 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
5945 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
5946 | ||
5947 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5948 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5949 | ||
5950 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
5951 | (print_graphite_bb): Same. | |
5952 | (build_cloog_prog): Same. | |
5953 | ||
5954 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5955 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5956 | ||
5957 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
5958 | ||
5959 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5960 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5961 | ||
5962 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
5963 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
5964 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
5965 | ||
5966 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5967 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5968 | ||
5969 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
5970 | liveout_renames, add_params fields... | |
5971 | (struct sese): ... here. | |
5972 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
5973 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
5974 | ||
5975 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5976 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5977 | ||
5978 | * graphite.c (print_scop): Do not print the CLooG program. | |
5979 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
5980 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
5981 | (find_transform): Renamed scop_to_clast. | |
5982 | (print_generated_program, debug_generated_program): New. | |
5983 | (graphite_transform_loops): Adapt to new interface. | |
5984 | * graphite.h (struct scop): Remove program field. | |
5985 | (SCOP_PROG): Removed. | |
5986 | (print_generated_program, debug_generated_program): Declared. | |
5987 | ||
5988 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5989 | ||
5990 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
5991 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
5992 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
5993 | free_graphite_bb, build_scop_canonical_schedules, | |
5994 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
5995 | schedules are now represented using a ppl_Linear_Expression_t. | |
5996 | * graphite.h (struct graphite_bb): Same. | |
5997 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
5998 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
5999 | ||
6000 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
6001 | ||
6002 | * graphite.c: Free local memory. | |
6003 | * graphite-ppl.c: Same. | |
6004 | ||
6005 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
6006 | ||
6007 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
6008 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
6009 | swap_constraint_variables, scale_constraint_variable): Removed. | |
6010 | (graphite_trans_bb_strip_mine): Remove pong. | |
6011 | * graphite-ppl.c: Include missing header files. | |
6012 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
6013 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
6014 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
6015 | ||
6016 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
6017 | ||
6018 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
6019 | (build_scop_iteration_domain): Same. | |
6020 | ||
6021 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
6022 | ||
6023 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
6024 | ping pong. | |
6025 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
6026 | scan_tree_for_params_int): New. | |
6027 | * graphite-ppl.c (oppose_constraint): New. | |
6028 | (insert_constraint_into_matrix): Implement missing cases. | |
6029 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
6030 | ||
6031 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
6032 | ||
6033 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
6034 | use ppl_move_dimension. | |
6035 | ||
6036 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
6037 | ||
6038 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
6039 | * graphite.c: Same. | |
6040 | * graphite.h: Same. | |
6041 | * graphite-ppl.c: Same. | |
6042 | * graphite-ppl.h: Same. | |
6043 | ||
6044 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
6045 | ||
6046 | Revert last 3 commits. | |
6047 | ||
6048 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
6049 | ||
6050 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
6051 | ping pong. | |
6052 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
6053 | scan_tree_for_params_int): New. | |
6054 | * graphite-ppl.c (oppose_constraint): New. | |
6055 | (insert_constraint_into_matrix): Implement missing cases. | |
6056 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
6057 | ||
6058 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
6059 | ||
6060 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
6061 | ||
6062 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
6063 | Tobias Grosser <grosser@fim.uni-passau.de> | |
6064 | ||
6065 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
6066 | use ppl_move_dimension. | |
6067 | * graphite-ppl.c (ppl_move_dimension): New. | |
6068 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
6069 | ||
6070 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
6071 | ||
6072 | * graphite.c: Do not include cloog/cloog.h. | |
6073 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
6074 | ||
6075 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
6076 | ||
6077 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
6078 | (graphite.o): Add dependence on graphite-ppl.h. | |
6079 | (graphite-ppl.o): New. | |
6080 | (graphite-data-ref.c): Ping pong between PPL data structures | |
6081 | and matrices. | |
6082 | * graphite-ppl.c: New. | |
6083 | * graphite-ppl.h: New. | |
6084 | * graphite.c: Include graphite-ppl.h. | |
6085 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
6086 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
6087 | Ping pong between PPL data structures and matrices. | |
6088 | (new_graphite_bb): Create a PPL constraint system. | |
6089 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
6090 | (build_loop_iteration_domains): Use PPL functions. | |
6091 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
6092 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
6093 | CloogMatrix for representing the domain. | |
6094 | (scop): Remove static_schedule. | |
6095 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
6096 | ||
6097 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
6098 | ||
6099 | * graphite.c: Fix some comments. | |
6100 | ||
6101 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
6102 | ||
6103 | PR middle-end/38953 | |
6104 | * graphite.c (if_region_set_false_region): After moving a region | |
6105 | in the false branch of a condition, remove the empty dummy | |
6106 | basic block. | |
6107 | (gloog): Remove wrong fix for PR38953. | |
6108 | ||
6109 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
6110 | ||
6111 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
6112 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
6113 | register_bb_in_sese, new_sese, free_sese): Moved. | |
6114 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
6115 | outermost_loop_in_scop, build_scop_iteration_domain, | |
6116 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
6117 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
6118 | Use loop_in_sese_p instead of loop_in_scop_p. | |
6119 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
6120 | (free_scop): Do not free SCOP_BBS_B. | |
6121 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
6122 | ref_nb_loops): Moved here... | |
6123 | * graphite.h (ref_nb_loops): ... from here. | |
6124 | (struct scop): Remove bbs_b bitmap. | |
6125 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
45489e99 | 6126 | * gcc.dg/graphite/scop-19.c: New |
2abae5f1 SP |
6127 | |
6128 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
6129 | ||
6130 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
6131 | detection. | |
6132 | ||
6133 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
6134 | ||
6135 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
6136 | eq_loop_to_cloog_loop): Remove. | |
6137 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
6138 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
6139 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
6140 | ||
6141 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
6142 | ||
6143 | * opts.c (decode_options): Only add graphite options to O2 | |
6144 | if we compile with graphite enabled. | |
6145 | ||
6146 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
6147 | ||
6148 | * Merge from mainline (r143163:143684). | |
6149 | ||
6150 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
6151 | ||
6152 | * graphite.c (debug_value): Removed. | |
6153 | * graphite.h (debug_value): Removed. | |
6154 | ||
6155 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
6156 | ||
6157 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
6158 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
6159 | SSA form. pass_copy_prop should be fixed. | |
6160 | ||
6161 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
6162 | ||
6163 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
6164 | ||
6165 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
6166 | ||
6167 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
6168 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
6169 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
6170 | changed the CFG. | |
6171 | ||
6172 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
6173 | ||
6174 | * graphite.c (gloog): Return true when code gen succeeded. | |
6175 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
6176 | the code of the function did not changed. After cleanup_tree_cfg | |
6177 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
6178 | form. | |
6179 | ||
6180 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
6181 | ||
6182 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
6183 | gimple_call_lhs is NULL. | |
6184 | ||
6185 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
6186 | Tobias Grosser <tobi.grosser@amd.com> | |
6187 | ||
6188 | * graphite.c (graphite_trans_scop_block): Do not block single | |
6189 | nested loops. | |
6190 | ||
6191 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
6192 | Tobias Grosser <tobi.grosser@amd.com> | |
6193 | ||
6194 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
6195 | zero. | |
6196 | ||
6197 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
6198 | Tobias Grosser <tobi.grosser@amd.com> | |
6199 | ||
6200 | * graphite.c (compare_prefix_loops): New. | |
6201 | (build_scop_canonical_schedules): Rewritten. | |
6202 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
6203 | after build_scop_iteration_domain. | |
6204 | ||
6205 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
6206 | Tobias Grosser <tobi.grosser@amd.com> | |
6207 | ||
6208 | * graphite.c (add_conditions_to_domain): Add the loops to | |
6209 | the dimension of the iteration domain. Do copy the domain | |
6210 | only when it exists. | |
6211 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
6212 | (add_conditions_to_constraints): New. | |
6213 | (can_generate_code_stmt, can_generate_code): Removed. | |
6214 | (gloog): Do not call can_generate_code. | |
6215 | (graphite_transform_loops): Call add_conditions_to_constraints | |
6216 | after building the iteration domain. | |
6217 | ||
6218 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
6219 | Tobias Grosser <tobi.grosser@amd.com> | |
6220 | Jan Sjodin <jan.sjodin@amd.com> | |
6221 | ||
6222 | * graphite.c (scan_tree_for_params): On substractions negate | |
6223 | all the coefficients of the term. | |
6224 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
6225 | of more than two operands. | |
6226 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
6227 | (get_vdef_before_scop): Handle also the case of default definitions. | |
6228 | ||
6229 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
6230 | ||
6231 | PR middle-end/38431 | |
6232 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
6233 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
6234 | (gloog): Do not call cleanup_tree_cfg. | |
6235 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
6236 | scops have been code generated. | |
6237 | ||
6238 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
6239 | ||
6240 | * passes.c (init_optimization_passes): Schedule after | |
6241 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
6242 | ||
6243 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
6244 | ||
6245 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
6246 | Fix comment. | |
6247 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
6248 | Set the type of an expression to the type of its assign statement. | |
6249 | (expand_scalar_variables_expr): Do not pass loop_p. | |
6250 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
6251 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
6252 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
6253 | ||
6254 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
6255 | ||
6256 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
6257 | an expression to the gimple_expr_type of its assign statement. | |
6258 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
6259 | or tcc_declaration. | |
6260 | ||
6261 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
6262 | ||
6263 | PR tree-optimization/38786 | |
45489e99 | 6264 | * gcc.dg/graphite/pr38786.c: New. |
2abae5f1 SP |
6265 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from |
6266 | the SSA_NAME case of expand_scalar_variables_expr. | |
6267 | (expand_scalar_variables_expr): Also gather the scalar computation | |
6268 | used to index the memory access. | |
6269 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
6270 | the gimple_stmt_iterator where it inserts new code. | |
6271 | ||
6272 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
6273 | ||
45489e99 | 6274 | * gcc.dg/graphite/block-3.c: Fix compile error on 32bit. |
2abae5f1 SP |
6275 | |
6276 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
6277 | ||
6278 | * opts.c (decode_options): Enable flag_graphite_identity and | |
6279 | flag_loop_block in -O2 and above. | |
6280 | ||
6281 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
6282 | ||
6283 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
6284 | Fix merge problem: replace with the file from trunk. | |
6285 | ||
6286 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
6287 | ||
6288 | * Merge from mainline (r141727:143163). | |
6289 | ||
6290 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
6291 | Jan Sjodin <jan.sjodin@amd.com> | |
6292 | ||
6293 | PR tree-optimization/38559 | |
45489e99 | 6294 | * gcc.dg/graphite/pr38559.c: New. |
2abae5f1 SP |
6295 | |
6296 | * graphite.c (debug_value, copy_constraint, | |
6297 | swap_constraint_variables, scale_constraint_variable, ): New. | |
6298 | (get_lower_bound, get_upper_bound): Removed. | |
6299 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
6300 | only for constant number of iterations. Fully copy upper and | |
6301 | lower bound constraints, not only the constant part of them. | |
6302 | * graphite.h (debug_value): Declared. | |
6303 | ||
6304 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
6305 | ||
6306 | PR tree-optimization/38492 | |
6307 | PR tree-optimization/38498 | |
6308 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
6309 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
6310 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
6311 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
6312 | (graphite_loop_normal_form): Use gcc_assert. | |
6313 | (scan_tree_for_params): Use CASE_CONVERT. | |
6314 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
6315 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
6316 | Use gcc_assert. Discard scops that contain unhandled cases. | |
6317 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
6318 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
6319 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
6320 | recompute it wrongly. | |
6321 | (graphite_trans_bb_block): Same. | |
6322 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
6323 | (graphite_trans_scop_block): Do not print that the loop has been | |
6324 | blocked. | |
6325 | (graphite_transform_loops): Do not handle scops that contain condition | |
6326 | scalar phi nodes. | |
6327 | ||
45489e99 | 6328 | * gcc.dg/graphite/pr38500.c: Fixed warning as committed |
2abae5f1 | 6329 | in trunk. |
45489e99 SP |
6330 | * gcc.dg/graphite/block-0.c: Update test. |
6331 | * gcc.dg/graphite/block-1.c: Same. | |
6332 | * gcc.dg/graphite/block-2.c: Remove xfail and test for | |
2abae5f1 | 6333 | blocking. |
45489e99 SP |
6334 | * gcc.dg/graphite/block-4.c: Remove test for strip mine. |
6335 | * gcc.dg/graphite/block-3.c: New. | |
6336 | * gcc.dg/graphite/pr38498.c: New. | |
2abae5f1 SP |
6337 | |
6338 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
6339 | ||
6340 | PR tree-optimization/38510 | |
6341 | * gcc.dg/graphite/pr38510.c: New. | |
6342 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
6343 | (translate_clast): Call recompute_all_dominators before | |
6344 | graphite_verify. | |
6345 | (gloog): Call recompute_all_dominators before graphite_verify. | |
6346 | ||
6347 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
6348 | ||
6349 | PR tree-optimization/38492 | |
6350 | * graphite.c (rename_map_elt, debug_rename_elt, | |
6351 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
6352 | rename_map_elt_info, eq_rename_map_elts, | |
6353 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
6354 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
6355 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
6356 | (sese_build_livein_liveouts): New. | |
6357 | (new_sese, free_sese): New. | |
6358 | (new_scop): Call new_sese. | |
6359 | (free_scop): Call free_sese. | |
6360 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
6361 | (register_old_new_names): Renamed register_old_and_new_names. | |
6362 | (register_scop_liveout_renames, add_loop_exit_phis, | |
6363 | insert_loop_close_phis, struct igp, | |
6364 | default_liveout_before_guard, add_guard_exit_phis, | |
6365 | insert_guard_phis, copy_renames): New. | |
6366 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
6367 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
6368 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
6369 | (scop_adjust_phis_for_liveouts): New. | |
6370 | (gloog): Call scop_adjust_phis_for_liveouts. | |
6371 | ||
6372 | * graphite.h (struct sese): Documented. Added fields liveout, | |
6373 | num_ver and livein. | |
6374 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
6375 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
6376 | (struct scop): Added field liveout_renames. | |
6377 | (SCOP_LIVEOUT_RENAMES): New. | |
6378 | ||
6379 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
6380 | ||
6381 | PR tree-optimization/38409 | |
6382 | * gcc.dg/graphite/pr38409.c: New. | |
6383 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
6384 | ||
6385 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
6386 | ||
6387 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
6388 | integer_type_node. | |
6389 | (graphite_create_new_loop): Don't fold_convert the already | |
6390 | fold_convert-ed expression. | |
6391 | ||
6392 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
6393 | ||
6394 | PR tree-optimization/38446 | |
6395 | * gcc.dg/graphite/pr38446.c: New. | |
6396 | * graphite.c (register_bb_in_sese): New. | |
6397 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
6398 | looking at the bbs in the region. | |
6399 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
6400 | structure and initialize at the time of defining new scop. | |
6401 | ||
6402 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6403 | ||
6404 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
6405 | (find_params_in_bb): Do not free data refs. | |
6406 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
6407 | ||
6408 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
6409 | ||
45489e99 SP |
6410 | * gcc.dg/graphite/scop-16.c: Test only scop specific info. |
6411 | * gcc.dg/graphite/scop-17.c: Same. | |
6412 | * gcc.dg/graphite/block-5.c: New. | |
6413 | * gcc.dg/graphite/block-6.c: New. | |
6414 | * gcc.dg/graphite/pr37485.c: Clean dump file after. | |
6415 | * gcc.dg/graphite/pr37684.c: Same. | |
6416 | * gcc.dg/graphite/block-2.c: Same. | |
2abae5f1 SP |
6417 | |
6418 | * graphite.c (struct ivtype_map_elt): New. | |
6419 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
6420 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
6421 | gcc_type_for_cloog_iv): New. | |
6422 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
6423 | variable from the original loop, except for the automatically | |
6424 | generated loops, i.e., in the case of a strip-mined loop, in | |
6425 | which case there is no original loop: in that case just use | |
6426 | integer_type_node. | |
6427 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
6428 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
6429 | (clast_name_to_gcc): Accept params to be NULL. | |
6430 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
6431 | Convert to that type all the expressions built by this function. | |
6432 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
6433 | (graphite_translate_clast_equation): Compute the type of the | |
6434 | clast_equation before translating its LHS and RHS. | |
6435 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
6436 | (graphite_create_new_loop): Compute the type of the induction | |
6437 | variable before translating the lower and upper bounds and before | |
6438 | creating the induction variable. | |
6439 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
6440 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
6441 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
6442 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
6443 | compute_cloog_iv_types): New. | |
6444 | (gloog): Call compute_cloog_iv_types before starting the | |
6445 | translation of the clast. | |
6446 | ||
6447 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
6448 | (GBB_CLOOG_IV_TYPES): New. | |
6449 | (debug_ivtype_map): Declared. | |
6450 | (oldiv_for_loop): New. | |
6451 | ||
6452 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
6453 | ||
6454 | PR middle-end/38459 | |
6455 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
6456 | (param_index): Assert if parameter is not know after parameter | |
6457 | detection. | |
6458 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
6459 | (find_scop_parameters): Mark, that we have finished parameter | |
6460 | detection. | |
6461 | (graphite_transform_loops): Move condition detection before parameter | |
6462 | detection. | |
6463 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
45489e99 | 6464 | * gfortran.dg/graphite/pr38459.f90: New. |
2abae5f1 SP |
6465 | |
6466 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
6467 | ||
6468 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
6469 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
6470 | generate code. | |
6471 | ||
6472 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
6473 | ||
6474 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
6475 | (print_scop): Ditto. | |
6476 | ||
6477 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
6478 | ||
6479 | PR middle-end/38084 | |
45489e99 | 6480 | Fix gfortran.dg/graphite/id-3.f90. |
2abae5f1 SP |
6481 | * graphite.c (scopdet_basic_block_info): Fix bug that found some |
6482 | regions more than once. | |
6483 | ||
6484 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6485 | ||
45489e99 | 6486 | Fix gfortran.dg/graphite/id-4.f90. |
2abae5f1 SP |
6487 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand |
6488 | when not needed. | |
6489 | ||
6490 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6491 | ||
45489e99 | 6492 | Fix gfortran.dg/graphite/id-1.f90. |
2abae5f1 SP |
6493 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. |
6494 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
6495 | (max_precision_type): New. | |
6496 | (value_clast): Removed. | |
6497 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
6498 | Use max_precision_type and update use of gmp_cst_to_tree. | |
6499 | (graphite_translate_clast_equation): Use max_precision_type. | |
6500 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
6501 | use the type of the condition. | |
6502 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
6503 | max_precision_type of lb and ub. | |
6504 | ||
6505 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6506 | ||
6507 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
6508 | and sinfo.last. | |
6509 | ||
6510 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
6511 | ||
45489e99 SP |
6512 | * gcc.dg/graphite/pr38084.c: New. |
6513 | * gfortran.dg/graphite/id-1.f90: New. | |
6514 | * gfortran.dg/graphite/id-2.f90: New. | |
6515 | * gfortran.dg/graphite/id-3.f90: New. | |
6516 | * gfortran.dg/graphite/id-4.f90: New. | |
6517 | * gfortran.dg/graphite/pr37857.f90: New. | |
2abae5f1 SP |
6518 | |
6519 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
6520 | Jan Sjodin <jan.sjodin@amd.com> | |
6521 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6522 | ||
6523 | PR middle-end/37852 | |
6524 | PR middle-end/37883 | |
6525 | PR middle-end/37928 | |
6526 | PR middle-end/37980 | |
6527 | PR middle-end/38038 | |
6528 | PR middle-end/38039 | |
6529 | PR middle-end/38073 | |
6530 | PR middle-end/38083 | |
6531 | PR middle-end/38125 | |
6532 | ||
45489e99 SP |
6533 | * gcc.dg/graphite/pr38073.c: New. |
6534 | * gcc.dg/graphite/pr37928.c: New. | |
6535 | * gcc.dg/graphite/pr37883.c: New. | |
6536 | * gcc.dg/graphite/pr38125.c: New. | |
6537 | * gfortran.dg/graphite/pr38083.f90: New. | |
6538 | * gfortran.dg/graphite/pr37852.f90: New. | |
6539 | * gfortran.dg/graphite/pr37980.f90: New. | |
2abae5f1 | 6540 | |
45489e99 | 6541 | * gcc.dg/graphite/scop-18.c: Remove reduction, test for |
2abae5f1 SP |
6542 | the number of detected scops. Copy exact same test for loop |
6543 | blocking... | |
45489e99 | 6544 | * gcc.dg/graphite/block-1.c: Fix the number of expected |
2abae5f1 | 6545 | loops to be blocked as reductions are not handled. |
45489e99 | 6546 | * gcc.dg/graphite/block-4.c: ...here. New. |
2abae5f1 SP |
6547 | |
6548 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
6549 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
6550 | ...here. | |
6551 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
6552 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
6553 | (graphite.o-warn): Removed -Wno-error. | |
6554 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
6555 | to be a NULL pointer. Call update_stmt. Return the newly created | |
6556 | cannonical induction variable. | |
6557 | ||
6558 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
6559 | ||
6560 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
6561 | Include value-prof.h. | |
6562 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
6563 | (get_old_iv_from_ssa_name): Removed. | |
6564 | (graphite_stmt_p): New. | |
6565 | (new_graphite_bb): Test for useful statements before building a | |
6566 | graphite statement for the basic block. | |
6567 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
6568 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
6569 | reason. | |
6570 | (recompute_all_dominators, graphite_verify, | |
6571 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
6572 | (scop_record_loop): Call graphite_loop_normal_form. | |
6573 | (build_scop_loop_nests): Iterate over all the blocks of the | |
6574 | function instead of relying on the incomplete information from | |
6575 | SCOP_BBS. Return the success of the operation. | |
6576 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
6577 | (add_bb_domains): Removed. | |
6578 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
6579 | Add the iteration domain only to the basic blocks that have been | |
6580 | translated to graphite. | |
6581 | (build_scop_conditions_1): Add constraints only if the basic | |
6582 | block have been translated to graphite. | |
6583 | (build_scop_data_accesses): Completely disabled until data | |
6584 | dependence is correctly implemented. | |
6585 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
6586 | (remove_all_edges_1, remove_all_edges): Removed. | |
6587 | (get_new_name_from_old_name): New. | |
6588 | (graphite_rename_variables_in_stmt): Renamed | |
6589 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
6590 | Use replace_exp and update_stmt. | |
6591 | (is_old_iv): Renamed is_iv. | |
6592 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
6593 | Use replace_exp and update_stmt. | |
6594 | (expand_scalar_variables_expr): Same. Use the map to get the | |
6595 | new names for the renaming of induction variables and for the | |
6596 | renaming of variables after a basic block has been copied. | |
6597 | (expand_scalar_variables): Same. | |
6598 | (graphite_rename_variables): Renamed rename_variables. | |
6599 | (move_phi_nodes): Removed. | |
6600 | (get_false_edge_from_guard_bb): New. | |
6601 | (build_iv_mapping): Do not insert the induction variable of a | |
6602 | loop in the renaming iv map if the basic block does not belong | |
6603 | to that loop. | |
6604 | (register_old_new_names, graphite_copy_stmts_from_block, | |
6605 | copy_bb_and_scalar_dependences): New. | |
6606 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
6607 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
6608 | At each translation step call graphite_verify ensuring the | |
6609 | consistency of the SSA, loops and dominators information. | |
6610 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
6611 | find_vdef_for_var_1, find_vdef_for_var, | |
6612 | patch_phis_for_virtual_defs): Removed huge hack. | |
6613 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
6614 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
6615 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
6616 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
6617 | if_region_get_condition_block, if_region_set_false_region, | |
6618 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
6619 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
6620 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
6621 | rewrite_into_sese_closed_ssa): New. | |
6622 | (gloog): Remove dead code. Early return if code cannot be | |
6623 | generated. Call cleanup_tree_cfg once the scop has been code | |
6624 | generated. | |
6625 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
6626 | block loops with less than two loops. | |
6627 | (graphite_apply_transformations): Remove the call to | |
6628 | scop_remove_ignoreable_gbbs. | |
6629 | (limit_scops): When build_scop_loop_nests fails, continue on | |
6630 | the next scop. Fix open_scop.entry. | |
6631 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
6632 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
6633 | Call initialize_original_copy_tables and free_original_copy_tables | |
6634 | to be able to copy basic blocks during code generation. | |
6635 | When build_scop_loop_nests fails, continue on next scop. | |
6636 | (value_clast): New union. | |
6637 | (clast_to_gcc_expression): Fix type cast warning. | |
6638 | ||
6639 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
6640 | ||
6641 | * Merge from mainline (r140838:141727). | |
6642 | ||
6643 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6644 | ||
6645 | PR middle-end/37833 | |
6646 | ||
6647 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
6648 | ||
6649 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6650 | ||
6651 | PR middle-end/37943 | |
6652 | ||
6653 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
6654 | exits and conditions. | |
45489e99 | 6655 | * gcc.dg/graphite/pr37943.c: New. |
2abae5f1 SP |
6656 | |
6657 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6658 | ||
6659 | PR middle-end/37886 | |
6660 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
6661 | ||
6662 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6663 | ||
6664 | * doc/invoke.texi: Fix spaces. | |
6665 | ||
6666 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
6667 | ||
6668 | PR tree-optimization/37891 | |
6669 | Reverted last commit. | |
6670 | * graphite.c (create_single_entry_edge): Set | |
6671 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6672 | ||
6673 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
6674 | Mitul Thakkar <mitul.thakkar@amd.com> | |
6675 | ||
6676 | * graphite.c (create_single_entry_edge): Set | |
6677 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6678 | ||
6679 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
6680 | ||
6681 | * doc/invoke.texi: Add -fgraphite-identity. | |
6682 | * graphite.c (graphite_apply_transformations): Check for | |
6683 | -fgraphite-identity. | |
6684 | * toplev.c (process_options): Add flag_graphite_identity. | |
6685 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
6686 | ||
6687 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6688 | ||
6689 | Undo changes from 2008-10-02: | |
6690 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6691 | operand type when copying the operand to a variable of different type. | |
6692 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6693 | with the IV name after increment. | |
6694 | ||
6695 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6696 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6697 | ||
6698 | PR tree-optimization/37828 | |
45489e99 | 6699 | * gcc.dg/graphite/pr37828.c: New. |
2abae5f1 SP |
6700 | * graphite.c (graphite_trans_loop_block): Do not loop block |
6701 | single nested loops. | |
6702 | ||
6703 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
6704 | Sebastian Pop <sebastian.pop@amd.com> | |
6705 | ||
6706 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
6707 | rename_map_elt_info, eq_rename_map_elts): New. | |
6708 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
6709 | (expand_scalar_variables_expr): Change parameters. | |
6710 | (expand_scalar_variables_stmt): Same. | |
6711 | (expand_scalar_variables): Same. | |
6712 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
6713 | (build_iv_mapping): New. | |
6714 | (translate_clast): Call build_iv_mapping. | |
6715 | * graphite.h (gbb_p): New name. | |
6716 | ||
6717 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
6718 | ||
6719 | PR tree-optimization/37684 | |
6720 | * gcc.dg/graphite/pr37684.c: New. | |
6721 | * graphite.c (exclude_component_ref): New. | |
6722 | (is_simple_operand): Call exclude_component_ref. | |
6723 | ||
6724 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
6725 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6726 | ||
6727 | PR tree-optimization/37485 | |
6728 | * gcc.dg/graphite/block-2.c: New | |
6729 | * graphite.c (gmp_cst_to_tree): Moved. | |
6730 | (iv_stack_entry_is_constant): New. | |
6731 | (iv_stack_entry_is_iv): New. | |
6732 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
6733 | (loop_iv_stack_insert_constant): New. | |
6734 | (loop_iv_stack_pop): Use new datatpype. | |
6735 | (loop_iv_stack_get_iv): Same. | |
6736 | (loop_iv_stack_get_iv_from_name): Same. | |
6737 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
6738 | (loop_iv_stack_patch_for_consts): New. | |
6739 | (loop_iv_stack_remove_constants): New. | |
6740 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
6741 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
6742 | loop_iv_stack_remove_constants. | |
6743 | (gloog): Use new datatype. Redirect construction edge to end | |
6744 | block to avoid accidental deletion. | |
6745 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
6746 | iv stack entry. | |
6747 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
6748 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
6749 | ||
6750 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6751 | ||
6752 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6753 | operand type when copying the operand to a variable of different type. | |
6754 | ||
6755 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6756 | ||
6757 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6758 | with the IV name after increment. | |
6759 | ||
6760 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6761 | ||
6762 | * Merge from mainline (r140164:140838). | |
6763 | ||
6764 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6765 | ||
6766 | * graphite-data-ref.c: New. | |
6767 | * graphite.c (print_scop): Also dump the dependence graph. | |
6768 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
6769 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
6770 | (build_scop_dynamic_schedules): New. | |
6771 | (build_access_matrix_with_af): Fixed column numbering. | |
6772 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
6773 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
6774 | (struct scop): Add dep_graph field. | |
6775 | (SCOP_DEP_GRAPH): Defined. | |
6776 | (ref_nb_loops): Fixed and moved to other position. | |
6777 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
6778 | (nb_loops_around_loop_in_scop): New. | |
6779 | (graphite_dump_dependence_graph): Declared. | |
6780 | (graphite_build_rdg_all_levels): Declared. | |
6781 | (graphite_test_dependence): Declared. | |
6782 | * Makefile.in (graphite-data-ref.o): New target. | |
6783 | ||
6784 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
6785 | ||
6786 | * Merge from mainline (139870:140164). | |
6787 | ||
6788 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6789 | ||
6790 | * Merge from mainline (138275:139870). | |
45489e99 | 6791 | * gcc.dg/graphite/scop-matmult.c: XFailed as one of |
2abae5f1 SP |
6792 | the commits from trunk broke the niter detection. |
6793 | ||
6794 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6795 | ||
6796 | * graphite.c: Add more documentation. Fix formatting. | |
6797 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6798 | loop_iv_stack_debug): Moved... | |
6799 | (schedule_to_scattering): Move before use. | |
6800 | (dot_all_scops): Include in "#if 0" the code for system | |
6801 | call dotty. | |
6802 | ||
6803 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6804 | loop_iv_stack_debug): ...here. | |
6805 | ||
6806 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
6807 | ||
6808 | * tree-phinodes.c (make_phi_node): Extern. | |
6809 | (add_phi_node_to_bb): New. | |
6810 | (create_phi_node): Call add_phi_node_to_bb. | |
6811 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
6812 | (remove_statement): Handle case where stored phi was updated | |
6813 | and is no longer the same. | |
6814 | * graphite.c (is_parameter): New. | |
6815 | (is_old_iv): New. | |
6816 | (expand_scalar_variables_expr): New. | |
6817 | (expand_scalar_variables_stmt): New. | |
6818 | (expand_scalar_variables): New. | |
6819 | (move_phi_nodes): Create new phi instead of moving old one. | |
6820 | (translate_clast): Call expand_scalar_variables. | |
6821 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
6822 | (skip_phi_defs): New. | |
6823 | (collect_scop_exit_phi_args): New. | |
6824 | (patch_scop_exit_phi_args): New. | |
6825 | (gloog): Patch phis after scop. | |
6826 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
6827 | (make_phi_node): Declared. | |
6828 | ||
6829 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6830 | ||
6831 | * graphite.c (end_scop): Split the entry of the scop when it | |
6832 | is the header of the loop in which the scop is ending. | |
6833 | (build_scops_1, limit_scops): Update uses of end_scop. | |
6834 | ||
6835 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6836 | ||
6837 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
6838 | SCOP_ENTRY or SCOP_EXIT. | |
6839 | ||
6840 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6841 | ||
6842 | * graphite.c (get_construction_edge): Removed. | |
6843 | (gloog): Construction edge is the scop entry edge. | |
6844 | ||
6845 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6846 | ||
6847 | * graphite.c (can_generate_for_scop): Removed. | |
6848 | (gloog): Do not call it. | |
6849 | ||
6850 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6851 | ||
6852 | * graphite.c (new_scop): Entry of a scop is an edge. | |
6853 | Initialize SESE region. | |
6854 | (free_scop): Free SESE region. | |
6855 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
6856 | (split_difficult_bb): New, split from end_scop. | |
6857 | (end_scop): Exit of a scop is an edge. | |
6858 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
6859 | not automatically updated and thus is always wrong. | |
6860 | * graphite.h (struct sese): New. | |
6861 | (SESE_ENTRY): New. | |
6862 | (SESE_EXIT): New. | |
6863 | (struct scop): New field for a SESE region. Remove entry, exit. | |
6864 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
6865 | semantics as before. Moved comment around. | |
6866 | ||
6867 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6868 | Sebastian Pop <sebastian.pop@amd.com> | |
6869 | ||
6870 | * graphite.c (graphite_transform_loops): Always enable gloog | |
6871 | and find_transform when ENABLE_CHECKING. | |
6872 | ||
6873 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6874 | ||
6875 | * graphite.c (graphite_transform_loops): Move pretty printer | |
6876 | of SCOPs before doing any transform. Remove call to print_scops | |
6877 | and dot_all_scops_1. | |
6878 | ||
6879 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6880 | ||
6881 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
6882 | (print_graphite_bb): Same. | |
6883 | ||
6884 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6885 | ||
6886 | * graphite.c (dot_all_scops_1): Cleanup. | |
6887 | (move_scops): Fix comment. | |
6888 | ||
6889 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6890 | ||
6891 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
6892 | ||
6893 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6894 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6895 | ||
6896 | * graphite.c (build_scop_bbs): Factor up code. | |
6897 | ||
6898 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6899 | ||
6900 | * graphite.c (gloog): Update dominator info. | |
6901 | ||
6902 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6903 | ||
6904 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
6905 | ||
6906 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6907 | ||
6908 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
6909 | initialization. | |
6910 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
6911 | (translate_clast): Correct formatting. | |
6912 | * graphite.h (struct num_map): Removed. | |
6913 | (struct graphite_bb): Remove num_map field. | |
6914 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
6915 | ||
6916 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6917 | ||
6918 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
6919 | (build_scop_data_accesses): Same. | |
6920 | ||
6921 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6922 | ||
6923 | * graphite.c (build_scop_data_accesses): Don't construct | |
6924 | access matrices. Add a FIXME and an assert condition that | |
6925 | should pass when the access matrices will be needed. | |
6926 | ||
6927 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6928 | ||
6929 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
6930 | really_constant_p. | |
6931 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
6932 | Moved close by free_graphite_bb. | |
6933 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
6934 | (new_scop): Move close by free_scop. | |
6935 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
6936 | ||
6937 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
6938 | ||
6939 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
6940 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
6941 | instead of recursive call. | |
6942 | (graphite_translate_clast_equation): New. | |
6943 | (graphite_create_guard_cond_expr): New. | |
6944 | (graphite_create_new_guard): New. | |
6945 | (get_stack_index_from_iv): Removed. | |
6946 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
6947 | (get_true_edge_from_guard_bb): New. | |
6948 | (translate_clast): Handle stmt_guard in clast. | |
6949 | (get_construction_edge): Allow construction edge detection for | |
6950 | a scope entry with multiple predecessors if one predecessor is | |
6951 | the immediate dominator of scope entry. | |
6952 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
6953 | (gloog): Use correct context loop. Removed check for post dominators. | |
6954 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
6955 | ||
6956 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6957 | ||
6958 | * graphite.c (remove_dead_loops): Document better which | |
6959 | loops are removed. | |
6960 | ||
6961 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6962 | ||
6963 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
6964 | and PPLINC. | |
6965 | (graphite.o): Also depends on pointer-set.h. | |
6966 | ||
6967 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6968 | ||
6969 | * graphite.c (scop_record_loop): Fix compile warning. | |
6970 | ||
6971 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
6972 | Sebastian Pop <sebastian.pop@amd.com> | |
6973 | ||
6974 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
6975 | ||
6976 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6977 | ||
6978 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
6979 | point to the graphite_bb_p. | |
6980 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
6981 | content of bb->aux. | |
6982 | (add_bb_domains): Does not use the scop parameter. | |
6983 | (graphite_transform_loops): Clean bb->aux at the end. | |
6984 | ||
6985 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6986 | Sebastian Pop <sebastian.pop@amd.com> | |
6987 | ||
45489e99 | 6988 | * lib/target-supports.exp |
2abae5f1 SP |
6989 | (check_effective_target_fgraphite): New. |
6990 | ||
45489e99 | 6991 | * gcc.dg/graphite/graphite.exp: Early exit when |
2abae5f1 SP |
6992 | check_effective_target_fgraphite returns false. |
6993 | Set dg-do-what-default to compile. | |
6994 | (scan-graphite-dump-times): Removed. | |
45489e99 | 6995 | * gfortran.dg/graphite/graphite.exp: Same. |
2abae5f1 | 6996 | |
45489e99 | 6997 | * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". |
2abae5f1 | 6998 | Use scan-tree-dump-times instead of scan-graphite-dump-times. |
45489e99 SP |
6999 | * gcc.dg/graphite/scop-1.c: Same. |
7000 | * gcc.dg/graphite/scop-2.c: Same. | |
7001 | * gcc.dg/graphite/scop-3.c: Same. | |
7002 | * gcc.dg/graphite/scop-4.c: Same. | |
7003 | * gcc.dg/graphite/scop-5.c: Same. | |
7004 | * gcc.dg/graphite/scop-6.c: Same. | |
7005 | * gcc.dg/graphite/scop-7.c: Same. | |
7006 | * gcc.dg/graphite/scop-8.c: Same. | |
7007 | * gcc.dg/graphite/scop-9.c: Same. | |
7008 | * gcc.dg/graphite/scop-10.c: Same. | |
7009 | * gcc.dg/graphite/scop-11.c: Same. | |
7010 | * gcc.dg/graphite/scop-12.c: Same. | |
7011 | * gcc.dg/graphite/scop-13.c: Same. | |
7012 | * gcc.dg/graphite/scop-matmult.c: Same. | |
7013 | * gcc.dg/graphite/scop-14.c: Same. | |
7014 | * gcc.dg/graphite/scop-15.c: Same. | |
7015 | * gcc.dg/graphite/block-0.c: Same. | |
7016 | * gcc.dg/graphite/scop-16.c: Same. | |
7017 | * gcc.dg/graphite/block-1.c: Same. | |
7018 | * gcc.dg/graphite/scop-17.c: Same. | |
7019 | * gcc.dg/graphite/scop-18.c: Same. | |
7020 | * gfortran.dg/graphite/block-1.f90: Same. | |
7021 | * gfortran.dg/graphite/scop-1.f: Same. | |
7022 | * gfortran.dg/graphite/block-2.f: Same. | |
2abae5f1 SP |
7023 | |
7024 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7025 | ||
7026 | * graphite.c: Fix some XXX comments. | |
7027 | (build_scop_dynamic_schedules): Removed. | |
7028 | ||
7029 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7030 | ||
7031 | * graphite.h (scop_max_loop_depth): Moved... | |
7032 | * graphite.c (scop_max_loop_depth): ...here. | |
7033 | (remove_all_edges_1): New. | |
7034 | (remove_all_edges): Factored code. | |
7035 | (remove_cond_exprs): Check only the last statement for | |
7036 | a GIMPLE_COND expression. | |
7037 | ||
7038 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7039 | ||
7040 | * graphite.c (scan_tree_for_params): Early return when the | |
7041 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
7042 | (find_scop_parameters): Factor out code. | |
7043 | (graphite_trans_bb_strip_mine): Remove dead code. | |
7044 | ||
7045 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7046 | ||
7047 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
7048 | graphite_trans_bb_move_loop): Factor asserts. | |
7049 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
7050 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
7051 | ||
7052 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
7053 | ||
7054 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
7055 | create_loops_mapping_num, debug_loop_mapping_1, | |
7056 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
7057 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
7058 | graphite_loops_mapping_add_child_num, | |
7059 | graphite_loops_mapping_insert_child, | |
7060 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
7061 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
7062 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
7063 | create_num_from_index, get_num_from_index, | |
7064 | swap_loop_mapped_depth): Removed. | |
7065 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
7066 | (free_scop): Do not call free_loops_mapping. | |
7067 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
7068 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
7069 | get_loop_mapped_depth. | |
7070 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
7071 | (graphite_trans_bb_strip_mine): Same. | |
7072 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
7073 | (struct scop): Remove field loops_mapping. | |
7074 | ||
7075 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7076 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7077 | ||
7078 | * graphite.c (scop_record_loop): Factor out one level of the | |
7079 | condition by early return. | |
7080 | (build_scop_loop_nests): Format following FSF coding style. | |
7081 | (build_scop_dynamic_schedules): Factor out code. | |
7082 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
7083 | ||
7084 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7085 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7086 | ||
7087 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
7088 | assignments that are not handled as simple operands for now. | |
7089 | ||
7090 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7091 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7092 | ||
7093 | * graphite.c (build_scop_bbs): Factor up code. | |
7094 | ||
7095 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7096 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7097 | ||
7098 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
7099 | of the loop. | |
7100 | (enum gbb_type): New. Group all the GBB_* types under it. | |
7101 | (is_loop_exit): Moved... | |
7102 | (end_scop): Enable BB spliting. | |
7103 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
7104 | * cfgloop.h (is_loop_exit): Declared. | |
7105 | ||
7106 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7107 | ||
7108 | * doc/invoke.texi: Remove strides from examples containing | |
7109 | DO loops when the strides are equal to 1. | |
7110 | ||
7111 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
7112 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7113 | ||
7114 | * graphite.c (graphite_trans_scop_block): Or the result with | |
7115 | the result from graphite_trans_loop_block. | |
45489e99 SP |
7116 | * gcc.dg/graphite/block-1.c: New. |
7117 | * gfortran.dg/graphite/block-1.f90: New. | |
7118 | * gfortran.dg/graphite/block-2.f: New. | |
2abae5f1 SP |
7119 | |
7120 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7121 | ||
7122 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
7123 | and cloog_finalize. | |
7124 | ||
7125 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7126 | ||
7127 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
7128 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
7129 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
7130 | (is_simple_operand): Call stmt_simple_memref_p. | |
7131 | ||
45489e99 | 7132 | * gcc.dg/graphite/scop-matmult.c: Updated for not |
2abae5f1 SP |
7133 | using pointer arithmetic, as this is optimized by PRE and |
7134 | makes the code too difficult to analyze. | |
7135 | ||
45489e99 | 7136 | * gcc.dg/graphite/scop-18.c: Same. |
2abae5f1 SP |
7137 | |
7138 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
7139 | ||
7140 | * gdbinit.in (pgg): New. | |
7141 | ||
7142 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7143 | ||
7144 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
7145 | ||
7146 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7147 | ||
7148 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
7149 | ||
7150 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7151 | ||
7152 | * graphite.c (graphite_trans_bb_block): Remove check for | |
7153 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
7154 | Check if loop blocking is profitable for every loop, before applying | |
7155 | the changes. | |
7156 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
7157 | if flag_loop_block is set. | |
7158 | ||
7159 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
7160 | ||
7161 | * graphite.c: Add some more documentation for the loop | |
7162 | mapping. | |
7163 | ||
7164 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
7165 | ||
7166 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
7167 | * graphite.c: Format on less than 80 columns. | |
7168 | * graphite.h: Same. | |
7169 | ||
7170 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
7171 | ||
7172 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
7173 | ||
7174 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
7175 | ||
7176 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
7177 | floop-interchange): Update documentation with examples. | |
7178 | ||
7179 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
7180 | ||
7181 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
7182 | add_referenced_var. | |
7183 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
7184 | ||
7185 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
7186 | ||
7187 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
7188 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
7189 | * tree-scalar-evolution.c: Revert useless changes. | |
7190 | * tree-phinodes.c: Same. | |
7191 | * cfghooks.c: Same. | |
7192 | * vec.h: Same. | |
7193 | * tree-vectorizer.h: Same. | |
7194 | * tree-flow.h: Same. | |
7195 | * tree-cfg.c: Same. | |
7196 | * common.opt (fgraphite): Update documentation. | |
7197 | ||
7198 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
7199 | ||
7200 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
7201 | -floop-interchange): Add more text for explaining what each of these | |
7202 | flags is doing. | |
7203 | * tree-into-ssa.c (gimple_vec): Moved to... | |
7204 | * graphite.c: Include gimple.h. | |
7205 | (gimple_vec): Moved to... | |
7206 | (del_loop_to_cloog_loop): Removed. | |
7207 | (loop_affine_expr): Do not call create_data_ref when the | |
7208 | operand is a constant. | |
7209 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
7210 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
7211 | * gimple.h (gimple_vec): ... here. | |
7212 | ||
7213 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7214 | ||
7215 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
7216 | latch executions. | |
7217 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
7218 | ||
7219 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7220 | ||
7221 | * graphite.c (add_conditions_to_domain): New. | |
7222 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
7223 | (set_cloog_options): Allow to disable optimizations. | |
7224 | ||
7225 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7226 | ||
7227 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
7228 | Do not use walk_dominator_tree. | |
7229 | (find_scop_parameters): Do not use walk_dominator_tree. | |
7230 | ||
7231 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7232 | ||
7233 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
7234 | (idx_record_params): Adapt. | |
7235 | * graphite.h (scop_gimple_loop_depth): New. | |
7236 | ||
7237 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7238 | ||
7239 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
7240 | (scan_tree_for_params): Remove value_init. | |
7241 | (build_scop_context): Remove value_init. | |
7242 | (build_loop_iteration_domains): Remove value_init. | |
7243 | (schedule_to_scattering): Remove value_init. | |
7244 | (graphite_trans_bb_strip_mine): Remove value_init. | |
7245 | ||
7246 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7247 | ||
7248 | * gcc/graphite.c (limit_scops): New. | |
7249 | (graphite_transform_loops): Add limit SCoPs. | |
45489e99 SP |
7250 | * gcc.dg/graphite/scop-0.c: Update number of SCoPs. |
7251 | * gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
7252 | * gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
7253 | * gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
7254 | * gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
7255 | * gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
7256 | * gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
7257 | * gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
7258 | * gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
2abae5f1 | 7259 | Change loop numbers. |
45489e99 | 7260 | * gcc.dg/graphite/scop-17.c: Update number of SCoPs. |
2abae5f1 | 7261 | Change loop numbers. |
45489e99 SP |
7262 | * gcc.dg/graphite/scop-18.c: Update number of SCoPs. |
7263 | * gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
7264 | * gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
7265 | * gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
7266 | * gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
7267 | * gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
7268 | * gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
7269 | * gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
7270 | * gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
7271 | * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
2abae5f1 SP |
7272 | |
7273 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7274 | ||
7275 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
7276 | ||
7277 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
7278 | ||
7279 | * graphite.c (free_loops_mapping): New. | |
7280 | (stmt_simple_for_scop_p): Fix typo. | |
7281 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
7282 | broke polyhedron. | |
7283 | (free_graphite_bb): Fix some memleaks. | |
7284 | (free_scop): Fix some memleaks. | |
7285 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
7286 | (find_params_in_bb): Fix some memleaks. | |
7287 | (clast_to_gcc_expression): Fix warning. | |
7288 | ||
7289 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
7290 | ||
45489e99 SP |
7291 | * gcc.dg/graphite/scop-16.c: Fix for 32bit. |
7292 | * gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
2abae5f1 SP |
7293 | |
7294 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
7295 | ||
7296 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
7297 | Move code ifdef-ed HAVE_cloog... | |
7298 | * graphite.c: Include toplev.h. | |
7299 | ... here. | |
7300 | * Makefile.in (OBJS-common): Always build graphite.o. | |
7301 | (BACKEND): Remove @GRAPHITE@. | |
7302 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
7303 | (graphite.o): Depend on TOPLEV_H. | |
7304 | ||
7305 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
7306 | ||
7307 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
7308 | Remove typo left from polylib to ppl conversion. | |
7309 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
7310 | ||
7311 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
7312 | ||
7313 | * toplev.c (process_options): Move the graphite loop optimization | |
7314 | flags... | |
7315 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
7316 | When not configured with CLooG, print to dump_file that | |
7317 | Graphite transforms were not performed. | |
45489e99 | 7318 | * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): |
2abae5f1 | 7319 | New. |
45489e99 | 7320 | * gcc.dg/graphite/*.c: Updated all testcases to use |
2abae5f1 SP |
7321 | scan-graphite-dump-times. |
7322 | ||
7323 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
7324 | ||
7325 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
7326 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
7327 | ||
7328 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
7329 | Jan Sjodin <jan.sjodin@amd.com> | |
7330 | ||
7331 | * configure: Regenerated. | |
7332 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
7333 | * config.in (HAVE_polylib): Removed. | |
7334 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
7335 | (PPLLIBS, PPLINC): Added. | |
7336 | * graphite.c: Replace unsigned with int wherever possible. | |
7337 | Don't access Cloog's data structures, but use accessor functions. | |
7338 | Clast's stmt->type is now implemented as a vtable: change the | |
7339 | switches of stmt->type into ifs. | |
7340 | (polylib/polylibgmp.h): Don't include. | |
7341 | (initialize_dependence_polyhedron, | |
7342 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
7343 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
7344 | dump_dependence_graph): Removed until this code is cleaned up | |
7345 | or ported to Cloog. | |
7346 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
7347 | (POLYLIBINC): Renamed PPLINC. | |
7348 | ||
7349 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
7350 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7351 | Jan Sjodin <jan.sjodin@amd.com> | |
7352 | ||
7353 | Finish the merge and tuplification of graphite. | |
7354 | ||
7355 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
7356 | Jan Sjodin <jan.sjodin@amd.com> | |
7357 | ||
7358 | Partial merge from mainline (138072:138275). | |
7359 | * graphite.c still has to be tuplified. | |
7360 | ||
7361 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
7362 | ||
7363 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
7364 | (create_num_from_index): New. | |
7365 | (get_num_from_index): Also pass in the graphite BB. | |
7366 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
7367 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
7368 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
7369 | (is_interchange_valid): Return false when failing. | |
7370 | * graphite.h (struct num_map): New. | |
7371 | (struct graphite_bb): New field num_map. | |
7372 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
7373 | ||
7374 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7375 | ||
7376 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
7377 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
7378 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
7379 | {<, <=, >, >=}. | |
7380 | ||
7381 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
7382 | ||
7383 | * graphite.h (struct scop): Removed new_ivs field. | |
7384 | (SCOP_NEWIVS): Deleted. | |
7385 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
7386 | clast_to_gcc_expression, graphite_create_new_loop): | |
7387 | Removed use of new_ivs. | |
7388 | ||
7389 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
7390 | ||
7391 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
7392 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
7393 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
7394 | (get_loop_mapping_for_num, | |
7395 | graphite_loops_mapping_add_child, | |
7396 | graphite_loops_mapping_add_child_num, | |
7397 | graphite_loops_mapping_insert_child, | |
7398 | graphite_loops_mapping_parent, | |
7399 | split_loop_mapped_depth_for_num, | |
7400 | loop_mapped_depth_split_loop): New. | |
7401 | (increment_loop_mapped_depths): Removed. | |
7402 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
7403 | (new_scop): Call create_loops_mapping. | |
7404 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
7405 | (translate_clast): Pass the old loop father in parameter, and pass | |
7406 | it to get_old_iv_from_ssa_name. | |
7407 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
7408 | can_generate_code, can_generate_for_scop): New. | |
7409 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
7410 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
7411 | ||
7412 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7413 | ||
7414 | Reverted all the changes related to the streamization and | |
7415 | loop fusion. | |
7416 | These changes are now tracked in the streamization branch. | |
7417 | ||
7418 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7419 | Jan Sjodin <jan.sjodin@amd.com> | |
7420 | ||
7421 | * graphite.c (gbb_compare): Correctly constify. | |
7422 | (gbb_can_be_ignored): Indent. | |
7423 | (graphite_trans_scop_swap_1and2): Add legality check. | |
7424 | Remove dead FIXMEs. | |
7425 | ||
7426 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7427 | ||
7428 | Remove fallouts from "Reverted the Condate changes". | |
7429 | * tree.h: Remove unused decl. | |
45489e99 | 7430 | * gcc.dg/tree-checker: Same. |
2abae5f1 SP |
7431 | * timevar.def: Remove counter. |
7432 | ||
7433 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
7434 | ||
7435 | * Merge from mainline (135673:138072). | |
7436 | ||
7437 | Reverted the MIRO changes (from 2008-04-05) that are now | |
7438 | tracked in the miro branch. | |
7439 | * tree-bounds.c: Removed. | |
7440 | * tree-bounds.h: Removed. | |
7441 | ||
7442 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
7443 | are now tracked in the condate branch. | |
7444 | * tree-check.c: Removed. | |
7445 | * tree-match.c: Removed. | |
7446 | * condate.y: Removed. | |
7447 | ||
7448 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7449 | ||
7450 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
7451 | and -floop-interchange. | |
7452 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
7453 | graphite loop optimization flags is turned on. | |
7454 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
7455 | flag_loop_strip_mine and flag_loop_interchange checks before | |
7456 | optimizations. | |
7457 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
7458 | -floop-strip-mine and -floop-interchange. | |
45489e99 | 7459 | * gcc.dg/graphite/block-0.c: Add -floop-block and remove |
2abae5f1 | 7460 | -fgraphite. |
45489e99 SP |
7461 | * gcc.dg/graphite/scop-16.c: Ditto. |
7462 | * gcc.dg/graphite/scop-17.c: Ditto. | |
7463 | * gcc.dg/graphite/scop-18.c: Ditto. | |
2abae5f1 SP |
7464 | |
7465 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
7466 | Sebastian Pop <sebastian.pop@amd.com> | |
7467 | ||
7468 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
7469 | (create_empty_loop_on_edge): More fixes. | |
7470 | * tree-phinodes.c (resize_phi_node): Extern. | |
7471 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
7472 | * cfghooks.c (update_dominator_information): New split from | |
7473 | split_edge. | |
7474 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
7475 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
7476 | successor of the function entry block. | |
7477 | ||
7478 | * graphite.c: Include pointer-set.h. | |
7479 | (debug_loop_mapping, increment_loop_mapped_depths, | |
7480 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
7481 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
7482 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
7483 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
7484 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
7485 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
7486 | get_old_iv_from_ssa_name): New. | |
7487 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
7488 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
7489 | (scop_record_loop): Record old ivs. | |
7490 | (create_var_name): Removed. | |
7491 | (initialize_cloog_names): Allocate double space in case strip mine | |
7492 | applies to all loops once. | |
7493 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
7494 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
7495 | translation. | |
7496 | (graphite_create_new_loop): Pass in ivstack. | |
7497 | (remove_all_edges): Pass in the construction_edge. | |
7498 | (graphite_remove_iv): Removed. | |
7499 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
7500 | remove_cond_exprs): Rewritten. | |
7501 | (move_phi_nodes): New. | |
7502 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
7503 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
7504 | (set_cloog_options, debug_clast_stmt): New. | |
7505 | (find_transform): Use set_cloog_options. | |
7506 | (outermost_loop_layer): Removed. | |
7507 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
7508 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
7509 | mark_old_loops, remove_dead_loops): New. | |
7510 | (gloog): Rewritten. | |
7511 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
7512 | (const_column_index, get_first_matching_sign_row_index, | |
7513 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
7514 | get_upper_bound): New. | |
7515 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
7516 | ||
7517 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
7518 | (struct name_tree): Add a loop field. | |
7519 | (struct scop): Add a graphite_loops_mapping field. | |
7520 | (SCOP_LOOPS_MAPPING): New. | |
7521 | (debug_clast_stmt): Declare. | |
7522 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
7523 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
7524 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
7525 | (create_empty_loop_on_edge): Updated. | |
7526 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
7527 | rename_variables_in_bb): Declare. | |
7528 | * tree-cfg.c (remove_bb): Extern. | |
7529 | ||
45489e99 | 7530 | * gcc.dg/graphite/block-0.c: New. |
2abae5f1 SP |
7531 | |
7532 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7533 | Sebastian Pop <sebastian.pop@amd.com> | |
7534 | ||
7535 | * graphite.c (strip_mine_profitable_p): New. | |
7536 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
7537 | ||
45489e99 SP |
7538 | * gcc.dg/graphite/scop-18.c: New. |
7539 | * gcc.dg/graphite/scop-17.c: Fixed. | |
7540 | * gcc.dg/graphite/scop-16.c: Fixed. | |
2abae5f1 SP |
7541 | |
7542 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
7543 | Jan Sjodin <jan.sjodin@amd.com> | |
7544 | Sebastian Pop <sebastian.pop@amd.com> | |
7545 | ||
7546 | * graphite.c (is_interchange_valid): New. | |
7547 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
7548 | of interchange. | |
7549 | ||
7550 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
7551 | outer_most_loop, gbb_outer_most_loop_index): New. | |
7552 | ||
7553 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
7554 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
45489e99 SP |
7555 | * gcc.dg/graphite/scop-16.c: New. |
7556 | * gcc.dg/graphite/scop-17.c: New. | |
2abae5f1 SP |
7557 | |
7558 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7559 | ||
7560 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
7561 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
7562 | ||
7563 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7564 | ||
7565 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
7566 | (scopdet_info): Add. | |
7567 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
7568 | (build_scops_1): Cleanup, bugfixes. | |
7569 | (build_scops): Cleanup. | |
7570 | ||
45489e99 SP |
7571 | * gcc.dg/graphite/scop-matmult.c: Remove duplicated code. |
7572 | * gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
2abae5f1 SP |
7573 | |
7574 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7575 | ||
45489e99 | 7576 | * gfortran.dg/graphite/scop-1.f: Update to reduced test case. |
2abae5f1 | 7577 | |
45489e99 | 7578 | * gfortran.dg/graphite/graphite.exp: Use |
2abae5f1 SP |
7579 | DEFAULT_GRAPHITE_FLAGS. |
7580 | ||
45489e99 | 7581 | * gcc.dg/graphite/scop-15.c: Update to reduced test case. |
2abae5f1 SP |
7582 | |
7583 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7584 | ||
7585 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
7586 | MULT_EXPR parameter is negative. | |
7587 | ||
45489e99 | 7588 | * gfortran.dg/graphite/scop-1.f: New. |
2abae5f1 | 7589 | |
45489e99 | 7590 | * gfortran.dg/graphite/graphite.exp: New. |
2abae5f1 | 7591 | |
45489e99 | 7592 | * gcc.dg/graphite/scop-15.c: New. |
2abae5f1 SP |
7593 | |
7594 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7595 | ||
7596 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
7597 | ||
7598 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7599 | ||
7600 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
7601 | graphite_swap_loops. | |
7602 | (graphite_trans_bb_move_loop): New. | |
7603 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
7604 | (graphite_trans_bb_block): New. | |
7605 | (graphite_trans_loop_block): New. | |
7606 | (graphite_trans_scop_swap_1and2): Rename from | |
7607 | graphite_trans_swap_1and2. | |
7608 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
7609 | (graphite_trans_scop_block): New. | |
7610 | (graphite_apply_transformations): Rename from | |
7611 | graphite_transformations. | |
7612 | ||
45489e99 | 7613 | * gcc.dg/graphite/scop-matmult.c: New. |
2abae5f1 SP |
7614 | |
7615 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7616 | ||
7617 | * graphite.c (gbb_compare): New. | |
7618 | (graphite_sort_gbbs): New. | |
7619 | (gbb_can_be_ignored): New. | |
7620 | (scop_remove_ignoreable_gbbs): New. | |
7621 | (graphite_transformations): Cleanup and add | |
7622 | scop_remove_ignoreable_gbbs. | |
7623 | * lambda.h (lambda_vector_compare): New. | |
7624 | ||
7625 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
7626 | ||
7627 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
7628 | (graphite_swap_loops): int -> unsigned | |
7629 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
7630 | (graphite_transformations): New. | |
7631 | (graphite_transform_loops): Move to graphite_transformations. | |
7632 | * graphite.h (gbb_nb_loops): Return unsigned. | |
7633 | ||
7634 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7635 | ||
7636 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
7637 | the domain matrix. This makes scop-0.c work again. | |
7638 | ||
7639 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
7640 | ||
7641 | * graphite.h: Adjust copyright to GPLv3. | |
7642 | * graphite.c: Likewise. | |
7643 | (stmt_simple_memref_for_scop_p): Split out from ... | |
7644 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
7645 | and simplify. | |
7646 | (get_bb_type): Optimize. | |
7647 | (is_pred): Remove. | |
7648 | (is_bb_addable): Fix memleak, replace is_pred call with | |
7649 | single_pred. | |
7650 | (build_scops): Use current_loops. | |
7651 | (param_index): Fix memleak. | |
7652 | ||
7653 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7654 | ||
7655 | * graphite.c: Fix formatting. | |
7656 | ||
7657 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7658 | ||
7659 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
7660 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
7661 | (create_var_name, save_var_name): Newly defined functions. | |
7662 | (initialize_cloog_names): Part of the code factored out to | |
7663 | save_var_name. | |
7664 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
7665 | in clast_reduction statement. | |
7666 | (graphite_create_new_loop): Now takes a new parameter | |
7667 | for outer_loop. | |
7668 | (translate_clast): Now also takes the context_loop and bb_exit | |
7669 | parameters. Rewritten the code so that it creates a gimple code | |
7670 | inside the given context. | |
7671 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
7672 | remove_cond_expr, disconnect_cond_expr, | |
7673 | disconnect_virtual_phi_nodes): Newly defined functions. | |
7674 | * graphite.h (struct scop): added old_ivs vector. | |
7675 | SCOP_OLDIVS: New macro. | |
7676 | ||
7677 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
7678 | ||
7679 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
7680 | ||
7681 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7682 | ||
7683 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
7684 | (create_empty_loop_on_edge): Defined. | |
7685 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
7686 | instead of void. | |
7687 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
7688 | (update_dominators_in_loop): Declared as extern | |
7689 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
7690 | ||
7691 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
7692 | ||
7693 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
7694 | in SCoP domain. | |
7695 | (initialize_cloog_names): Allow changing number of loops. | |
7696 | (build_cloog_prog): Simplify. | |
7697 | (find_transform): Enable cloog option --strides. | |
7698 | (graphite_swap_loops): New. | |
7699 | (graphite_strip_mine_loop): New. | |
7700 | (graphite_trans_swap_1and2): New. | |
7701 | (graphite_trans_strip): New. | |
7702 | (graphite_transform_loops): Add graphite_trans_strip. | |
7703 | * graphite.h (scop_max_loop_depth): New. | |
7704 | ||
7705 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7706 | ||
7707 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
7708 | line. (Fixes compile) | |
7709 | ||
7710 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7711 | ||
7712 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
7713 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
7714 | (build_bb_loops): New. | |
7715 | (graphite_transform_loops): Add build_bb_loops. | |
7716 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
7717 | numbers. | |
7718 | * graphite.h (graphite_bb): Add loops. | |
7719 | (gbb_nb_loops): New. | |
7720 | (gbb_loop_at_index): New. | |
7721 | (gbb_loop_index): New. | |
7722 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
7723 | using nb_params_in_scop. | |
7724 | ||
7725 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7726 | ||
7727 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
7728 | (build_scop_canonical_schedules): Build minimized schedule. | |
7729 | (schedule_to_scattering): Adapt to minimized schedule. | |
7730 | * graphite.h (graphite_bb): Add/Update descriptions. | |
7731 | ||
7732 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
7733 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7734 | ||
7735 | * graphite.c (print_graphite_bb): Add condition printing. | |
7736 | (dump_value): New. | |
7737 | (dump_gbb_conditions): New. | |
7738 | (build_scop_conditions_1): New. | |
7739 | (build_scop_conditions): New. | |
7740 | * graphite.h (graphite_bb): Add conditions. | |
7741 | ||
7742 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7743 | ||
7744 | * graphite.c (print_graphite_bb): | |
7745 | (free_graphite_bb): New. | |
7746 | (free_scop): Free bbs. | |
7747 | (get_bb_type): Free doms. | |
7748 | (build_scop_context): Free context matrix. | |
7749 | (build_loop_iteration_domains): Remove unused code. | |
7750 | (build_cloog_prog): Free scattering function and blocklist. | |
7751 | (find_transform): Free options. | |
7752 | ||
7753 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
7754 | ||
7755 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
7756 | Remove unnecessery cloog data structures. Make a copy of the domain | |
7757 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
7758 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
7759 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
7760 | used. | |
7761 | (build_scop_iteration_domain): Remove unnecessary cloog | |
7762 | data structures. Fix memory leaks. | |
7763 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
7764 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
7765 | ||
7766 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7767 | ||
7768 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
7769 | ||
7770 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7771 | ||
7772 | * graphite.c (end_scop): Style fix. | |
7773 | (schedule_to_scattering): Style and comment fix. | |
7774 | ||
7775 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7776 | * graphite.c (print_graphite_bb): Fix definiton of | |
7777 | schedule_to_scattering. | |
7778 | (initialize_cloog_names): Change nb_scattdims to max loop | |
7779 | depth in SCoP. | |
7780 | (schedule_to_scattering): Take parameter for number of scattering | |
7781 | dimensions. | |
7782 | (build_cloog_prog): Only build as much scattering dimensions as | |
7783 | necessary. | |
7784 | ||
7785 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7786 | ||
7787 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
7788 | in polyhedron/aermod.f90. | |
7789 | ||
7790 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7791 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7792 | Harsha Jagasia <harsha.jagasia@amd.com> | |
7793 | ||
7794 | * graphite.c (is_bb_addable): Fix segfault. | |
7795 | ||
7796 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7797 | ||
7798 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
7799 | with multiple exits and conditional handling in edge cases. | |
7800 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
7801 | ||
45489e99 | 7802 | * gcc.dg/graphite/scop-14.c: New. |
2abae5f1 SP |
7803 | |
7804 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7805 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
7806 | ||
7807 | * graphite.c (is_bb_addable): Add more comments and enhance | |
7808 | readablity of the source code. Fix memory leak. | |
7809 | (is_loop_exit): Fix memory leak. | |
7810 | ||
7811 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7812 | ||
7813 | * graphite.c (first_loop_in_scop): Deleted. | |
7814 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
7815 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
7816 | all loops in the first layer. | |
7817 | ||
7818 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7819 | ||
7820 | * graphite.c (scan_tree_for_params): Change the way params are | |
7821 | added to be indepenent of the number of loops. | |
7822 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
7823 | handling. | |
7824 | (build_cloog_prog): Revert to short matrix format. | |
7825 | ||
7826 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7827 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7828 | ||
7829 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
7830 | warning. | |
7831 | ||
7832 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7833 | ||
7834 | * graphite.c (nb_data_refs_in_scop): New. | |
7835 | (graphite_transform_loops): Print more stats: number of | |
7836 | loops, basic blocks and data references per scop. | |
7837 | ||
7838 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7839 | Jan Sjodin <jan.sjodin@amd.com> | |
7840 | ||
7841 | * graphite.c (loop_affine_expr, idx_record_params, | |
7842 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
7843 | instead of instantiate_parameters. | |
7844 | ||
7845 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7846 | ||
7847 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
7848 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
7849 | cleanup. | |
7850 | ||
7851 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7852 | ||
7853 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
7854 | are contained completely in the SCoP. | |
7855 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
7856 | and the domains are fixed. | |
7857 | (build_scop_canonical_schedules): Add support for bbs not contained | |
7858 | in any SCoP. | |
7859 | ||
7860 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7861 | ||
7862 | * graphite.h (scop_contains_loop): Update comments to match | |
7863 | the actual behavior. | |
7864 | (scop_contains_loop): New. | |
7865 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
7866 | ||
7867 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7868 | ||
7869 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
7870 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
7871 | as GBB_COND_HEADER. | |
7872 | ||
7873 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7874 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7875 | ||
7876 | * graphite.c (graphite_transform_loops): Early return when | |
7877 | there are no loops in the function. | |
7878 | ||
7879 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7880 | Jan Sjodin <jan.sjodin@amd.com> | |
7881 | ||
7882 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
7883 | offset of the last loop. | |
7884 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
7885 | ||
7886 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7887 | Jan Sjodin <jan.sjodin@amd.com> | |
7888 | ||
7889 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
7890 | invariant_in_scop_p): Removed. | |
7891 | (scan_tree_for_params): Can be used with no constraint | |
7892 | matrix for gathering parameters. | |
7893 | (idx_record_params): Don't use idx_record_param, instead use | |
7894 | scan_tree_for_params. | |
7895 | (find_scop_parameters): Same. | |
7896 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
7897 | Fix the size of loop domains. | |
7898 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
7899 | (find_transform): Enable build_cloog_prog. | |
7900 | ||
7901 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7902 | Jan Sjodin <jan.sjodin@amd.com> | |
7903 | ||
7904 | * graphite.c (schedule_to_scattering): Make scattering domains | |
7905 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
7906 | ||
7907 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7908 | Jan Sjodin <jan.sjodin@amd.com> | |
7909 | ||
7910 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
7911 | translation of the scheduling function to scattering. | |
7912 | (build_cloog_prog): Call schedule_to_scattering only once. | |
7913 | * graphite.h (scop_loop_index): Do not fail for loops not | |
7914 | in the scop: return -1. | |
7915 | ||
7916 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
7917 | ||
7918 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
7919 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
7920 | (setup_cloog_loop): Export GBB_DOMAIN. | |
7921 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
7922 | able to rebuild the original control flow. | |
7923 | * graphite.h (graphite_bb): Add domain field and access macro. | |
7924 | (GBB_DOMAIN): New. | |
7925 | ||
7926 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7927 | ||
7928 | * graphite.c (debug_gbb): New. | |
7929 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
7930 | (build_scop_bbs): Reimplemented. | |
7931 | (dfs_bb_in_scop_p): Removed. | |
7932 | (build_scop_loop_nests): Reorder loops inserted in | |
7933 | SCOP_LOOP_NEST: outer loops should come first. | |
7934 | (build_scop_canonical_schedules): Reinitialize at zero | |
7935 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
7936 | that have already been parsed. | |
7937 | ||
7938 | * graphite.h (debug_gbb): Declared. | |
7939 | ||
7940 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7941 | Jan Sjodin <jan.sjodin@amd.com> | |
7942 | ||
7943 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
7944 | (graphite_loop_to_gcc_loop): Removed. | |
7945 | (remove_all_edges): New. | |
7946 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
7947 | (gloog): Remove useless code. | |
7948 | ||
7949 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7950 | ||
7951 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
7952 | loops with one or multiple exits. | |
7953 | (is_loop_exit): New. | |
7954 | (is_pred): New. | |
7955 | (is_bb_addable): Rework condition handling, now support for case | |
7956 | case statements and loops with multiple exits. | |
7957 | ||
45489e99 SP |
7958 | * gcc.dg/graphite/scop-11.c: New. |
7959 | * gcc.dg/graphite/scop-12.c: New. | |
7960 | * gcc.dg/graphite/scop-13.c: New. | |
2abae5f1 SP |
7961 | |
7962 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7963 | ||
7964 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
7965 | we have too many colors. | |
7966 | ||
7967 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
7968 | ||
7969 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
7970 | * tree-pass.h (pass_loop_fusion): Declared. | |
7971 | * tree-loop-fusion.c: New. | |
7972 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
7973 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
7974 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
7975 | * common.opt (ftree-loop-fusion): Declared. | |
7976 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
7977 | ||
7978 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
7979 | ||
7980 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
7981 | ||
7982 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
7983 | ||
7984 | * Merge from mainline (130800:135673). | |
7985 | ||
7986 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7987 | ||
7988 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
7989 | Update dominators after splitting. | |
7990 | ||
7991 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7992 | ||
7993 | * graphite.c (is_bb_addable): Return the harmful statement. | |
7994 | Factor up some code. | |
7995 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
7996 | (build_scops_1): Call end_scop. | |
7997 | ||
7998 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7999 | ||
8000 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
8001 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
8002 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
8003 | build_scops_1): Removed. | |
8004 | (build_scops_2): Renamed build_scops_1. | |
8005 | ||
8006 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
8007 | ||
8008 | * graphite.c: Fix formatting. | |
8009 | ||
8010 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
8011 | ||
8012 | * graphite.c (get_bb_type): New. | |
8013 | (move_scops): New. | |
8014 | (build_scops_2): New. | |
8015 | (is_bb_addable): New. | |
8016 | (build_scops): Switch the scop detection. | |
8017 | (build_scop_bbs): Add entry bb to scop. | |
8018 | * graphite.h (struct scop): Update comment. | |
8019 | ||
8020 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
8021 | ||
8022 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
8023 | more colors. | |
8024 | ||
8025 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
8026 | ||
45489e99 SP |
8027 | * gcc.dg/graphite/scop-1.c: Update. |
8028 | * gcc.dg/graphite/scop-2.c: Update. | |
8029 | * gcc.dg/graphite/scop-4.c: Update. | |
8030 | * gcc.dg/graphite/scop-5.c: Add. | |
8031 | * gcc.dg/graphite/scop-6.c: Add. | |
2abae5f1 SP |
8032 | |
8033 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
8034 | ||
45489e99 SP |
8035 | * gcc.dg/graphite/scop-0.c: Add. |
8036 | * gcc.dg/graphite/scop-7.c: Add. | |
8037 | * gcc.dg/graphite/scop-8.c: Add. | |
8038 | * gcc.dg/graphite/scop-9.c: Add. | |
8039 | * gcc.dg/graphite/scop-10.c: Add. | |
2abae5f1 SP |
8040 | |
8041 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
8042 | ||
8043 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
8044 | Check affine expressions depending on the outermost loop | |
8045 | instead of a scop. | |
8046 | (stmt_simple_for_scop_p): Same. | |
8047 | (harmfule_stmt_in_scop): Same. | |
8048 | ||
8049 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
8050 | ||
8051 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
8052 | mark entry and exit, that are not part of the SCoP and update HTML | |
8053 | formatting. | |
8054 | ||
8055 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
8056 | ||
8057 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
8058 | harmful_stmt_in_bb. | |
8059 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
8060 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
8061 | (all_preds_visited_p, all_succs_visited_p, | |
8062 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
8063 | scop_end_loop): New. | |
8064 | (build_scops): Do not use dfs_enumerate_from. | |
8065 | ||
45489e99 | 8066 | * gcc.dg/graphite/scop-{1,2,4}.c: Updated. |
2abae5f1 SP |
8067 | |
8068 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
8069 | ||
8070 | * graphite.c: Add comments to functions that are missing a | |
8071 | description. | |
8072 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
8073 | ||
8074 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
8075 | ||
8076 | * graphite.c (nb_params_in_scop): Moved... | |
8077 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
8078 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
8079 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
8080 | (graphite_create_iv): Return the new name of the IV. | |
8081 | (find_transform): Set options->esp and options->cpp. | |
8082 | (gloog): Comment out the invalidation of the old loop code. | |
8083 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
8084 | nb_params_in_scop. | |
8085 | ||
8086 | * graphite.h (nb_params_in_scop): ... here. | |
8087 | (scop_nb_params): Removed. | |
8088 | (loop_domain_dim): Return something even when the loop was not | |
8089 | found in the hash table: avoid ICEing on all the graphite.exp | |
8090 | testcases. | |
8091 | ||
8092 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8093 | ||
8094 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
8095 | ||
8096 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
8097 | according to nesting level. | |
8098 | (find_scop_parameters): Call instantiate_parameters. | |
8099 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
8100 | Inner loop bound can depend on outer loop induction variable. | |
8101 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
8102 | instantiate_parameters with respect to outermost_loop_in_scop. | |
8103 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
8104 | graphite.h. | |
8105 | (create_empty_loop): Function loopify should be given edge | |
8106 | probability, instead of edge frequency. Dominance relation from | |
8107 | switch_bb to loop_header. | |
8108 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
8109 | (gloog): New functionality for removing old loop. | |
8110 | (test_dependence): Factored out from build_rdg_all_levels. | |
8111 | (build_rdg_all_levels): Dependence testing factored out to | |
8112 | test_dependence function. | |
8113 | ||
8114 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
8115 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
8116 | from graphite.c | |
8117 | ||
8118 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
8119 | ||
8120 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
8121 | nb_params_in_scop): Use name_tree map instead of just a tree | |
8122 | for keeping track of the variable name associated to that tree. | |
8123 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
8124 | clast_to_gcc_expression, graphite_create_iv, | |
8125 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
8126 | graphite_stmt_to_gcc_stmt): New. | |
8127 | (gloog): Call these. | |
8128 | * graphite.h (struct name_tree): New. | |
8129 | (struct scop): Use name_tree instead of tree for params. | |
8130 | Store a vector of name_tree for new_ivs. | |
8131 | (SCOP_NEWIVS): New. | |
8132 | (scop_nb_params): Use name_tree instead of tree. | |
8133 | ||
8134 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
8135 | Sebastian Pop <sebastian.pop@amd.com> | |
8136 | ||
8137 | * tree-bounds.c: New. | |
8138 | * tree-bounds.h: New. | |
8139 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
8140 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
8141 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
8142 | flag_mudflap. | |
8143 | * gcc.c: Same. | |
8144 | * toplev.c: Same. | |
8145 | * c-cppbuiltin.c: Same. | |
8146 | * c-pragma.c: Same. | |
8147 | * common.opt: Same. | |
8148 | * varasm.c: Same. | |
8149 | * tree-outof-ssa.c: Same. | |
8150 | * c-common.c: Same. | |
8151 | * Makefile.in: Same. | |
8152 | ||
8153 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
8154 | Sebastian Pop <sebastian.pop@amd.com> | |
8155 | ||
8156 | * tree-loop-distribution.c (remaining_stmts, | |
8157 | upstream_mem_writes): Removed static variables. | |
8158 | (copy_loop_before, create_bb_after_loop, | |
8159 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
8160 | rdg_build_components, rdg_build_partitions, | |
8161 | dump_rdg_partitions): Extern. | |
8162 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
8163 | return a bool. | |
8164 | (already_processed_vertex_p, predecessor_has_mem_write, | |
8165 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
8166 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
8167 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
8168 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
8169 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
8170 | (rdg_component): Moved... | |
8171 | (build_rdg_partition_for_component): Do not aggregate components when | |
8172 | flag_streamize_loops is set. | |
8173 | (gen_sequential_loops): New. | |
8174 | (ldist_gen): Call gen_sequential_loops. | |
8175 | ||
8176 | * tree-pass.h (pass_loop_streamization): Declared. | |
8177 | ||
8178 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
8179 | basic blocks when loops structures exist. | |
8180 | ||
8181 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
8182 | ||
8183 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
8184 | ||
8185 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
8186 | eliminate_local_variables_stmt, eliminate_local_variables, | |
8187 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
8188 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
8189 | of code delimited by two edges in the CFG. | |
8190 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
8191 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
8192 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
8193 | the case of parallelisation of reductions. | |
8194 | (create_loop_fn): Extern. | |
8195 | (create_omp_parallel_region): New. | |
8196 | ||
8197 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
8198 | dump_data_reference for printing dra and drb. | |
8199 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
8200 | RDGE_RELATION. | |
8201 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
8202 | we attach dependence relations on each edge of the RDG. | |
8203 | To be fixed later. | |
8204 | ||
8205 | * tree-data-ref.h (rdg_component): ...here. | |
8206 | (struct rdg_edge): New field ddr_p relation. | |
8207 | (RDGE_RELATION): New. | |
8208 | (create_bb_after_loop, copy_loop_before, | |
8209 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
8210 | rdg_build_partitions, dump_rdg_partitions, | |
8211 | free_rdg_components): Declared. | |
8212 | ||
8213 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
8214 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
8215 | ||
8216 | * tree-loop-streamization.c: New. | |
8217 | ||
8218 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
8219 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
8220 | ||
8221 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
8222 | ||
8223 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
8224 | ||
8225 | * passes.c: Schedule pass_loop_streamization. | |
8226 | ||
8227 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8228 | ||
8229 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
8230 | update comment. | |
8231 | ||
8232 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
8233 | ||
8234 | * graphite.c (dot_all_scops): Update formatting. | |
8235 | Bbs can now be part of more than one SCoP. | |
8236 | ||
8237 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
8238 | ||
8239 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
8240 | malloc problems. | |
8241 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
8242 | * graphite.h (loop_to_cloog_loop): New. | |
8243 | ||
8244 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8245 | ||
8246 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
8247 | loop_iteration_vector_dim): New. | |
8248 | (build_access_matrix_with_af, build_access_matrix, | |
8249 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
8250 | No longer assume that all iteration domains are of the same | |
8251 | dimensionality. | |
8252 | ||
8253 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
8254 | ||
8255 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
8256 | defined in a loop at depth 0 is invariant. | |
8257 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
8258 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
8259 | be called at loop depth 0. | |
8260 | ||
8261 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
8262 | a parameter. | |
8263 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
8264 | (down_open_scop): Removed. | |
8265 | (loop_in_scop_p): Redefined. | |
8266 | (scop_affine_expr): New argument: scop. | |
8267 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
8268 | a harmful statement ending a scop. | |
8269 | (basic_block_simple_for_scop_p): New argument: scop. | |
8270 | (get_loop_start): Removed. | |
8271 | (new_scop): Initialize SCOP_LOOPS. | |
8272 | (free_scop): Free SCOP_LOOPS. | |
8273 | (succs_at_same_depth, preds_at_same_depth): New. | |
8274 | (end_scop): Test the validity of a scop. | |
8275 | (add_dominators_to_open_scops): New. | |
8276 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
8277 | Add cases for opening and closing multiple scops. | |
8278 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
8279 | depth first order. | |
8280 | (build_graphite_bb): Pass scop directly. | |
8281 | (dfs_bb_in_scop_p): New. | |
8282 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
8283 | several times. | |
8284 | (nb_loops_around_gb): Use loop_in_scop_p. | |
8285 | (schedule_to_scattering): Disabled for the moment the code computing | |
8286 | the "textual order for outer loop". | |
8287 | ||
8288 | * graphite.h (struct scop): New field loops. | |
8289 | (SCOP_LOOPS): New. | |
8290 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
8291 | ||
45489e99 | 8292 | * gcc.dg/graphite/scop-{1,...,7}.c: Updated. |
2abae5f1 SP |
8293 | |
8294 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
8295 | Sebastian Pop <sebastian.pop@amd.com> | |
8296 | ||
8297 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
8298 | * common.opt (fstreamize-loops): New. | |
8299 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
8300 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
8301 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
8302 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
8303 | ||
8304 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8305 | ||
8306 | * tree-data-ref.c (build_empty_rdg): New. | |
8307 | (build_rdg): Use it. | |
8308 | * tree-data-ref.h (build_empty_rdg): Declared. | |
8309 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
8310 | (find_vertex_for_stmt): Removed. | |
8311 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
8312 | ||
8313 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
8314 | ||
8315 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
8316 | loop tree, also delete basic blocks. | |
8317 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
8318 | processed. | |
8319 | ||
8320 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8321 | ||
8322 | * graphite.c (build_scop_alpha): Removed. | |
8323 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
8324 | and dump_dependence_graph to avoid compiler warnings. | |
8325 | ||
8326 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8327 | ||
8328 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
8329 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
8330 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
8331 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
8332 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
8333 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
8334 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
8335 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
8336 | dump_dependence_graph): New. | |
8337 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
8338 | (GBB_ALPHA): New. | |
8339 | (struct scop): New field loop2cloog_loop. | |
8340 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
8341 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
8342 | ||
8343 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8344 | ||
8345 | * graphite.c (build_graphite_bb): Fix initialization | |
8346 | of the graphite basic block. | |
8347 | ||
8348 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
8349 | ||
8350 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
8351 | loop domain matrix. Pass in the number of loops contained in the | |
8352 | constraint matrix. | |
8353 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
8354 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
8355 | loops that are not surrounding the current loop are not represented | |
8356 | in the domain constraint matrix. | |
8357 | (build_scop_iteration_domain): Initial domain constraint matrix | |
8358 | contains only the eq/ineq, cst, and scop parameters columns. | |
8359 | ||
8360 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
8361 | ||
8362 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
8363 | (print_graphite_bb): Print scattering. | |
8364 | ||
8365 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
8366 | ||
8367 | * graphite.c (initialize_cloog_names): Initialize names of | |
8368 | scattering variables. | |
8369 | ||
8370 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
8371 | ||
8372 | * graphite.c (dot_all_scops_1): Disable debug output while | |
8373 | printing graph. | |
8374 | ||
8375 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
8376 | ||
8377 | * graphite.c (find_transform): Change cloog output language to C. | |
8378 | ||
8379 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
8380 | ||
8381 | * tree-loop-distribution.c (generate_memset_zero, | |
8382 | generate_builtin, generate_code_for_partition, | |
8383 | rdg_flag_all_uses): New. | |
8384 | (rdg_flag_uses): Gather in the same partition the statements defining | |
8385 | the VUSES of the current statement. | |
8386 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
8387 | Gather in the same partition not only the stores to the same memory | |
8388 | access, but also the reads. | |
8389 | (ldist_generate_loops): Renamed ldist_gen. | |
8390 | ||
8391 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
8392 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
8393 | ||
8394 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
8395 | next pointer, don't use the inner pointer. | |
8396 | ||
8397 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8398 | ||
8399 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
8400 | (find_transform): Call dot_all_1. | |
8401 | * graphite.h (dot_all_scops): Declared. | |
8402 | ||
8403 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
8404 | ||
8405 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
8406 | (create_bb_after_loop): New. | |
8407 | (generate_loops_for_partition): Use it. | |
45489e99 | 8408 | * gfortran.dg/ldist-1.f90: New. |
2abae5f1 SP |
8409 | |
8410 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
8411 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
8412 | ||
8413 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8414 | ||
8415 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
8416 | ||
8417 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8418 | ||
8419 | * graphite.c (initialize_cloog_names): Initialize cloog | |
8420 | iterator names. | |
8421 | ||
8422 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8423 | ||
8424 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
8425 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
8426 | ||
8427 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
8428 | ||
8429 | * Fix merge problems. | |
8430 | ||
8431 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
8432 | ||
8433 | * graphite.c (setup_cloog_loop): Fix typo. | |
8434 | ||
8435 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
8436 | ||
8437 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
8438 | * tree-loop-distribution.c: Reimplemented. | |
8439 | * tree-pass.h (pass_loop_distribution): New. | |
8440 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
8441 | print_loops. | |
8442 | * graphds.h (struct graph): New field indexes. | |
8443 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
8444 | ||
8445 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
8446 | needed. | |
8447 | * tree-vectorizer.c: Same. | |
8448 | (rename_variables_in_loop): Now extern. | |
8449 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
8450 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
8451 | calling redirect_edge_and_branch_force. | |
8452 | ||
8453 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
8454 | ||
8455 | * tree-data-ref.c: Don't include tree-chrec.h. | |
8456 | (debug_data_dependence_relations): New. | |
8457 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
8458 | in the relation. | |
8459 | (same_access_functions): Moved... | |
8460 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
8461 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
8462 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
8463 | struct rdg_vertex_info, ): New. | |
8464 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
8465 | at DDR_REVERSED_P. | |
8466 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
8467 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
8468 | (stmts_from_loop): Don't save LABEL_EXPR. | |
8469 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
8470 | hash_stmt_vertex_del): New. | |
8471 | (build_rdg): Initialize rdg->indexes. | |
8472 | (free_rdg, stores_from_loop, ref_base_address, | |
8473 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
8474 | have_similar_memory_accesses_1, ref_base_address_1, | |
8475 | remove_similar_memory_refs): New. | |
8476 | ||
8477 | * tree-data-ref.h: Include tree-chrec.h. | |
8478 | (debug_data_dependence_relations): Declared. | |
8479 | (same_access_functions): ...here. Now static inline. | |
8480 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
8481 | ddr_dependence_level): New. | |
8482 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
8483 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
8484 | RDG_MEM_READS_STMT): New. | |
8485 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
8486 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
8487 | rdg_vertex_for_stmt): Declared. | |
8488 | (struct rdg_edge): New field level. | |
8489 | (RDGE_LEVEL, free_rdg): New. | |
8490 | (stores_from_loop, remove_similar_memory_refs, | |
8491 | rdg_defs_used_in_other_loops_p, | |
8492 | have_similar_memory_accesses): Declared. | |
8493 | (rdg_has_similar_memory_accesses): New. | |
8494 | ||
8495 | * lambda.h (dependence_level): New. | |
8496 | * common.opt (ftree-loop-distribution): New. | |
8497 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
8498 | (print_loop_ir): Renamed print_loops. | |
8499 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
8500 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
8501 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
8502 | (tree-loop-distribution.o): Added. | |
8503 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
8504 | (mark_virtual_ops_in_bb): New. | |
8505 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
8506 | * passes.c: Scheduled pass_loop_distribution. | |
8507 | ||
8508 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8509 | ||
8510 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
8511 | for polylib format. | |
8512 | (nb_flat_iterator): New. | |
8513 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
8514 | (build_scop_iteration_domain): Correct the number of columns for | |
8515 | polylib format. | |
8516 | ||
8517 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
8518 | ||
8519 | * Merge from mainline (129697:130800). | |
8520 | ||
8521 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
8522 | ||
8523 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
8524 | dominated by SCoP's exit. | |
8525 | (graphite_transform_loops): Compute post dominators. | |
8526 | ||
8527 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
8528 | ||
8529 | * Merge from mainline (127169:129697). | |
8530 | ||
8531 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
8532 | ||
8533 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
8534 | parameter for the basic block that contains the expression. Use | |
8535 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
8536 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
8537 | the expression. | |
8538 | * graphite.h (gbb_loop): New. | |
8539 | (GBB_LOOP): Removed. | |
8540 | ||
8541 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
8542 | ||
8543 | * Makefile.in: Fix merge problem. | |
8544 | ||
8545 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
8546 | ||
8547 | * Merge from mainline (125309:127169). | |
8548 | * tree-loop-distribution.c: Disabled. | |
8549 | ||
8550 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
8551 | ||
8552 | * Merge from mainline (r123693:125309). | |
8553 | ||
8554 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
8555 | ||
8556 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
8557 | correct_modify_p | |
8558 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
8559 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
8560 | instead of MODIFY_EXPR. | |
8561 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
8562 | and push new edges. | |
8563 | ||
8564 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
8565 | ||
8566 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
8567 | VECs for edges and vertices. | |
8568 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
8569 | (RDGV_NB_PARTITIONS): New. | |
8570 | (PRDG_NBV, PRDG_NBE): Removed. | |
8571 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
8572 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
8573 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
8574 | ||
8575 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
8576 | Sebastian Pop <sebpop@gmail.com> | |
8577 | ||
8578 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
8579 | * tree-loop-distribution.c: New file. | |
8580 | * tree-pass.h (pass_loop_distribution): Declared. | |
8581 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
8582 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
8583 | and set reversed_p. | |
8584 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
8585 | (DDR_REVERSED_P): New. | |
8586 | * common.opt (-ftree-loop-distribution): New. | |
8587 | * tree-flow.h (distribute_loops): Declared. | |
8588 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
8589 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
8590 | ||
8591 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8592 | ||
8593 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
8594 | (print_scop): Don't print when scop is NULL. | |
8595 | (build_scop_context, find_transform): Don't output to stderr. | |
8596 | ||
8597 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
8598 | ||
8599 | * tree-data-ref.c: Don't include graphite.h. | |
8600 | Comment out the code for printing data reference's scop. | |
8601 | (build_access_matrix_with_af): Moved... | |
8602 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
8603 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
8604 | (print_graphite_bb): Print basic block's schedule. | |
8605 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
8606 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
8607 | dominated and postdominated by the scop's entry and exit basic blocks. | |
8608 | (function_parameter_p): New. | |
8609 | (invariant_in_scop_p): Use function_parameter_p. | |
8610 | (new_scop, save_scop): New. | |
8611 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
8612 | save_scop. | |
8613 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
8614 | (loop_in_scop_p): New. | |
8615 | (scop_record_loop): Use loop_in_scop_p. | |
8616 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
8617 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
8618 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
8619 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
8620 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
8621 | (struct scop): Add a pointer to cloog's representation of a program. | |
8622 | ||
8623 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8624 | ||
8625 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
8626 | -ftree-checks-verbose. | |
8627 | * common.opt (flag_tree_check_verbose): Renamed | |
8628 | flag_tree_checks_verbose. | |
8629 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
8630 | ||
8631 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8632 | ||
8633 | * configure: Regenerated. | |
8634 | * config.in: Regenerated. | |
8635 | * tree-ssa-loop.c (graphite_transforms): Execute | |
8636 | graphite_transform_loops only when HAVE_cloog. | |
8637 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
8638 | * graphite.c: Include polylibgmp.h and cloog.h. | |
8639 | (graphite_transform_loops): Removed loops parameter. | |
8640 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
8641 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
8642 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
8643 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
8644 | (OBJS-common): Remove dependence on graphite.o. | |
8645 | (BACKEND): Depend on @GRAPHITE@. | |
8646 | ||
8647 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
8648 | ||
8649 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
45489e99 SP |
8650 | * gcc.dg/tree-checker/tree-checks-1.c: New. |
8651 | * gcc.dg/tree-checker/tree-checks-2.c: New. | |
8652 | * gcc.dg/tree-checker/tree-checks-3.c: New. | |
8653 | * gcc.dg/tree-checker/tree-checks-4.c: New. | |
8654 | * gcc.dg/tree-checker/tree-checks.exp: New. | |
8655 | * gcc.dg/tree-checker/condates.crp: New. | |
2abae5f1 SP |
8656 | * common.opt (ftree-checks-verbose): New. |
8657 | * tree-check.c (tree_check_warning): Move extra stderr output | |
8658 | under control of flag_tree_check_verbose. | |
8659 | ||
8660 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8661 | ||
8662 | * tree-match.c: Fix comments formatting. | |
8663 | * tree-match.h: Fix comments formatting. | |
8664 | * tree-check.c: Fix comments formatting. | |
8665 | (tree_check_init): Restructure. | |
8666 | ||
8667 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
8668 | ||
8669 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
8670 | ||
8671 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
8672 | ||
8673 | * Merge from mainline (r120733:123693). | |
8674 | ||
8675 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
8676 | ||
8677 | * condate.y: New file. | |
8678 | * tree-match.h (struct patt_info_s): New field sign. | |
8679 | (struct condate_s): New field msg. | |
8680 | (normalize_condate, name_condate, add_condate): New. | |
8681 | (conds[], condate_parse): Made extern. | |
8682 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
8683 | warning reformatted. | |
8684 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
8685 | (tree_scan): New. | |
8686 | (tree_check): Process trivial condates. | |
8687 | (read_delimited_string): Removed. | |
8688 | (print_cond): Print name and msg. | |
8689 | (conds[]): Made extern. | |
8690 | (parse_tree_check_file_once): Rewritten to use the parser in | |
8691 | condate.y. | |
8692 | Processing of option --tree_check_string moved to tree_scan(). | |
8693 | * Makefile.in: Added condate.y | |
8694 | ||
8695 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8696 | ||
8697 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
8698 | Use VECs instead of varrays. | |
8699 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
8700 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
8701 | * pretty-print.c: Include tree.h and vec.h. | |
8702 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
8703 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
8704 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
8705 | pp_free_list): Use VECs instead of varrays. | |
8706 | * pretty-print.h: Do not include varray.h. | |
8707 | (struct tree_chunk_s): Declaration moved before its use. | |
8708 | (output_buffer): Rename varray field to chunks. | |
8709 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
8710 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
8711 | save_global_holes): Use VECs instead of varrays. | |
8712 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
8713 | * tree-check.c (scan_cfg_stmts, push_node, | |
8714 | print_matching_stmt): Removed. | |
8715 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
8716 | execute_tree_check): Use VECs instead of varrays. | |
8717 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
8718 | is not available. | |
8719 | ||
8720 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8721 | ||
8722 | * Merge from mainline (r115016:120733). | |
8723 | ||
8724 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8725 | ||
8726 | * Merge from mainline (r117632:117661). | |
8727 | ||
8728 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8729 | ||
8730 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
8731 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
8732 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
8733 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
8734 | get_loop_exit_condition, analyze_evolution_in_loop, | |
8735 | analyze_initial_condition, analyze_scalar_evolution, | |
8736 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
8737 | * tree-chrec.c (chrec_apply): Use debug_p. | |
8738 | * tree-data-ref.c: Include graphite.h. | |
8739 | (dump_data_reference): Print also the access matrix. | |
8740 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
8741 | analyze_offset_expr, address_analysis, object_analysis, | |
8742 | create_data_ref, finalize_ddr_dependent, | |
8743 | non_affine_dependence_relation, analyze_ziv_subscript, | |
8744 | analyze_siv_subscript_cst_affine, | |
8745 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
8746 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
8747 | analyze_miv_subscript, analyze_overlapping_iterations, | |
8748 | build_classic_dist_vector, subscript_dependence_tester, | |
8749 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
8750 | (build_access_matrix_with_af): No longer static. | |
8751 | * tree-data-ref.h (scop_p): ... declaration here. | |
8752 | (data_reference.scop): New field. | |
8753 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
8754 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
8755 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
8756 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
8757 | (test_for_scop_bound): Use debug_p. | |
8758 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
8759 | scop_nb_params. | |
8760 | (scop_loop_index): Moved... | |
8761 | (scop_record_loop): New. | |
8762 | (build_scop_loop_nests): Use scop_record_loop. | |
8763 | (build_scop_domain): Use scop_dim_domain. | |
8764 | (build_access_matrix): Implemented. | |
8765 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
8766 | (build_graphite_bb): Initialize GBB_SCOP. | |
8767 | * graphite.h (scop_p): Moved... | |
8768 | (graphite_bb.scop): New field. | |
8769 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
8770 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
8771 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
8772 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
8773 | scop_loop_index): New. | |
8774 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
8775 | ||
8776 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
8777 | ||
8778 | * Merge from mainline (r117661:120450). | |
8779 | ||
8780 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8781 | ||
8782 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
8783 | at the first declaration outside the varying loop, instantiate as | |
8784 | far as possible. | |
8785 | * tree-chrec.c (for_each_scev_op): New. | |
8786 | * tree-chrec.h (for_each_scev_op): Declared. | |
8787 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
8788 | * tree-data-ref.c (get_references_in_stmt, | |
8789 | find_data_references_in_stmt): New, from trunk. | |
8790 | (find_data_references_in_loop): Use get_references_in_stmt | |
8791 | and find_data_references_in_loop, modified as in trunk. | |
8792 | (build_access_matrix_with_af): New. | |
8793 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
8794 | (data_ref_loc): New, as in trunk. | |
8795 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
8796 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
8797 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
8798 | idx_record_param, idx_record_params, build_access_matrix, | |
8799 | build_scop_data_accesses, build_scop_canonical_schedules, | |
8800 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
8801 | build_scop_params): New. | |
8802 | * graphite.h (graphite_bb): New. | |
8803 | (scop): Add fields static_schedule, params, loop_nest, | |
8804 | iteration_domain. | |
8805 | * lambda.h: Declare vecs of lambda_matrix. | |
8806 | * tree-flow.h (print_loop_ir_bb): Declared. | |
8807 | * tree-cfg.c (print_loop_ir_bb): New. | |
8808 | (print_loop): Use print_loop_ir_bb. | |
8809 | ||
8810 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
8811 | ||
8812 | * Merge from mainline (r115016:117632). | |
8813 | ||
8814 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
8815 | ||
8816 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
8817 | break due to a warning. | |
8818 | ||
8819 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
8820 | ||
8821 | * graphite.c (print_scops, debug_scops): New. | |
8822 | (graphite_transform): Renamed graphite_find_transform. | |
8823 | * graphite.h (debug_scops): Declared. | |
8824 | ||
8825 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
8826 | ||
8827 | * tree-match.c: Reformat following the GNU style. | |
8828 | * tree-match.h: Reformat following the GNU style. | |
8829 | * tree-pattern.h: Removed empty file. | |
8830 | * Makefile.in: Remove references to tree-pattern.h. | |
8831 | * tree-check.c: Reformat following the GNU style. | |
8832 | (execute_tree_check): Move gate condition code to... | |
8833 | (gate_tree_check): ...here. New function. | |
8834 | (pass_check): Use the gate function. | |
8835 | ||
8836 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
8837 | ||
8838 | * tree-pattern.h: New. Tree pattern matching and checking using | |
8839 | concrete syntax. | |
8840 | * tree-check.c: New. Tree/CFG checking pass. | |
8841 | * tree-match.c: New. Library for tree pattern matching. | |
8842 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
8843 | * toplev.c, flags.h: Add globals for tree-check pass. | |
8844 | * Makefile.in: Integrate the files in tree-check pass. | |
8845 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
8846 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
8847 | Introduce a "lazy" pretty-print mode. | |
8848 | * tree.c, tree.h: Add tree_name. | |
8849 | ||
8850 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
8851 | ||
8852 | * doc/invoke.texi (-fgraphite): Correct typo. | |
8853 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
8854 | use of print_loop_ir. | |
45489e99 SP |
8855 | * gcc.dg/graphite/scop-1.c: New. |
8856 | * gcc.dg/graphite/scop-2.c: New. | |
8857 | * gcc.dg/graphite/graphite.exp: New. | |
2abae5f1 SP |
8858 | * graphite.c: Include domwalk.h. |
8859 | (print_scop): Print only the entry and exit blocks. | |
8860 | (debug_scop): No longer static. | |
8861 | (affine_expr): Fix formating. Return also true when the expression is | |
8862 | constant. | |
8863 | (stmt_simple_for_scop_p): Fix formating. | |
8864 | (build_scops): Use domwalk. | |
8865 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
8866 | (graphite_transform_loops): Avoid printing on stderr. | |
8867 | * graphite.h (debug_scop): Declared. | |
8868 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
8869 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
8870 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
8871 | declarations for static functions. | |
8872 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
8873 | controlling output verbosity. | |
8874 | ||
8875 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
8876 | Plesco Alexandru <shurikx@gmail.com> | |
8877 | ||
8878 | * doc/invoke.texi (-fgraphite): Document. | |
8879 | * tree-pass.h (pass_graphite_transforms): Declared. | |
8880 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
8881 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
8882 | (pass_graphite_transforms): Defined. | |
8883 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
8884 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
8885 | * graphite.c, graphite.h: New. | |
8886 | * common.opt (fgraphite): Declared. | |
8887 | * tree-flow.h (graphite_transform_loops): Declared. | |
8888 | * Makefile.in (OBJS-common): Add graphite.o. | |
8889 | (graphite.o): New rule. | |
8890 | * passes.c (pass_graphite_transforms): Scheduled. | |
8891 |