]>
Commit | Line | Data |
---|---|---|
f06ecc4b RB |
1 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
2 | ||
3 | * graphite-poly.c (init_graphite_out_file): New. | |
4 | (init_graphite_in_file): New. | |
5 | (apply_poly_transforms): Updated to enable reading and writing of | |
6 | multiple scop files. | |
7 | * toplev.c (init_asm_output): Remove graphite in/out file initialization. | |
8 | ||
d9ae7906 SP |
9 | 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de> |
10 | ||
11 | * graphite-scop-detection.c (graphite_can_represent_scev): Remove | |
12 | redundant checks. | |
13 | ||
02315365 SP |
14 | 2010-08-12 Sebastian Pop <sebastian.pop@amd.com> |
15 | ||
16 | * graphite-clast-to-gimple.c (precision_for_value): Adjust | |
17 | computation of precision by 1. | |
18 | ||
721c8b1e RB |
19 | 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
20 | ||
21 | * graphite-cloog-util.c (openscop_read_cloog_matrix): New. | |
22 | (openscop_read_polyhedron_matrix): New. | |
23 | * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared. | |
24 | (openscop_read_N_int): Same. | |
25 | * graphite-poly.c (openscop_read_N_int): New. | |
26 | (openscop_read_one_int): New. | |
27 | (openscop_read_N_string): New. | |
28 | (openscop_read_one_string): New. | |
29 | (openscop_read_powerset_matrix): New. | |
30 | (graphite_read_transforms): Remove. | |
31 | (graphite_read_scatt): New. | |
32 | (graphite_read_scop_file): New. | |
33 | (apply_poly_transforms): Updated to call graphite_read_scop_file. | |
34 | ||
fd8bb591 AS |
35 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
36 | ||
37 | * graphite-poly.c: Change include order. | |
38 | ||
562c1b02 AS |
39 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
40 | ||
41 | * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. | |
42 | (cloog_matrix_nrows): New. | |
43 | ||
7241f8c5 RB |
44 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
45 | ||
46 | * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces | |
47 | from matrix lines. | |
48 | * graphite-poly.c (openscop_print_scattering_function_1): Same. | |
49 | (print_scattering_function_1): Same. | |
50 | (openscop_print_pbb_domain): Same. | |
51 | (openscop_print_scop_context): Same. | |
52 | (print_scop_context): Same. | |
53 | ||
d72f5037 RB |
54 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
55 | ||
56 | * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation. | |
57 | (openscop_print_pdr_polyhedron): Print pph. | |
58 | ||
9e054f1b SP |
59 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
60 | ||
61 | * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files. | |
62 | * gfortran.dg/graphite/graphite.exp: Same. | |
63 | * gcc.dg/graphite/vect-pr43423.c: New. | |
64 | ||
c6060639 SP |
65 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
66 | ||
67 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in | |
68 | priority signed types. | |
69 | ||
2c2aceeb SP |
70 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
71 | ||
72 | * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call | |
73 | to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type. | |
74 | ||
ae403f5a RB |
75 | 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
76 | ||
77 | * graphite-cloog-util.c (openscop_print_cloog_matrix): New. | |
78 | (openscop_print_polyhedron_matrix): New. | |
79 | * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared. | |
80 | * graphite-poly.c (openscop_print_pdr_polyhedron): Same. | |
81 | (openscop_print_pdr_powerset): New. | |
82 | (openscop_print_powerset_matrix): New. | |
83 | (openscop_print_scattering_function_1): New. | |
84 | (print_scattering_function): Add support for scattering names and | |
85 | OpenScop format. | |
86 | (graphite_write_transforms): Remove. | |
87 | (apply_poly_transforms): Updated to call print_scop. | |
88 | (print_pdr_access_layout): Updated to support OpenScop format. | |
89 | (print_pdr): Same. | |
90 | (openscop_print_pbb_domain): New. | |
91 | (print_pbb_body): Added a parameter to allow indicating that pbb_body is | |
92 | not provided. | |
93 | (print_pbb): Updated to call the new print_pbb_body. | |
94 | (openscop_print_scop_context): New. | |
95 | (print_scop_header): New. | |
96 | (print_scop): Updated to call print_scop_header. | |
97 | * graphite-poly.h: Document OpenScop format. | |
98 | ||
9707eeb0 SP |
99 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
100 | ||
101 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back | |
102 | the case removed in the previous patch, when the only phi argument | |
103 | is defined in the same loop as the phi node itself. Handle it | |
104 | separately from the invariant case by both propagating it outside | |
105 | the region and replacing the phi node with an assign. | |
106 | ||
974335d6 SP |
107 | 2010-07-28 Sebastian Pop <sebastian.pop@amd.com> |
108 | ||
109 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only | |
110 | constant phi nodes with one argument are is_gimple_min_invariant | |
111 | and SSA_NAME_IS_DEFAULT_DEF. | |
112 | ||
113 | * gfortran.dg/graphite/id-22.f: New. | |
114 | ||
1461761b AS |
115 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
116 | ||
85437633 AS |
117 | * graphite.c (graphite_initialize): Do not initialize |
118 | CLooG and initialize the Parma Polyhedra Library | |
119 | manually when using CLOOG_ORG. | |
120 | (graphite_finalize): Do not finalize CLooG and finalize | |
121 | the Parma Polyhedra Library manually when using CLOOG_ORG. | |
122 | * graphite-cloog-compat.h (cloog_initialize): Hide function | |
123 | when using CLOOG_ORG. | |
124 | (cloog_finalize): Same. | |
125 | ||
aa91c4cc | 126 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
85437633 | 127 | |
1461761b AS |
128 | * graphite-clast-to-gimple.c (free_scattering): Change |
129 | CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering | |
130 | (CLOOG_ORG). | |
131 | (build_cloog_prog): Same. | |
132 | * graphite-cloog-compat.h (cloog_domain): Removed. | |
133 | (cloog_scattering): New. | |
134 | (cloog_set_domain): Removed. | |
135 | (cloog_set_scattering): New. | |
136 | (cloog_next_domain): Removed. | |
137 | (cloog_next_scattering): New. | |
138 | (cloog_set_next_domain): Removed. | |
139 | (cloog_set_next_scattering): New. | |
140 | (CloogScatteringList): New. | |
141 | (CloogScattering): New. | |
142 | (cloog_scattering_free): New. | |
143 | (new_Cloog_Scattering_from_ppl_Polyhedron): New. | |
144 | * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron): | |
145 | New. | |
146 | ||
60f87855 AS |
147 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
148 | ||
149 | * graphite-clast-to-gimple.c (build_cloog_prog): Extend with | |
150 | CloogState. | |
151 | (set_cloog_options): Same. | |
152 | (print_clast_stmt): Same. | |
153 | (scop_to_clast): Same. | |
154 | (print_generated_program): Same. | |
155 | (gloog): Same. | |
156 | * graphite-clast-to-gimple.h: Include graphite-cloog-util.h. | |
157 | (scop_to_clast): Extend with CloogState. | |
158 | * graphite-cloog-util.c: Include graphite-cloog-compat.h | |
159 | (new_Cloog_Domain_from_ppl_Polyhedron): | |
160 | Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG). | |
161 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState. | |
162 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
163 | * graphite-cloog-util.h (build_cloog_prog): Same. | |
164 | * graphite-cloog-copat.h (build_cloog_prog): New. | |
165 | (CloogState): New. | |
166 | (cloog_state_malloc): New. | |
167 | (cloog_state_free): New. | |
168 | (cloog_loop_malloc): New. | |
169 | (cloog_options_malloc): New. | |
170 | (cloog_statement_alloc): New. | |
171 | (cloog_domain_from_cloog_matrix): New. | |
172 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
173 | (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
174 | ||
4431102b AS |
175 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
176 | ||
177 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter | |
178 | type of NAME now depends on used CLooG version. | |
179 | (clast_to_gcc_expression): Replace expr_* with clast_expr_*. | |
180 | (gcc_type_for_clast_expr): Same. | |
181 | (print_clast_stmt): Replace pprint with clast_pprint. | |
182 | * graphite-cloog-compat.h: Provide compatibility macros for | |
183 | CLooG Legacy. | |
184 | (clast_name_p): New. | |
185 | (clast_expr_term): New. | |
186 | (clast_expr_red): New. | |
187 | (clast_expr_bin): New. | |
188 | (clast_pprint): New. | |
189 | ||
ac3b070a AS |
190 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
191 | ||
192 | * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options | |
193 | compatible to newer CLooG releases (CLOOG_ORG). | |
194 | (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG). | |
195 | (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG). | |
196 | * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy. | |
197 | (build_cloog_prog) : New. | |
198 | (cloog_program_extract_scalars): New. | |
199 | (cloog_program_scatter): New. | |
200 | ||
2bbb190a AS |
201 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
202 | ||
203 | * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h | |
204 | conditionally (CLOOG_ORG). | |
205 | * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h. | |
206 | (cloog_statement_usr): New. | |
207 | (cloog_domain): Same. | |
208 | (cloog_set_domain): Same. | |
209 | (cloog_next_domain): Same. | |
210 | (cloog_set_next_domain): Same. | |
211 | (cloog_program_nb_scattdims): Same. | |
212 | (cloog_program_set_nb_scattdims): Same. | |
213 | (cloog_program_names): Same. | |
214 | (cloog_program_set_names): Same. | |
215 | (cloog_program_set_context): Same. | |
216 | (cloog_program_set_loop): Same. | |
217 | (cloog_program_blocklist): Same. | |
218 | (cloog_program_set_blocklist): Same. | |
219 | (cloog_program_scaldims): Same. | |
220 | (cloog_program_set_scaldims): Same. | |
221 | (cloog_names_nb_parameters): Same. | |
222 | (cloog_names_set_nb_parameters): Same. | |
223 | (cloog_names_parameters): Same. | |
224 | (cloog_names_set_parameters): Same. | |
225 | (cloog_names_set_nb_iterators): Same. | |
226 | (cloog_names_set_iterators): Same. | |
227 | (cloog_names_set_nb_scattering): Same. | |
228 | (cloog_names_set_scattering): Same. | |
229 | (cloog_statement_set_usr): Same. | |
230 | (cloog_loop_set_next): Same. | |
231 | (cloog_loop_set_domain): Same. | |
232 | (cloog_loop_set_block): Same. | |
233 | (cloog_block_list_next): Same. | |
234 | (cloog_block_list_set_next): | |
235 | (cloog_block_list_set_block): Same. | |
236 | ||
5d737345 SP |
237 | 2010-07-27 Sebastian Pop <sebastian.pop@amd.com> |
238 | ||
239 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns | |
240 | a bool. | |
241 | (rewrite_commutative_reductions_out_of_ssa_close_phi): Same. | |
242 | (rewrite_commutative_reductions_out_of_ssa_loop): Same. | |
243 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab | |
244 | when something has been changed. | |
245 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
246 | ||
247 | * gcc.dg/graphite/id-26.c: New. | |
248 | ||
ab756588 SP |
249 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
250 | ||
251 | * graphite-sese-to-poly.c (propagate_expr_outside_region): Also | |
252 | handle the case when def is in the sese region. | |
253 | (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region | |
254 | for invariant expressions. | |
255 | (rewrite_cross_bb_phi_deps): Removed. | |
256 | (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes. | |
257 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call | |
258 | rewrite_cross_bb_phi_deps. | |
259 | ||
4ee23fa8 SP |
260 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
261 | ||
262 | * graphite-sese-to-poly.c | |
263 | (rewrite_commutative_reductions_out_of_ssa_loop): Call | |
264 | scev_analyzable_p only on is_gimple_reg | |
265 | ||
266 | * gcc.dg/graphite/id-25.c: New. | |
267 | ||
1c2a7491 SP |
268 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
269 | ||
270 | * graphite-sese-to-poly.c (propagate_expr_outside_region): New. | |
271 | (rewrite_close_phi_out_of_ssa): Propagate constant values or | |
272 | parametric expressions outside the scop region. | |
273 | (rewrite_cross_bb_scalar_deps): Same. | |
274 | * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees. | |
275 | ||
276 | * gcc.dg/graphite/run-id-5.c: New. | |
277 | * gcc.dg/graphite/run-id-6.c: New. | |
278 | * gfortran.dg/graphite/id-21.f: New. | |
279 | ||
320532a8 SP |
280 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
281 | ||
282 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use | |
283 | SSA_NAME_DEF_STMT only on SSA_NAMEs. | |
284 | ||
285 | * gcc.dg/graphite/id-24.c: New. | |
286 | ||
2847388e SP |
287 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
288 | ||
289 | * tree-scalar-evolution.c (instantiate_scev_name): Do not | |
290 | instantiate default definitions. | |
291 | ||
ed941c41 VK |
292 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
293 | ||
294 | * graphite-scop-detection.c (is_valid_stmt_p): New. | |
295 | (is_valid_bb_p): New. | |
296 | ||
f4ce375d VK |
297 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
298 | Sebastian Pop <sebastian.pop@amd.com> | |
299 | ||
300 | * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p. | |
301 | (loop_exits_from_bb_p): New. | |
302 | * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p. | |
303 | (loop_exits_from_bb_p): Declared. | |
304 | * graphite-scop-detection.c (scopdet_basic_block_info): Call | |
305 | loop_exits_to_bb_p. | |
306 | ||
15d17127 VK |
307 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
308 | ||
309 | * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and | |
310 | tree-data-ref.h. | |
311 | (dot_regions_1): New. | |
312 | (dot_regions): New. | |
313 | * refined-regions.h (dot_regions): Declared. | |
314 | * Makefile.in (refined-regions.o): Update dependences. | |
315 | ||
a7d00e71 SP |
316 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
317 | ||
318 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an | |
319 | extra parameter for the region. Call scev_analyzable_p. | |
320 | (rewrite_reductions_out_of_ssa): Update call to | |
321 | rewrite_close_phi_out_of_ssa. | |
322 | (rewrite_cross_bb_phi_deps): Same. | |
323 | (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra | |
324 | parameter for the region. Call scev_analyzable_p. | |
325 | (rewrite_commutative_reductions_out_of_ssa): Update call to | |
326 | rewrite_commutative_reductions_out_of_ssa_loop. | |
327 | ||
5df5f257 SP |
328 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
329 | ||
330 | * gcc.dg/tree-ssa/pr20742.c: New. | |
331 | ||
6f23dd91 SP |
332 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
333 | ||
334 | * sese.c (rename_uses): Call unshare_expr before force_gimple_operand. | |
335 | ||
336 | * gcc.dg/graphite/id-23.c: New. | |
337 | ||
87b28340 SP |
338 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
339 | ||
340 | * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of | |
341 | SSA scalar phi nodes that can be scev_analyzable_p. | |
342 | ||
343 | * gfortran.dg/graphite/id-20.f: Adjust testcase. | |
344 | ||
3dd2dd57 SP |
345 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
346 | ||
347 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly | |
348 | handle SSA_NAME_IS_DEFAULT_DEF. | |
349 | ||
a0dd1502 SP |
350 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
351 | ||
352 | * sese.c (rename_uses): Handl unconditionally gimple_debug statements. | |
353 | ||
354 | * gcc.dg/graphite/pr42729.c: New. | |
355 | ||
8af6d9cd SP |
356 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
357 | ||
358 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special | |
359 | case non close-phi nodes with one argument. | |
360 | ||
f36fc876 SP |
361 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
362 | ||
363 | * sese.h (scev_analyzable_p): Scevs could be expressions without | |
364 | chrecs and still be scev_analyzable_p. | |
365 | ||
57fe3c87 SP |
366 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
367 | ||
368 | * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100. | |
369 | ||
a0d1afb3 SP |
370 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
371 | ||
372 | * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv. | |
373 | * cfgloop.h (struct loop): Remove single_iv field. | |
374 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed. | |
375 | (scop_canonicalize_loops): Removed. | |
376 | (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate | |
377 | over all the loop phi nodes in loop->header. | |
378 | (build_poly_scop): Remove use of scop_canonicalize_loops. | |
379 | ||
dba9acfa SP |
380 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
381 | ||
382 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also | |
383 | handle GIMPLE_CALL. | |
384 | ||
8b059232 SP |
385 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
386 | ||
387 | * tree-chrec.c (chrec_apply): Should only apply to the specified | |
388 | variable. Also handle multivariate chains of recurrences that | |
389 | satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT. | |
390 | ||
2e286fd2 SP |
391 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
392 | ||
393 | * graphite-clast-to-gimple.c (debug_clast_name_index): Removed. | |
394 | (debug_clast_name_indexes_1): Removed. | |
395 | (debug_clast_name_indexes): Removed. | |
396 | (pbb_to_depth_to_oldiv): Removed. | |
397 | (build_iv_mapping): Replace the use of rename_map with iv_map. | |
398 | (translate_clast_user): Remove uses of rename_map. Allocate and | |
399 | free iv_map. | |
400 | (translate_clast_for_loop): Remove uses of rename_map. | |
401 | (translate_clast_for): Same. | |
402 | (translate_clast_guard): Same. | |
403 | (translate_clast): Same. | |
404 | (gloog): Same. | |
405 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed. | |
406 | * graphite-sese-to-poly.c (scev_analyzable_p): Moved... | |
407 | * sese.c (set_rename): Now static. | |
408 | (rename_variables_in_stmt): Removed. | |
409 | (rename_uses): New. | |
410 | (is_parameter): Removed. | |
411 | (is_iv): Removed. | |
412 | (expand_scalar_variables_call): Removed. | |
413 | (expand_scalar_variables_ssa_name): Removed. | |
414 | (expand_scalar_variables_expr): Removed. | |
415 | (expand_scalar_variables_stmt): Removed. | |
416 | (expand_scalar_variables): Removed. | |
417 | (rename_variables): Removed. | |
418 | (remove_condition): Removed. | |
419 | (get_true_edge_from_guard_bb): Removed. | |
420 | (get_false_edge_from_guard_bb): Removed. | |
421 | (struct igp): Removed. | |
422 | (default_before_guard): Removed. | |
423 | (convert_for_phi_arg): Removed. | |
424 | (add_guard_exit_phis): Removed. | |
425 | (insert_guard_phis): Removed. | |
426 | (graphite_copy_stmts_from_block): Now also uses iv_map and a | |
427 | region. Do not copy conditions. Do not copy induction variables. | |
428 | Call rename_uses. | |
429 | (copy_bb_and_scalar_dependences): Allocate a local rename_map for | |
430 | the translated statement. Use the iv_map for the induction | |
431 | variable renaming. | |
432 | * sese.h (copy_bb_and_scalar_dependences): Update declaration. | |
433 | (set_rename): Removed declaration. | |
434 | (scev_analyzable_p): ...here. | |
435 | * tree-chrec.c (chrec_apply_map): New. | |
436 | * tree-chrec.h (chrec_apply_map): Declared. | |
437 | ||
e11d25e0 SP |
438 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
439 | ||
440 | * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call | |
441 | insert_loop_close_phis. | |
442 | * sese.c (name_defined_in_loop_p): Removed. | |
443 | (expr_defined_in_loop_p): Removed. | |
444 | (alive_after_loop): Removed. | |
445 | (close_phi_not_yet_inserted_p): Removed. | |
446 | (struct alep): Removed. | |
447 | (add_loop_exit_phis): Removed. | |
448 | (insert_loop_close_phis): Removed. | |
449 | ||
61298f69 AS |
450 | 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
451 | ||
e11d25e0 SP |
452 | * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped |
453 | condition. | |
454 | * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same. | |
61298f69 | 455 | |
7ff28cc2 SP |
456 | 2010-07-07 Sebastian Pop <sebastian.pop@amd.com> |
457 | ||
458 | * gfortran.dg/graphite/id-20.f: New. | |
459 | ||
a9c2ba8f AS |
460 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
461 | ||
462 | * graphite-cloog-util.h: Added cloog.h. | |
463 | * graphite-blocking.c: Removed cloog.h. | |
464 | * graphite-dependences.c: Same. | |
465 | * graphite-interchange.c: Same. | |
466 | * graphite-poly.c: Same. | |
467 | * graphite-ppl.c: Same. | |
468 | * graphite-scop-detection.c: Same. | |
469 | * graphite-sese-to-poly.c: | |
470 | Removed cloog.h. | |
471 | Removed graphite-clast-to-gimple.h. | |
472 | (check_poly_representation): Removed (unused). | |
473 | * graphite-sese-to-poly.h | |
474 | (check_poly_representation): Removed (unused). | |
475 | ||
0647324a AS |
476 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
477 | ||
478 | * Makefile.in | |
479 | (OBJS-common): Added graphite-cloog-util.o. | |
480 | (graphite-clast-to-gimple.o): Added graphite-cloog-util.h. | |
481 | (graphite-cloog-util.o): New. | |
482 | (graphite-ppl.o): Added graphite-cloog-util.h. | |
483 | * graphite-clast-to-gimple.c: | |
484 | Added graphite-cloog-util.h to include statements. | |
485 | * graphite-cloog-util.c: New. | |
486 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c. | |
487 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
488 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
489 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
490 | (ppl_Constrain_System_number_of_constraints): Same. | |
491 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
492 | (oppose_constraint): Same. | |
493 | (cloog_matrix_to_ppl_constraint): Same. | |
494 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
495 | (insert_constraint_into_matrix): Same. Declared static. | |
496 | * graphite-cloog-util.h: New. | |
497 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h. | |
498 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
499 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
500 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
501 | (insert_constraint_into_matrix): Same. | |
502 | * graphite-ppl.c: | |
503 | Added graphite-cloog-util.h to include statements. | |
504 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c. | |
505 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
506 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
507 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
508 | (insert_constraint_into_matrix): Same. | |
509 | (ppl_Constrain_System_number_of_constraints): Same. | |
510 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
511 | (oppose_constraint): Same. | |
512 | (cloog_matrix_to_ppl_constraint): Same. | |
513 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
514 | * graphite-ppl.h: | |
515 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to | |
516 | graphite-cloog-util.h. | |
517 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
518 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
519 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
520 | (insert_constraint_into_matrix): Removed. | |
521 | ||
589ac63c AS |
522 | 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
523 | ||
524 | * graphite-clast-to-gimple.c | |
525 | (precision_for_value): Resolve value_* calls to matching mpz_* calls. | |
526 | (precision_for_interval): Same. | |
527 | (gcc_type_for_interval): Same. | |
528 | (compute_type_for_level): Same. | |
529 | * graphite-interchange.c | |
530 | (lst_interchange_profitable_p): Same. | |
531 | * graphite-poly.c | |
532 | (psct_scattering_dim_for_loop_depth): Same. | |
533 | * graphite-ppl.c | |
534 | (ppl_max_for_le_pointset): Same. | |
535 | (ppl_min_for_le_pointset): Same. | |
536 | ||
3e40cb77 VK |
537 | 2010-06-25 Vladimir Kargov <kargov@gmail.com> |
538 | ||
539 | * refined-regions.c (bb_index_compare): New. | |
540 | (get_bbs_in_region): New. | |
541 | (print_bbs_in_region): New. | |
542 | (print_refined_region): Add an argument that allows to print | |
543 | all basic blocks contained in regions. | |
544 | (debug_refined_region): Update call to print_refined_region. | |
545 | * refined-regions.h (print_refined_region): Update declaration. | |
546 | (get_bbs_in_region): Declared. | |
547 | * graphite-scop-detection.c (build_scops_new): Print the refined | |
548 | region tree into the Grahite dump file. | |
549 | ||
d3e7b889 SP |
550 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
551 | ||
552 | * graphite-sese-to-poly.c (rewrite_degenerate_phi): New. | |
553 | (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result. | |
554 | ||
aedede66 SP |
555 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
556 | ||
557 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call | |
558 | rewrite_close_phi_out_of_ssa. | |
559 | ||
560 | * gcc.dg/graphite/id-22.c: New. | |
561 | ||
f2c51113 SP |
562 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
563 | ||
564 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code. | |
565 | ||
32e68db9 SP |
566 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
567 | ||
568 | * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with | |
569 | rename_map. | |
570 | * sese.c (debug_rename_map): Same. | |
571 | (get_rename): Same. | |
572 | (set_rename): Same. | |
573 | (rename_variables_in_stmt): Same. | |
574 | (expand_scalar_variables_call): Same. | |
575 | (expand_scalar_variables_ssa_name): Same. | |
576 | (expand_scalar_variables_expr): Same. | |
577 | (expand_scalar_variables_stmt): Same. | |
578 | (expand_scalar_variables): Same. | |
579 | (rename_variables): Same. | |
580 | (graphite_copy_stmts_from_block): Same. | |
581 | (copy_bb_and_scalar_dependences): Same. | |
582 | ||
8b164754 SP |
583 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
584 | ||
585 | * graphite-clast-to-gimple.c (copy_renames): Removed. | |
586 | (translate_clast_for): Do not call copy_renames. | |
587 | (translate_clast_guard): Same. | |
588 | ||
9773d730 SP |
589 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
590 | ||
591 | * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up. | |
592 | (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps. | |
593 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps | |
594 | before rewrite_cross_bb_scalar_deps. | |
595 | ||
cc588970 SP |
596 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
597 | ||
598 | * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa): | |
599 | Early return in when flag_associative_math is not set. | |
600 | ||
3d125479 SP |
601 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
602 | ||
603 | * gcc.dg/graphite/run-id-2.c: Call abort. | |
604 | ||
4aa9a167 SP |
605 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
606 | ||
607 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out | |
608 | of SSA copies on edges except for loop->latch. | |
609 | ||
ee646fc6 SP |
610 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
611 | ||
612 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
613 | Split out of rewrite_reductions_out_of_ssa. | |
614 | * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
615 | Declared. | |
616 | * graphite.c (graphite_transform_loops): Call it. | |
617 | ||
6a7441f5 SP |
618 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
619 | ||
620 | * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. | |
621 | ||
d4332d00 SP |
622 | 2010-06-15 Sebastian Pop <sebastian.pop@amd.com> |
623 | ||
624 | * passes.c (init_optimization_passes): Add pass_graphite. | |
625 | Schedule a pass_copy_prop before pass_graphite_transforms. | |
626 | * timevar.def (TV_GRAPHITE): Declared. | |
627 | * tree-pass.h (pass_graphite): Declared. | |
628 | * tree-ssa-loop.c (pass_graphite): New. | |
629 | ||
630 | * gcc.dg/graphite/id-20.c: New. | |
631 | ||
14d0e129 SP |
632 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
633 | ||
634 | * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter. | |
635 | Remove calls to rename_nb_iterations and rename_sese_parameters. | |
636 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
637 | * graphite.c (graphite_transform_loops): Update call to gloog. | |
638 | * sese.c (rename_variables_in_expr): Removed. | |
639 | (rename_nb_iterations): Removed. | |
640 | (rename_sese_parameters): Removed. | |
641 | * sese.h (rename_nb_iterations): Removed. | |
642 | (rename_sese_parameters): Removed. | |
643 | ||
d1ba0721 SP |
644 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
645 | ||
646 | * graphite-clast-to-gimple.c (gloog): Remove call to | |
647 | sese_adjust_liveout_phis. | |
648 | * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an | |
649 | SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps. | |
650 | (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call | |
651 | rewrite_phi_out_of_ssa. | |
652 | * sese.c (get_vdef_before_sese): Removed. | |
653 | (sese_adjust_vphi): Removed. | |
654 | (sese_adjust_liveout_phis): Removed. | |
655 | * sese.h (sese_adjust_liveout_phis): Removed. | |
656 | ||
5fed5769 SP |
657 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
658 | ||
659 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra | |
660 | argument for the place after which to insert the out of SSA copy. | |
661 | (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy. | |
662 | (rewrite_phi_out_of_ssa): Same. | |
663 | (rewrite_cross_bb_scalar_deps): Same. | |
664 | (insert_copyout): Removed. | |
665 | (insert_copyin): Removed. | |
666 | (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and | |
667 | insert_out_of_ssa_copy_on_edge instead of insert_copyout and | |
668 | insert_copyin. | |
669 | ||
3a7086cc SP |
670 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
671 | ||
672 | * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore. | |
673 | (rewrite_reductions_out_of_ssa): Same. | |
674 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
675 | (build_poly_scop): Do not call these functions. | |
676 | * graphite-sese-to-poly.h (build_poly_scop): Declared. | |
677 | (rewrite_reductions_out_of_ssa): Declared. | |
678 | (rewrite_commutative_reductions_out_of_ssa): Declared. | |
679 | * graphite.c (graphite_transform_loops): Call on every scop | |
680 | rewrite_commutative_reductions_out_of_ssa before calling | |
681 | rewrite_reductions_out_of_ssa and build_scop_bbs. | |
682 | ||
61ca46ce SP |
683 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
684 | ||
685 | * graphite-dependences.c (dot_deps): Make system call to dotty run | |
686 | in background. | |
687 | (dot_deps_stmt): Same. | |
688 | * graphite-poly.c (dot_lst): Same. | |
689 | ||
f5f50480 SP |
690 | 2010-06-11 Sebastian Pop <sebastian.pop@amd.com> |
691 | ||
692 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass | |
693 | old_type in parameter. | |
694 | (gcc_type_for_value): Update call to gcc_type_for_interval. | |
695 | (compute_type_for_level_1): Renamed compute_type_for_level. | |
696 | Update call to gcc_type_for_interval. | |
697 | ||
081970eb SP |
698 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
699 | ||
700 | * tree-scalar-evolution.c (instantiate_scev_name): Do not fail | |
701 | the scev analysis when the variable is not used outside the loop | |
702 | in a close phi node: call compute_overall_effect_of_inner_loop. | |
703 | ||
bb17c851 SP |
704 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
705 | ||
706 | * graphite-sese-to-poly.c (single_pred_cond): Renamed | |
707 | single_pred_cond_non_loop_exit. Return NULL for loop exit edges. | |
708 | (build_sese_conditions_before): Renamed call to single_pred_cond. | |
709 | (build_sese_conditions_after): Same. | |
710 | ||
86e40af7 SP |
711 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
712 | ||
713 | * graphite-poly.h: Fix comments and indentation. | |
714 | * graphite-sese-to-poly.c: Same. | |
715 | (build_sese_conditions_before): Compute stmt and gbb only when needed. | |
716 | * tree-chrec.c: Fix comments and indentation. | |
717 | (tree-ssa-loop-niter.c): Same. | |
718 | ||
5599dea7 TG |
719 | 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de> |
720 | ||
721 | * refined-regions.c (create_region): Only initialize the region. | |
722 | (find_regions_with_entry): Initialize parent relation and bbmap | |
723 | correctly. | |
724 | (build_regions_tree): Set outermost_region to region instead of | |
725 | topmost_region. | |
726 | (calculate_region_tree): Remove unneeded parameters. | |
727 | ||
2a6909ec TG |
728 | 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de> |
729 | ||
730 | * graphite-scop-detection.c (is_scop_p): New. | |
731 | (build_scops_new): New. A skeleton for the new scop detection. | |
732 | (build_scops_old): Renamed from build_scops. | |
733 | (build_scops): New version. Call the new and the old scop | |
734 | detection. | |
735 | ||
25c57e83 TG |
736 | 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de> |
737 | Antoniu Pop <antoniu.pop@gmail.com> | |
738 | ||
739 | * Makefile.in (OBJS-common): Add refined-regions.o. | |
740 | (refined-regions.o): New. | |
741 | (graphite-scop-detection.o): Use refined-regions.h. | |
742 | * graphite-scop-detection.c: Include refined-regions.h | |
743 | (build_scops): Also build the refined region tree. | |
744 | * refined-regions.c: New. Adds an algorithm to detect refined | |
745 | regions. | |
746 | (print_refined_region): New. | |
747 | (debug_refined_region): New. | |
748 | (refined_region_contains_bb_p): New. | |
749 | (refined_region_contains_region_p): New. | |
750 | (is_common_df): New. | |
751 | (struct find_regions_global_data): New. | |
752 | (is_region): New. | |
753 | (typedef struct bb_bb_def): New. | |
754 | (new_bb_bb_def): New. | |
755 | (bb_bb_map_hash): New. | |
756 | (eq_bb_bb_map): New. | |
757 | (find_new_bb): New. | |
758 | (bb_reg_def): New. | |
759 | (new_bb_reg_def): New. | |
760 | (bb_reg_map_hash): New. | |
761 | (eq_bb_reg_map): New. | |
762 | (find_new_region): New. | |
763 | (insert_new_reg): New. | |
764 | (insert_new_bb): New. | |
765 | (insert_shortcut): New. | |
766 | (get_next_postdom): New. | |
767 | (create_region): New. | |
768 | (find_regions_with_entry): New. | |
769 | (find_regions_adc): New. | |
770 | (find_regions): New. | |
771 | (get_topmost_parent): New. | |
772 | (build_regions_tree): New. | |
773 | (calculate_region_tree): New. | |
774 | (free_region_tree): New. | |
775 | * refined-regions.h: New. | |
776 | (struct refined_region): New. | |
777 | (calculate_region_tree): New. | |
778 | (free_region_tree): New. | |
779 | (refined_region_contains_bb_p): New. | |
780 | (refined_region_contains_region_p): New. | |
781 | (print_refined_region): New. | |
782 | (debug_refined_region): New. | |
783 | ||
8c131b3b SP |
784 | 2010-05-26 Sebastian Pop <sebastian.pop@amd.com> |
785 | ||
786 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
787 | size_one_node. | |
788 | ||
d91949fa SP |
789 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
790 | ||
791 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix | |
792 | type of integer_one_node for fold_build of POINTER_PLUS_EXPR. | |
793 | ||
159e4616 SP |
794 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
795 | ||
796 | * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed | |
797 | phi_arg_in_outermost_loop. | |
798 | (remove_simple_copy_phi): Call phi_arg_in_outermost_loop. | |
799 | (remove_invariant_phi): Same. | |
800 | ||
e262fdda AS |
801 | 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
802 | ||
803 | * graphite-blocking.c | |
804 | (pbb_strip_mine_profitable_p): Replace Value with mpz_t. | |
805 | * graphite-clast-to-gimple.c | |
806 | (clast_to_gcc_expression): Same. | |
807 | (precision_for_value): Same. | |
808 | (precision_for_interval): Same. | |
809 | (gcc_type_for_interval): Same. | |
810 | (graphite_create_new_guard): Same. | |
811 | (compute_bounds_for_level): Same. | |
812 | (graphite_create_new_loop_guard): Same. | |
813 | * graphite-interchange.c | |
814 | (build_linearized_memory_access): Same. | |
815 | (pdr_stride_in_loop): Same. | |
816 | (memory_strides_in_loop_1): Same. | |
817 | (memory_strides_in_loop): Same. | |
818 | (extend_scattering): Same. | |
819 | (psct_scattering_dim_for_loop_depth): Same. | |
820 | (pbb_number_of_iterations): Same. | |
821 | * graphite-poly.h | |
822 | (debug_iteration_domains): Same. | |
823 | * graphite-ppl.c | |
824 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
825 | (ppl_set_inhomogeneous_gmp): Same. | |
826 | (ppl_strip_loop): Same. | |
827 | (ppl_lexico_compare_linear_expressions): Same. | |
828 | (ppl_read_polyhedron_matrix): Same. | |
829 | (ppl_max_for_le_pointset): Same. | |
830 | * graphite-ppl.h | |
831 | (ppl_read_polyhedron_matrix): Same. | |
832 | (tree_int_to_gmp): Same. | |
833 | (gmp_cst_to_tree): Same. | |
834 | (ppl_set_inhomogeneous): Same. | |
835 | (ppl_set_inhomogeneous_tree): Same. | |
836 | (ppl_set_coef): Same. | |
837 | (ppl_set_coef_tree): Same. | |
838 | * graphite-sese-to-poly.c | |
839 | (build_pbb_scattering_polyhedrons): Same. | |
840 | (build_scop_scattering): Same. | |
841 | (scan_tree_for_params_right_scev): Same. | |
842 | (scan_tree_for_params): Same. | |
843 | (find_params_in_bb): Same. | |
844 | (find_scop_parameters): Same. | |
845 | (add_upper_bounds_from_estimated_nit): Same. | |
846 | (build_loop_iteration_domains): Same. | |
847 | (add_condition_to_domain): Same. | |
848 | (pdr_add_memory_accesses): Same. | |
849 | ||
a0bb35c7 AS |
850 | 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
851 | ||
aa91c4cc | 852 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve |
a0bb35c7 AS |
853 | CLooG's value_* macros to their respective mpz_* counterparts. |
854 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same. | |
855 | (graphite_create_new_loop_guard): Same. | |
856 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
857 | (pdr_stride_in_loop): Same. | |
858 | (memory_strides_in_loop_1): Same. | |
859 | (1st_interchange_profitable_p): Same. | |
860 | * graphite-poly.c (extend_scattering): Same. | |
861 | (psct_scattering_dim_for_loop_depth): Same. | |
862 | (pbb_number_of_iterations): Same. | |
863 | (pbb_number_of_iterations_at_time): Same. | |
864 | * graphite-poly.h (new_1st_loop): Same. | |
865 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same. | |
866 | (oppose_constraint): Same. | |
867 | (insert_constraint_into_matrix): Same. | |
868 | (ppl_set_inhomogeneous_gmp): Same. | |
869 | (ppl_set_coef_gmp): Same. | |
870 | (ppl_strip_loop): Same. | |
871 | (ppl_lexico_compare_linear_expressions): Same. | |
872 | (ppl_max_for_le_pointset): Same. | |
873 | (ppl_min_for_le_pointset): Same. | |
874 | (ppl_build_realtion): Same. | |
875 | * graphite-ppl.h (gmp_cst_to_tree): Same. | |
876 | (ppl_set_inhomogeneous): Same. | |
877 | (ppl_set_inhomogeneous_tree): Same. | |
878 | (ppl_set_coef): Same. | |
879 | (ppl_set_coef_tree): Same. | |
880 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same. | |
881 | (build_scop_scattering): Same. | |
882 | (add_value_to_dim): Same. | |
883 | (scan_tree_for_params_right_scev): Same. | |
884 | (scan_tree_for_params_int): Same. | |
885 | (scan_tree_for_params): Same. | |
886 | (find_params_in_bb): Same. | |
887 | (find_scop_parameters): Same. | |
888 | (add_upper_bounds_from_estimated_nit): Same. | |
889 | (build_loop_iteration_domains): Same. | |
890 | (create_linear_expr_from_tree): Same. | |
891 | (add_condition_to_domain): Same. | |
892 | (pdr_add_memory_accesses): Same. | |
893 | ||
b8132a7d SP |
894 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> |
895 | ||
896 | PR middle-end/43519 | |
897 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
898 | lang_hooks.types.type_for_size instead of build_nonstandard_integer_type. | |
899 | When converting an unsigned type to signed, double its precision. | |
900 | (gcc_type_for_interval): Use lang_hooks.types.type_for_size. | |
901 | (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type. | |
902 | (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub. | |
903 | ||
904 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
905 | ||
906 | PR middle-end/43519 | |
907 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
908 | build_nonstandard_integer_type. | |
909 | (gcc_type_for_interval): Same. | |
910 | ||
911 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
dbe0d652 SP |
912 | |
913 | PR middle-end/43519 | |
914 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
915 | POINTER_PLUS_EXPR for pointer types. | |
916 | ||
917 | * gcc.dg/graphite/id-19.c: New. | |
918 | ||
bd32f344 SP |
919 | 2010-04-04 Sebastian Pop <sebastian.pop@amd.com> |
920 | ||
921 | PR middle-end/43519 | |
922 | * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h. | |
923 | * graphite-clast-to-gimple.c: Include langhooks.h. | |
924 | (max_signed_precision_type): New. | |
925 | (max_precision_type): Takes two types as arguments. | |
926 | (precision_for_value): New. | |
927 | (precision_for_interval): New. | |
928 | (gcc_type_for_interval): New. | |
929 | (gcc_type_for_value): New. | |
930 | (gcc_type_for_clast_term): New. | |
931 | (gcc_type_for_clast_red): New. | |
932 | (gcc_type_for_clast_bin): New. | |
933 | (gcc_type_for_clast_expr): Split up into several functions. | |
934 | (gcc_type_for_clast_eq): Rewritten. | |
935 | (compute_bounds_for_level): New. | |
936 | (compute_type_for_level_1): New. | |
937 | (compute_type_for_level): New. | |
938 | (gcc_type_for_cloog_iv): Removed. | |
939 | (gcc_type_for_iv_of_clast_loop): Rewritten. | |
940 | (graphite_create_new_loop): Compute the lower and upper bound types | |
941 | with gcc_type_for_clast_expr. | |
942 | (graphite_create_new_loop_guard): Same. | |
943 | (find_cloog_iv_in_expr): Removed. | |
944 | (compute_cloog_iv_types_1): Removed. | |
945 | (compute_cloog_iv_types): Removed. | |
946 | (gloog): Do not call compute_cloog_iv_types. | |
947 | * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize | |
948 | GBB_CLOOG_IV_TYPES. | |
949 | (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES. | |
950 | * sese.h (struct gimple_bb): Removed field cloog_iv_types. | |
951 | (GBB_CLOOG_IV_TYPES): Removed. | |
952 | ||
953 | * gcc.dg/graphite/run-id-pr42644.c: Call abort. | |
954 | ||
79d03cf8 SP |
955 | 2010-04-02 Sebastian Pop <sebastian.pop@amd.com> |
956 | ||
957 | Reverted this commit: as at this point the loop closed SSA form | |
958 | is under a canonical form respecting the single argument condition. | |
959 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
960 | close phi nodes may have more than one argument. | |
961 | ||
962 | 2010-04-01 Sebastian Pop <sebastian.pop@amd.com> | |
963 | ||
964 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that | |
965 | gimple_phi_num_args of the loop close SSA phi node is equal to 1. | |
966 | (detect_commutative_reduction): Same. | |
967 | ||
968 | 2010-03-31 Sebastian Pop <sebastian.pop@amd.com> | |
969 | ||
970 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
971 | close phi nodes may have more than one argument. | |
972 | ||
3cbf7085 RG |
973 | 2010-03-30 Richard Guenther <rguenther@suse.de> |
974 | Zdenek Dvorak <ook@ucw.cz> | |
975 | Sebastian Pop <sebastian.pop@amd.com> | |
976 | ||
977 | PR middle-end/43464 | |
978 | * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes | |
979 | with multiple arguments. | |
980 | (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa. | |
981 | ||
40bf935e SP |
982 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
983 | ||
984 | * graphite-dependences.c (print_pddr): Call print_pdr with an | |
985 | extra argument. | |
986 | * graphite-poly.c (debug_pdr): Add an extra argument for the | |
987 | verbosity level. | |
988 | (print_pdr): Same. | |
989 | (print_pbb_domain): Same. | |
990 | (print_pbb): Same. | |
991 | (print_scop_context): Same. | |
992 | (print_scop): Same. | |
993 | (print_cloog): Same. | |
994 | (debug_pbb_domain): Same. | |
995 | (debug_pbb): Same. | |
996 | (print_pdrs): Same. | |
997 | (debug_pdrs): Same. | |
998 | (debug_scop_context): Same. | |
999 | (debug_scop): Same. | |
1000 | (debug_cloog): Same. | |
1001 | (print_scop_params): Same. | |
1002 | (debug_scop_params): Same. | |
1003 | (print_iteration_domain): Same. | |
1004 | (print_iteration_domains): Same. | |
1005 | (debug_iteration_domain): Same. | |
1006 | (debug_iteration_domains): Same. | |
1007 | (print_scattering_function): Same. | |
1008 | (print_scattering_functions): Same. | |
1009 | (debug_scattering_function): Same. | |
1010 | (debug_scattering_functions): Same. | |
1011 | * graphite-poly.h (debug_pdr): Update declaration. | |
1012 | (print_pdr): Same. | |
1013 | (print_pbb_domain): Same. | |
1014 | (print_pbb): Same. | |
1015 | (print_scop_context): Same. | |
1016 | (print_scop): Same. | |
1017 | (print_cloog): Same. | |
1018 | (debug_pbb_domain): Same. | |
1019 | (debug_pbb): Same. | |
1020 | (print_pdrs): Same. | |
1021 | (debug_pdrs): Same. | |
1022 | (debug_scop_context): Same. | |
1023 | (debug_scop): Same. | |
1024 | (debug_cloog): Same. | |
1025 | (print_scop_params): Same. | |
1026 | (debug_scop_params): Same. | |
1027 | (print_iteration_domain): Same. | |
1028 | (print_iteration_domains): Same. | |
1029 | (debug_iteration_domain): Same. | |
1030 | (debug_iteration_domains): Same. | |
1031 | (print_scattering_function): Same. | |
1032 | (print_scattering_functions): Same. | |
1033 | (debug_scattering_function): Same. | |
1034 | (debug_scattering_functions): Same. | |
1035 | ||
730a9846 SP |
1036 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1037 | ||
1038 | * graphite-poly.c (print_scattering_function_1): New. | |
1039 | (print_scattering_function): Call it. | |
1040 | (print_scop_params): Remove spaces at the end of lines. | |
1041 | (print_cloog): New. | |
1042 | (debug_cloog): New. | |
1043 | * graphite-poly.h (print_cloog): Declared. | |
1044 | (debug_cloog): Declared. | |
1045 | ||
9c0c34c2 SP |
1046 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1047 | ||
1048 | * tree-ssa-copy.c: Revert this previous change: | |
1049 | (init_copy_prop): Loop closed phi nodes cancontain more than one | |
1050 | argument. | |
1051 | (execute_copy_prop): Revert the previous change: do not call | |
1052 | rewrite_into_loop_closed_ssa. | |
1053 | ||
1054 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1055 | Richard Guenther <rguenther@suse.de> | |
1056 | ||
1057 | PR middle-end/43464 | |
1058 | * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can | |
1059 | contain more than one argument. | |
1060 | (execute_copy_prop): Revert the previous change: do not call | |
1061 | rewrite_into_loop_closed_ssa. | |
1062 | ||
1063 | * gcc.dg/graphite/id-pr43464.c: Remove compile warning. | |
1064 | * gcc.dg/graphite/id-pr43464-1.c: New. | |
1065 | ||
1066 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1067 | ||
1068 | PR middle-end/43464 | |
1069 | * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa | |
1070 | and verify_loop_closed_ssa when copy prop is executed in the LNO. | |
1071 | ||
1072 | * gcc.dg/graphite/id-pr43464.c: New. | |
1073 | ||
c80a5403 SP |
1074 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1075 | ||
1076 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump | |
1077 | in loop->header. | |
1078 | * tree-flow.h (canonicalize_loop_ivs): Updated declaration. | |
1079 | * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch. | |
1080 | * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter | |
1081 | to switch between adding the IV bump in loop->latch or in loop->header. | |
1082 | ||
caaf41d0 SP |
1083 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1084 | ||
1085 | * passes.c (init_optimization_passes): Add pass_copy_prop | |
1086 | after Graphite. | |
1087 | ||
03922af3 SP |
1088 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1089 | ||
1090 | * graphite-poly.c (print_scattering_function): Pretty print following | |
1091 | the scoplib format. | |
1092 | (print_pdr): Same. | |
1093 | (print_pbb_domain): Same. | |
1094 | (dump_gbb_cases): Same. | |
1095 | (dump_gbb_conditions): Same. | |
1096 | (print_pdrs): Same. | |
1097 | (print_pbb): Same. | |
1098 | (print_scop_params): Same. | |
1099 | (print_scop_context): Same. | |
1100 | (print_scop): Same. | |
1101 | (print_pbb_body): New. | |
1102 | (lst_indent_to): New. | |
1103 | (print_lst): Start new lines with a #. | |
1104 | * graphite-poly.h (pbb_bb): New. | |
1105 | (pbb_index): Use pbb_bb. | |
1106 | * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of | |
1107 | disjuncts. | |
1108 | * tree-data-ref.c (dump_data_reference): Start new lines with a #. | |
1109 | ||
7da9e6ed SP |
1110 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1111 | ||
1112 | PR middle-end/43351 | |
1113 | * gcc.dg/graphite/id-pr43351.c | |
1114 | ||
6492b694 SP |
1115 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1116 | ||
1117 | PR middle-end/43354 | |
1118 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not | |
1119 | call insert_out_of_ssa_copy for default definitions. | |
1120 | * gfortran.dg/graphite/id-pr43354.f: New. | |
1121 | ||
1122 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
113081e4 SP |
1123 | |
1124 | PR middle-end/43349 | |
1125 | * gfortran.dg/graphite/pr43349.f: New. | |
1126 | ||
248081bc SP |
1127 | 2010-03-11 Sebastian Pop <sebastian.pop@amd.com> |
1128 | ||
1129 | * graphite-clast-to-gimple.c (my_long_long): Defined. | |
1130 | (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node. | |
1131 | * graphite-sese-to-poly.c (my_long_long): Defined. | |
1132 | (scop_ivs_can_be_represented): Use it. | |
1133 | ||
d97c90ae SP |
1134 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1135 | ||
1136 | * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params, | |
1137 | graphite-max-bbs-per-function, and loop-block-tile-size. | |
1138 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal" | |
1139 | with "maximum". | |
1140 | (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same. | |
1141 | ||
a5a59b11 SP |
1142 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1143 | ||
1144 | * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove | |
1145 | forward declaration. | |
1146 | * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment. | |
1147 | (add_upper_bounds_from_estimated_nit): New. | |
1148 | (build_loop_iteration_domains): Use it. | |
1149 | ||
9d198913 SP |
1150 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1151 | ||
1152 | * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. | |
1153 | ||
1f380314 SP |
1154 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1155 | ||
1156 | PR middle-end/43306 | |
1157 | * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT | |
1158 | should be an INTEGER_CST. Also handle CASE_CONVERT. | |
1159 | * gcc.dg/graphite/pr43306.c: New. | |
1160 | ||
b6bb0094 SP |
1161 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1162 | ||
1163 | * graphite.c (graphite_initialize): To bound the number of bbs per | |
1164 | function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. | |
1165 | * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. | |
1166 | * doc/invoke.texi: Document it. | |
1167 | ||
e84aaa33 SP |
1168 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1169 | ||
1170 | * graphite-sese-to-poly.c (build_poly_scop): Do not return bool. | |
1171 | * graphite-sese-to-poly.h (build_poly_scop): Same. | |
1172 | ||
4e7dd376 SP |
1173 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1174 | ||
1175 | * graphite-sese-to-poly.c (build_poly_scop): Limit scops following | |
1176 | the number of parameters in the scop. Use as an upper bound | |
1177 | PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. | |
1178 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared. | |
1179 | * doc/invoke.texi: Document it. | |
1180 | ||
697f511d SP |
1181 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1182 | ||
1183 | * graphite-sese-to-poly.c (add_param_constraints): Use | |
1184 | lower_bound_in_type and upper_bound_in_type. | |
1185 | ||
456cc718 SP |
1186 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1187 | ||
1188 | * graphite-sese-to-poly.c (add_param_constraints): Use sizetype | |
1189 | instead of unsigned_type_node. | |
1190 | ||
3640d64c SP |
1191 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1192 | Reza Yazdani <reza.yazdani@amd.com> | |
1193 | ||
1194 | PR middle-end/43065 | |
1195 | * graphite-sese-to-poly.c (add_param_constraints): Insert bounds | |
1196 | on pointer type parameters. | |
1197 | ||
1198 | * gcc.dg/graphite/run-id-4.c: New. | |
1199 | ||
1200 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> | |
b75d95c9 SP |
1201 | |
1202 | PR middle-end/43065 | |
1203 | * gcc.dg/graphite/run-id-3.c: New. | |
1204 | ||
73102986 TG |
1205 | 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de> |
1206 | Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1207 | ||
1208 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also | |
1209 | handle conversions from pointer to integers. | |
1210 | (gcc_type_for_cloog_iv): Choose the smalles signed integer as an | |
1211 | induction variable, to be able to work with code generated by CLooG. | |
1212 | * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New. | |
1213 | (build_poly_scop): Bail out if we cannot codegen a loop. | |
1214 | ||
e3f81db1 TG |
1215 | 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de> |
1216 | ||
1217 | * graphite-clast-to-gimple.c (translate_clast): Do not short-cut | |
1218 | code generation with gloog_error. | |
1219 | ||
c7631a71 SP |
1220 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1221 | ||
1222 | * sese.c (expand_scalar_variables_ssa_name): Add new argument for type. | |
1223 | Call fold_convert on all the returned values. | |
1224 | (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name | |
1225 | the type of the resulting expression. | |
1226 | ||
b0602cc8 SP |
1227 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1228 | ||
1229 | * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed | |
1230 | ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. | |
1231 | * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. | |
1232 | ||
b188bb7c SP |
1233 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1234 | ||
1235 | * graphite-dependences.c (map_into_dep_poly): Removed. | |
1236 | (dependence_polyhedron_1): Use combine_context_id_scat. | |
1237 | ||
aa52513e SP |
1238 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1239 | ||
1240 | * graphite-poly.h (struct poly_scattering): Add layout documentation. | |
1241 | (struct poly_bb): Same. | |
1242 | (combine_context_id_scat): New. | |
1243 | ||
392c0ce1 SP |
1244 | 2010-03-02 Sebastian Pop <sebastian.pop@amd.com> |
1245 | ||
1246 | PR middle-end/42326 | |
1247 | * sese.c (name_defined_in_loop_p): Return false for default | |
1248 | definitions. | |
1249 | ||
1250 | * gcc.dg/graphite/pr42326.c: New. | |
1251 | ||
bd7742f8 SP |
1252 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1253 | ||
1254 | * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify | |
1255 | and clean up the logic. | |
1256 | ||
733ff09d SP |
1257 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1258 | ||
1259 | * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove | |
1260 | early return. | |
1261 | ||
4caa8e21 SP |
1262 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1263 | ||
1264 | PR middle-end/43083 | |
1265 | * graphite-scop-detection.c (create_single_exit_edge): Move | |
1266 | the call to find_single_exit_edge to.... | |
1267 | (create_sese_edges): ...here. Don't handle multiple edges | |
1268 | exiting the function. | |
1269 | (build_graphite_scops): Don't handle multiple edges | |
1270 | exiting the function. | |
1271 | ||
1272 | * gcc.dg/graphite/pr43083.c: New. | |
1273 | ||
c3382979 SP |
1274 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1275 | ||
b8df8b8b | 1276 | PR middle-end/43097 |
c3382979 SP |
1277 | * sese.c (get_rename): Assert that old_name is an SSA_NAME. |
1278 | (rename_variables_in_stmt): Continue when the use is not an SSA_NAME. | |
1279 | ||
1280 | * gfortran.dg/graphite/pr43097.f: New. | |
1281 | ||
13cd10a2 SP |
1282 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1283 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1284 | ||
1285 | PR middle-end/43140 | |
1286 | * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null. | |
1287 | ||
1288 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> | |
143b72a9 SP |
1289 | |
1290 | PR middle-end/43026 | |
1291 | * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF. | |
1292 | ||
1293 | * g++.dg/graphite/pr43026.C: New. | |
1294 | ||
4e722673 SP |
1295 | 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de> |
1296 | ||
1297 | * Merge from mainline (154736:156693). | |
1298 | ||
c2814aab SP |
1299 | 2010-02-11 Sebastian Pop <sebastian.pop@amd.com> |
1300 | ||
1301 | PR middle-end/43012 | |
1302 | * gcc.dg/graphite/pr43012.c: New. | |
be1c3b28 | 1303 | |
c2814aab | 1304 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
be1c3b28 | 1305 | |
c2814aab | 1306 | * graphite.c (graphite_transform_loops): Re-enable dbg_cnt. |
be1c3b28 SP |
1307 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
1308 | ||
1309 | * g++.dg/graphite/pr42930.C: New. | |
1310 | ||
141ecc24 | 1311 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
c4c4983e SP |
1312 | |
1313 | PR middle-end/42930 | |
1314 | * graphite-scop-detection.c (graphite_can_represent_scev): Call | |
1315 | graphite_can_represent_init for MULT_EXPR. | |
1316 | ||
141ecc24 | 1317 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a4681954 SP |
1318 | |
1319 | PR middle-end/42914 | |
1320 | PR middle-end/42530 | |
1321 | * graphite-sese-to-poly.c (remove_phi): New. | |
1322 | (translate_scalar_reduction_to_array): Call remove_phi. | |
1323 | ||
1324 | * gcc.dg/graphite/pr42530.c: New. | |
1325 | * gcc.dg/graphite/pr42914.c: New. | |
1326 | ||
141ecc24 | 1327 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a1954f72 SP |
1328 | |
1329 | PR middle-end/42771 | |
1330 | * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters. | |
1331 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
1332 | * graphite-poly.c (new_scop): Clear POLY_SCOP_P. | |
1333 | * graphite-poly.h (struct poly_bb): Add missing comments. | |
1334 | (struct scop): Add poly_scop_p field. | |
1335 | (POLY_SCOP_P): New. | |
1336 | * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P. | |
1337 | * graphite.c (graphite_transform_loops): Build the polyhedral | |
1338 | representation for each scop before code generation. | |
1339 | * sese.c (rename_variables_in_operand): Removed. | |
1340 | (rename_variables_in_expr): Return the renamed expression. | |
1341 | (rename_sese_parameters): New. | |
1342 | * sese.h (rename_sese_parameters): Declared. | |
1343 | ||
1344 | * gcc.dg/graphite/pr42771.c: New. | |
1345 | ||
0be957dc SP |
1346 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1347 | ||
1348 | * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always | |
1349 | return 0 from main. | |
1350 | * gcc.dg/graphite/block-1.c: Same. | |
1351 | * gcc.dg/graphite/block-3.c: Same. | |
1352 | * gcc.dg/graphite/block-4.c: Same. | |
1353 | * gcc.dg/graphite/block-5.c: Same. | |
1354 | * gcc.dg/graphite/block-6.c: Same. | |
1355 | * gcc.dg/graphite/block-7.c: Same. | |
1356 | * gcc.dg/graphite/interchange-0.c: Same. | |
1357 | * gcc.dg/graphite/interchange-1.c: Same. | |
1358 | * gcc.dg/graphite/interchange-10.c: Same. | |
1359 | * gcc.dg/graphite/interchange-11.c: Same. | |
1360 | * gcc.dg/graphite/interchange-12.c: Same. | |
1361 | * gcc.dg/graphite/interchange-2.c: Same. | |
1362 | * gcc.dg/graphite/interchange-3.c: Same. | |
1363 | * gcc.dg/graphite/interchange-4.c: Same. | |
1364 | * gcc.dg/graphite/interchange-5.c: Same. | |
1365 | * gcc.dg/graphite/interchange-6.c: Same. | |
1366 | * gcc.dg/graphite/interchange-7.c: Same. | |
1367 | * gcc.dg/graphite/interchange-8.c: Same. | |
1368 | * gcc.dg/graphite/interchange-9.c: Same. | |
1369 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1370 | ||
4d48441c SP |
1371 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1372 | ||
1373 | * gfortran.dg/graphite/id-19.f: New. | |
1374 | * gfortran.dg/graphite/pr14741.f90: New. | |
1375 | * gfortran.dg/graphite/pr41924.f90: New. | |
1376 | * gfortran.dg/graphite/run-id-2.f90: New. | |
1377 | ||
8d2220b2 SP |
1378 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1379 | ||
1380 | PR middle-end/42988 | |
1381 | * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND | |
1382 | to unknown_dependence. | |
1383 | (graphite_legal_transform_dr): Handle the unknown_dependence. | |
1384 | (graphite_carried_dependence_level_k): Same. | |
1385 | ||
45489e99 SP |
1386 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1387 | ||
1388 | * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/. | |
1389 | ||
28f9f145 SP |
1390 | 2010-02-05 Sebastian Pop <sebastian.pop@amd.com> |
1391 | Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
1392 | ||
1393 | PR middle-end/42637 | |
1394 | * graphite-dependences.c (build_lexicographical_constraint): Return | |
1395 | a union of dependence polyhedra. | |
1396 | (dependence_polyhedron_1): Adapt for build_lexicographical_constraint. | |
1397 | ||
45489e99 SP |
1398 | * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed. |
1399 | * gcc.dg/graphite/block-4.c: Same. | |
1400 | * gcc.dg/graphite/block-7.c: Same. | |
1401 | * gcc.dg/graphite/interchange-12.c: Same. | |
1402 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1403 | * gfortran.dg/graphite/interchange-1.f: XFAILed. | |
1404 | * gfortran.dg/graphite/interchange-3.f90: XFAILed. | |
1405 | * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637. | |
28f9f145 | 1406 | |
4d0bf08b SP |
1407 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1408 | ||
45489e99 | 1409 | * gcc.dg/graphite/interchange-12.c: Return 0 to avoid |
4d0bf08b SP |
1410 | the execution check to FAIL. This testcase is miscompiled by Graphite |
1411 | and the check should be re-enabled. | |
45489e99 SP |
1412 | * gcc.dg/graphite/interchange-mvt.c: Same. |
1413 | * gcc.dg/graphite/block-0.c: Same. | |
1414 | * gcc.dg/graphite/block-4.c: Same. | |
1415 | * gcc.dg/graphite/block-7.c: Same. | |
4d0bf08b | 1416 | |
54cf8879 SP |
1417 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1418 | ||
45489e99 SP |
1419 | * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. |
1420 | * gcc.dg/graphite/scop-0.c: Fix spaces. | |
1421 | * gfortran.dg/graphite/block-1.f90: Rewrite expected output. | |
1422 | * gfortran.dg/graphite/block-2.f: Same. | |
1423 | * gfortran.dg/graphite/block-3.f90: Same. | |
1424 | * gfortran.dg/graphite/block-4.f90: Same. | |
1425 | * gfortran.dg/graphite/interchange-1.f: Un-XFAILed. | |
1426 | * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
54cf8879 | 1427 | |
b5eb099f SP |
1428 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1429 | ||
1430 | * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and | |
1431 | PDDR_ORIGINAL_SCATTERING_P. | |
1432 | (pddr_is_empty): Rewritten. | |
1433 | (print_dependence_polyhedron_layout): New. | |
1434 | (print_pddr): New. | |
1435 | (debug_pddr): New. | |
1436 | (build_alias_set_powerset): Moved up. | |
1437 | (poly_drs_may_alias_p): Moved up. | |
1438 | (lexicographically_gt_p): Removed. | |
1439 | (build_lexicographically_gt_constraint): Renamed | |
1440 | build_lexicographical_constraint, reimplemented. | |
1441 | (dependence_polyhedron_1): Simplified parameters. | |
1442 | (dependence_polyhedron): Same. Keep along empty PDDRs | |
1443 | to make efficient use of the cache. | |
1444 | (reduction_dr_p): Compute the PBBs don't pass them as parameters. | |
1445 | (graphite_legal_transform_dr): Rewritten. | |
1446 | (graphite_legal_transform_bb): Pass fewer arguments to | |
1447 | graphite_legal_transform_dr. | |
1448 | (graphite_carried_dependence_level_k): Simplified implementation. | |
1449 | (dot_original_deps_stmt_1): Call dependence_polyhedron. | |
1450 | (dot_transformed_deps_stmt_1): Same. | |
1451 | (dot_original_deps): Same. | |
1452 | (dot_transformed_deps): Same. | |
1453 | * graphite-dependences.h (struct poly_ddr): Added a new field | |
1454 | original_scattering_p. | |
1455 | (PDDR_ORIGINAL_SCATTERING_P): New. | |
1456 | (print_pddr): Declared. | |
1457 | (debug_pddr): Declared. | |
1458 | * graphite-ppl.c: Clarify comment. | |
1459 | * sese.h (print_gimple_bb): Removed unused declaration. | |
1460 | (debug_gbb): Same. | |
1461 | ||
64630e61 SP |
1462 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1463 | ||
45489e99 SP |
1464 | * g++.dg/graphite/graphite.exp: Rewritten. |
1465 | * gcc.dg/graphite/graphite.exp: Rewritten. | |
1466 | * gfortran.dg/graphite/graphite.exp: Rewritten. | |
1467 | * gcc.dg/graphite/block-0.c: Added runtime test. | |
1468 | * gcc.dg/graphite/block-1.c: Same. | |
1469 | * gcc.dg/graphite/block-3.c: Same. | |
1470 | * gcc.dg/graphite/block-4.c: Same. | |
1471 | * gcc.dg/graphite/block-5.c: Same. | |
1472 | * gcc.dg/graphite/block-6.c: Same. | |
1473 | * gcc.dg/graphite/block-7.c: Same. | |
1474 | * gcc.dg/graphite/interchange-0.c: Same. | |
1475 | * gcc.dg/graphite/interchange-1.c: Same. | |
1476 | * gcc.dg/graphite/interchange-10.c: Same. | |
1477 | * gcc.dg/graphite/interchange-11.c: Same. | |
1478 | * gcc.dg/graphite/interchange-12.c: Same. | |
1479 | * gcc.dg/graphite/interchange-2.c: Same. | |
1480 | * gcc.dg/graphite/interchange-3.c: Same. | |
1481 | * gcc.dg/graphite/interchange-4.c: Same. | |
1482 | * gcc.dg/graphite/interchange-5.c: Same. | |
1483 | * gcc.dg/graphite/interchange-6.c: Same. | |
1484 | * gcc.dg/graphite/interchange-7.c: Same. | |
1485 | * gcc.dg/graphite/interchange-8.c: Same. | |
1486 | * gcc.dg/graphite/interchange-9.c: Same. | |
1487 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1488 | * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run. | |
64630e61 | 1489 | |
4c8f3c48 RU |
1490 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
1491 | ||
1492 | * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in | |
1493 | background. | |
1494 | ||
1495 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1496 | ||
1497 | * common.opt: Add -fgraphite-cloog-opts. | |
1498 | * graphite-clast-to-gimple.c (set_cloog_options): Same. | |
1499 | * opts.c (decode_options): Same. | |
1500 | ||
86e4d552 SP |
1501 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1502 | ||
45489e99 SP |
1503 | * gcc.dg/graphite/id-17.c: New. |
1504 | * gcc.dg/graphite/pr41888.c: New. | |
1505 | * gcc.dg/graphite/scop-22.c: New. | |
1506 | * gfortran.dg/graphite/pr40982.f90: New. | |
86e4d552 | 1507 | |
3070ac15 SP |
1508 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1509 | ||
1510 | * graphite-dependences.c: Clarify comments. | |
1511 | (build_pddr): Add an extra parameter direction. | |
1512 | (graphite_legal_transform_dr): Use build_pddr. | |
1513 | (dot_original_deps_stmt_1): Update use of build_pddr. | |
1514 | (dot_transformed_deps_stmt_1): Same. | |
1515 | (dot_original_deps): Same. | |
1516 | (dot_transformed_deps): Same. | |
1517 | ||
45489e99 SP |
1518 | * gcc.dg/graphite/interchange-12.c: New. |
1519 | * gcc.dg/graphite/block-7.c: New. | |
3070ac15 | 1520 | |
a7ed6c90 SP |
1521 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1522 | ||
1523 | * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr. | |
1524 | (pddr_transformed_scattering): Removed. | |
1525 | (graphite_legal_transform_dr): Use build_pddr. | |
1526 | (dot_original_deps_stmt_1): Same. | |
1527 | (dot_transformed_deps_stmt_1): Same. | |
1528 | (dot_original_deps): Same. | |
1529 | (dot_transformed_deps): Same. | |
1530 | ||
e65a7579 SP |
1531 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1532 | ||
1533 | * graphite-dependences.c (lexicographically_gt_p): Add comments. | |
1534 | (build_lexicographically_gt_constraint): Same. | |
1535 | (dependence_polyhedron_1): Same. | |
1536 | (dependence_polyhedron): Same. | |
1537 | ||
7cbd4c5e SP |
1538 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1539 | ||
1540 | * graphite-dependences.c (build_pairwise_scheduling_equality): Removed. | |
1541 | (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling. | |
1542 | (lexicographically_gt_p): Change type of direction to int. | |
1543 | (build_lexicographically_gt_constraint): Same. | |
1544 | (dependence_polyhedron_1): Same. | |
1545 | (dependence_polyhedron): Same. | |
1546 | (pddr_original_scattering): Use integers for direction. | |
1547 | (pddr_transformed_scattering): Same. | |
1548 | (graphite_legal_transform_dr): Same. | |
1549 | (graphite_carried_dependence_level_k): Same. | |
1550 | ||
429ba740 SP |
1551 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1552 | ||
1553 | * graphite-dependences.c (build_pairwise_constraint): Renamed | |
1554 | ppl_build_relation. Moved... | |
1555 | (dr_equality_constraints): Use ppl_build_relation. | |
1556 | (build_pairwise_scheduling_equality): Same. | |
1557 | (build_pairwise_scheduling_inequality): Same. | |
1558 | * graphite-ppl.c (ppl_build_relation): ...here. | |
1559 | * graphite-ppl.h (ppl_build_relation): Declared. | |
1560 | ||
3c7c0158 SP |
1561 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1562 | ||
1563 | PR middle-end/42681 | |
1564 | * graphite-clast-to-gimple.c (gloog_error): New static variable. | |
1565 | (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P. | |
1566 | Set gloog_error when such an expression failed to be built. | |
1567 | (translate_clast): Early return when gloog_error is set. | |
1568 | (gloog): Clear gloog_error. When gloog_error is set, call | |
1569 | set_ifsese_condition to enable the original code. Return the status | |
1570 | of the code generation based on gloog_error. | |
1571 | * sese.c (set_ifsese_condition): New. | |
1572 | * sese.h (set_ifsese_condition): Declared. | |
1573 | ||
45489e99 | 1574 | * g++.dg/graphite/pr42681.C: New. |
3c7c0158 | 1575 | |
a7bf45de SP |
1576 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1577 | ||
1578 | PR middle-end/42732 | |
1579 | * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and | |
1580 | rename_nb_iterations. | |
1581 | * sese.c (rename_variables_in_operand): New. | |
1582 | (rename_variables_in_expr): New. | |
1583 | (rename_nb_iterations): New. | |
1584 | (sese_adjust_liveout_phis): Update the rename_map. | |
1585 | * sese.h (rename_nb_iterations): Declared. | |
1586 | * tree-scalar-evolution.c (scev_reset_htab): New. | |
1587 | (scev_reset): Call scev_reset_htab. | |
1588 | * tree-scalar-evolution.h (scev_reset_htab): Declared. | |
1589 | ||
45489e99 | 1590 | * gfortran.dg/graphite/pr42732.f: New. |
a7bf45de | 1591 | |
e1496917 SP |
1592 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1593 | ||
1594 | PR middle-end/42393 | |
1595 | * graphite-clast-to-gimple.c: Fix formatting. | |
1596 | * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p. | |
1597 | (expr_defined_in_loop_p): New. | |
1598 | (add_loop_exit_phis): Also handle full expressions: remove from | |
1599 | the rename_map the expressions defined in the loop that we're closing. | |
1600 | ||
45489e99 SP |
1601 | * gfortran.dg/graphite/pr42393-1.f90: New. |
1602 | * gfortran.dg/graphite/pr42393.f90: Add new flags | |
e1496917 SP |
1603 | -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also |
1604 | make this testcase useful in the Graphite branch. | |
1605 | ||
c8ae0613 SP |
1606 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1607 | ||
1608 | * graphite-scop-detection.c (exclude_component_ref): Removed. | |
1609 | (is_simple_operand): Removed. | |
1610 | (stmt_simple_for_scop_p): Remove use of is_simple_operand. | |
1611 | ||
4e98c66c SP |
1612 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1613 | ||
1614 | PR middle-end/42221 | |
1615 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1616 | the array indexing of ADDR_EXPRs. | |
1617 | ||
45489e99 | 1618 | * gcc.dg/graphite/pr42221.c: New. |
4e98c66c | 1619 | |
fd4a56ff SP |
1620 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1621 | ||
1622 | PR middle-end/42521 | |
1623 | * graphite.c (graphite_finalize): Call scev_reset. | |
1624 | (graphite_transform_loops): Do not call scev_reset between the code | |
1625 | generation of scops. | |
1626 | ||
45489e99 | 1627 | * gcc.dg/graphite/pr42521.c: New. |
fd4a56ff | 1628 | |
eaffa762 SP |
1629 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1630 | ||
1631 | * graphite-interchange.c (memory_stride_in_loop): Renamed | |
1632 | pdr_stride_in_loop. | |
1633 | (memory_strides_in_loop): Renamed memory_strides_in_loop_1. | |
1634 | (memory_strides_in_loop): Memoize the memory strides per loop. | |
1635 | (lst_interchange_profitable_p): Do not initialize to zero the memory | |
1636 | strides. | |
1637 | * graphite-poly.h (struct lst): Add a field memory_strides. | |
1638 | (LST_LOOP_MEMORY_STRIDES): New. | |
1639 | (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1. | |
1640 | (free_lst): Clear LST_LOOP_MEMORY_STRIDES. | |
1641 | ||
bf69e754 SP |
1642 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1643 | ||
1644 | * graphite-interchange.c (memory_strides_in_loop_depth): Renamed | |
1645 | memory_strides_in_loop. Gather memory strides on a whole loop. | |
1646 | (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p. | |
1647 | (lst_interchange_profitable_p): Removed. | |
1648 | (lst_try_interchange_loops): Call lst_interchange_profitable_p. | |
1649 | ||
9fa29a09 SP |
1650 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1651 | ||
1652 | Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
1653 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
1654 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
1655 | Remove context_loop and level. | |
1656 | ||
11d6ea5e SP |
1657 | 2010-01-07 Richard Guenther <rguenther@suse.de> |
1658 | ||
1659 | PR tree-optimization/42641 | |
1660 | * sese.c (rename_map_elt_info): Use the SSA name version, do | |
1661 | not hash pointers. | |
1662 | ||
1663 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> | |
1664 | ||
1665 | * graphite-blocking.c (scop_do_block): Print "SCoP will be loop | |
1666 | blocked" only when both the strip mine and the interchange have | |
1667 | been applied. | |
1668 | ||
45489e99 SP |
1669 | * gcc.dg/graphite/block-2.c: Removed. |
1670 | * gcc.dg/graphite/block-3.c: Add scan pattern. | |
1671 | * gcc.dg/graphite/block-4.c: Same. | |
1672 | * gcc.dg/graphite/block-5.c: Same. | |
1673 | * gcc.dg/graphite/block-6.c: Same. | |
11d6ea5e | 1674 | |
556afcdc SP |
1675 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> |
1676 | ||
1677 | * graphite-clast-to-gimple.c (save_clast_name_index): Free slot | |
1678 | before allocating a new one. | |
1679 | (copy_renames): Check that slot is not NULL. | |
1680 | (mark_bb_with_pbb): Same. | |
1681 | (compute_cloog_iv_types_1): Same. | |
1682 | * graphite-interchange.c (lst_perfect_nestify): Free the before, | |
1683 | nest, and after LSTs. | |
1684 | (lst_try_interchange_loops): Same. | |
1685 | ||
e68c3c6c SP |
1686 | 2010-01-05 Sebastian Pop <sebastian.pop@amd.com> |
1687 | ||
1688 | PR middle-end/42178 | |
1689 | * graphite-interchange.c (lst_try_interchange_loops): Do not return | |
1690 | the before, nest, and after LSTs. | |
1691 | (lst_try_interchange): Removed. | |
1692 | (lst_interchange_select_inner): Do not iterate over the LSTs if they | |
1693 | were modified. | |
1694 | (lst_interchange_select_outer): Apply interchange on the outer loop | |
1695 | until there are no more changes in the inner loops. | |
1696 | ||
a84a556d SP |
1697 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1698 | ||
1699 | Revert patch fixing PR middle-end/42221. | |
1700 | ||
1701 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> | |
1702 | ||
1703 | PR middle-end/42180 | |
1704 | * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle | |
1705 | GIMPLE_CALL. | |
1706 | ||
45489e99 | 1707 | * gfortran.dg/graphite/pr42180.f90: Add compile flags. |
a84a556d | 1708 | |
b147df0b SP |
1709 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1710 | ||
1711 | PR middle-end/42180 | |
1712 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks | |
1713 | that contain only one statement. | |
1714 | ||
45489e99 | 1715 | * gfortran.dg/graphite/pr42180.f90: New. |
a84a556d | 1716 | |
ce20f9d6 SP |
1717 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1718 | ||
1719 | PR middle-end/42393 | |
45489e99 | 1720 | * gfortran.dg/graphite/pr42393.f90: New. |
ce20f9d6 | 1721 | |
d2a271ac SP |
1722 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1723 | ||
1724 | PR middle-end/42186 | |
45489e99 | 1725 | * gfortran.dg/graphite/pr42186.f90: New. |
d2a271ac | 1726 | |
403ebc7e SP |
1727 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1728 | ||
1729 | PR middle-end/42205 | |
1730 | * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt): | |
1731 | Insert the reduction copy in the same block as the phi node. | |
1732 | (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs. | |
1733 | ||
45489e99 SP |
1734 | * gcc.dg/graphite/pr42205-1.c: New. |
1735 | * gcc.dg/graphite/pr42205-2.c: New. | |
403ebc7e SP |
1736 | |
1737 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> | |
1738 | ||
1739 | PR middle-end/42221 | |
1740 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1741 | the array indexing of ADDR_EXPRs. | |
1742 | ||
45489e99 | 1743 | * gcc.dg/graphite/pr42221.c: New. |
403ebc7e | 1744 | |
070ba483 SP |
1745 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1746 | ||
1747 | PR middle-end/42178 | |
1748 | PR middle-end/42334 | |
1749 | * graphite-interchange.c (lst_try_interchange): Do not modify OUTER | |
1750 | index. Call lst_interchange_select_inner only once. | |
1751 | (lst_interchange_select_inner): Update use of lst_try_interchange. | |
1752 | (lst_interchange_select_outer): Update. | |
1753 | ||
1754 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1755 | ||
1756 | PR middle-end/42178 | |
1757 | PR middle-end/42334 | |
1758 | * graphite-interchange.c (lst_try_interchange): Do not increment the | |
1759 | the OUTER index when there is no AFTER kernel. Do not increment the | |
1760 | OUTER index for after processing the AFTER kernel. | |
1761 | (lst_interchange_select_inner): Call lst_try_interchange only on loops. | |
1762 | (lst_interchange_select_outer): Do not pass in a pointer to the OUTER | |
1763 | index. Do not pass to lst_interchange_select_inner the OUTER index. | |
1764 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1765 | ||
45489e99 | 1766 | * gfortran.dg/graphite/graphite.exp |
070ba483 | 1767 | (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all. |
45489e99 | 1768 | * gfortran.dg/graphite/interchange-1.f: Add comment. Clean |
070ba483 | 1769 | the graphite dump file. |
45489e99 SP |
1770 | * gfortran.dg/graphite/interchange-2.f: Same. |
1771 | * gfortran.dg/graphite/pr42334-1.f: New. | |
070ba483 SP |
1772 | |
1773 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1774 | ||
1775 | PR middle-end/42178 | |
1776 | PR middle-end/42334 | |
1777 | * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs | |
1778 | that are empty. | |
1779 | (lst_do_interchange_1): Renamed lst_interchange_select_inner. | |
1780 | (lst_try_interchange): Reimplemented. | |
1781 | (lst_interchange_select_inner): Same. | |
1782 | (lst_do_interchange): Renamed lst_interchange_select_outer. | |
1783 | Reimplemented. | |
1784 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1785 | ||
45489e99 SP |
1786 | * g++.dg/graphite/pr42130.C: Add -fgraphite-identity. |
1787 | * gcc.dg/graphite/block-0.c: Un-XFAILed. | |
1788 | * gcc.dg/graphite/pr42211.c: New. | |
1789 | * gfortran.dg/graphite/pr42334.f90: New. | |
070ba483 | 1790 | |
4b216ab0 SP |
1791 | 2009-12-14 Sebastian Pop <sebastian.pop@amd.com> |
1792 | ||
1793 | PR middle-end/42181 | |
1794 | * graphite-scop-detection.c (graphite_can_represent_scev): Handle more | |
1795 | carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR. | |
1796 | ||
45489e99 | 1797 | * gfortran.dg/graphite/pr42181.f90: New. |
4b216ab0 | 1798 | |
c880097d SP |
1799 | 2009-12-12 Sebastian Pop <sebpop@gmail.com> |
1800 | ||
1801 | PR middle-end/42284 | |
1802 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call | |
1803 | insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs. | |
1804 | (detect_commutative_reduction_arg): Simplified. | |
1805 | (detect_commutative_reduction): Early return when the argument of | |
1806 | the close phi is not of an SSA_NAME. | |
1807 | ||
45489e99 | 1808 | * gcc.dg/graphite/pr42284.c: New. |
c880097d SP |
1809 | |
1810 | 2009-12-11 Alexander Monakov <amonakov@ispras.ru> | |
1811 | ||
1812 | * dbgcnt.def (graphite_scop): New counter. | |
1813 | * graphite.c: Include dbgcnt.h | |
1814 | (graphite_transform_loops): Use new counter to limit transformations. | |
1815 | ||
d505015a SP |
1816 | 2009-12-08 Sebastian Pop <sebpop@gmail.com> |
1817 | ||
1818 | PR middle-end/42285 | |
1819 | * graphite-scop-detection.c (graphite_can_represent_init): Also | |
1820 | handle more complex MULT_EXPRs containing parameters by recursion | |
1821 | on the structure. | |
1822 | ||
45489e99 | 1823 | * gfortran.dg/graphite/pr42285.f90: New. |
d505015a SP |
1824 | |
1825 | 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
1826 | ||
45489e99 | 1827 | * g++.dg/graphite/pr42130.C: Fix type. |
d505015a | 1828 | |
ed807d06 AM |
1829 | 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org> |
1830 | ||
45489e99 SP |
1831 | * g++.dg/graphite/pr42130.C: Correct testcase. |
1832 | ||
1833 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
1834 | ||
1835 | * Merge from mainline (154493:154734). | |
1836 | ||
1837 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
1838 | ||
1839 | * Merge from mainline (151362:154491). | |
ed807d06 | 1840 | |
7c246f5e TG |
1841 | 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de> |
1842 | ||
1843 | * graphite-clast-to-gimple.c (try_mark_loop_parallel, | |
1844 | graphite_create_new_loop_guard, translate_clast_for): Fix comments. | |
1845 | ||
0dd91484 TG |
1846 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1847 | ||
1848 | PR middle-end/42130 | |
1849 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard, | |
1850 | translate_clast_for_loop): New. | |
1851 | (translate_clast_for): Add a condition around the loop, to do not | |
1852 | execute loops with zero iterations. | |
45489e99 SP |
1853 | * g++.dg/graphite/pr42130.C: New. |
1854 | * gcc.dg/graphite/pr35356-2.c: Adapt. | |
0dd91484 | 1855 | |
fd2d813d TG |
1856 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1857 | ||
1858 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
1859 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
1860 | Remove context_loop and level. | |
1861 | ||
9016166f TG |
1862 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1863 | ||
1864 | * graphite-clast-to-gimple.c (translate_clast_user, | |
1865 | translate_clast_for, translate_clast_guard): Simplify and move common | |
1866 | elements to translate_clast(). | |
1867 | (translate_clast): Simplify and get common elements. | |
1868 | ||
e1f9c1cd TG |
1869 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1870 | ||
1871 | * graphite-clast-to-gimple.c (translate_clast_user, | |
1872 | translate_clast_for, translate_clast_guard): Split out of | |
1873 | translate_clast. | |
1874 | ||
7a521ff2 TG |
1875 | 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de> |
1876 | ||
1877 | * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index, | |
1878 | clast_name_to_index, save_clast_name_index, debug_clast_name_index, | |
1879 | debug_clast_name_indexes_1, debug_clast_name_indexes, | |
1880 | clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h. | |
1881 | (clast_name_to_gcc, clast_to_gcc_expression, | |
1882 | clast_to_gcc_expression_red, gcc_type_for_clast_expr, | |
1883 | gcc_type_for_clast_eq, graphite_translate_clast_equation, | |
1884 | graphite_create_guard_cond_expr, graphite_create_new_loop, | |
1885 | translate_clast): Add params_index. | |
1886 | (initialize_cloog_names): Create parameter strings from scratch, do | |
1887 | not reference other strings. | |
1888 | (create_params_index): New. | |
1889 | (gloog): Initialize params_index. | |
1890 | * graphite-scop-detection (free_scops_1): Removed. | |
1891 | (limit_scops): Use normal free_scops. | |
1892 | * graphite-sese-to-poly.c (save_var_names): Removed. | |
1893 | (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES | |
1894 | and SESE_PARAMS_INDEX. | |
1895 | * sese.c (new_sese, free_sese): Dito. | |
1896 | * sese.h (struct sese): Remove params_index, params_names. | |
1897 | (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed. | |
1898 | ||
ca11b093 SP |
1899 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
1900 | ||
1901 | Revert the following patch from 2009-09-14: | |
1902 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
1903 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
1904 | * graphite-clast-to-gimple.c: Same. | |
1905 | * graphite-dependences.c: Same. | |
1906 | * graphite-interchange.c: Same. | |
1907 | * graphite-poly.c: Same. | |
1908 | * graphite-scop-detection.c: Same. | |
1909 | * graphite-sese-to-poly.c: Same. | |
1910 | * graphite.c: Same. | |
1911 | * lambda-code.c: Same. | |
1912 | * matrix-reorg.c: Same. | |
1913 | * tree-data-ref.c: Same. | |
1914 | * tree-if-conv.c: Same. | |
1915 | * tree-loop-distribu: Same.: Same. | |
1916 | * tree-loop-linear.c: Same. | |
1917 | * tree-parloops.c: Same. | |
1918 | * tree-predcom.c: Same. | |
1919 | * tree-vect-patterns.c: Same. | |
1920 | ||
8a9e9475 SP |
1921 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
1922 | ||
1923 | Revert patch from 2009-09-14. | |
1924 | * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite | |
1925 | passes at -O1 and below. | |
1926 | ||
4bf4e169 SP |
1927 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1928 | ||
1929 | PR middle-end/40281 | |
45489e99 | 1930 | * gcc.dg/graphite/pr40281.c: New. |
4bf4e169 SP |
1931 | |
1932 | * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride | |
1933 | evolutions should not variate in inner loops. | |
1934 | ||
12aec731 SP |
1935 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1936 | ||
1937 | PR middle-end/42050 | |
45489e99 | 1938 | * gfortran.dg/graphite/pr42050.f90: New. |
12aec731 | 1939 | |
aec12420 SP |
1940 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1941 | ||
1942 | * graphite-interchange.c (memory_strides_in_loop_depth): New. | |
1943 | (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth. | |
1944 | ||
25e20d33 SP |
1945 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1946 | ||
1947 | * graphite-blocking.c (scop_do_block): New. | |
1948 | * graphite-poly.c (apply_poly_transforms): Call scop_do_block. | |
1949 | * graphite-poly.h (scop_do_block): Declared. | |
1950 | ||
e3bde9f4 SP |
1951 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1952 | ||
1953 | * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter | |
1954 | depth is the loop nesting depth in the LST. Call psct_dynamic_dim | |
1955 | to transform depth into the time_depth before calling | |
1956 | pbb_number_of_iterations_at_time. | |
1957 | (lst_do_strip_mine): Use a scalar variable instead of recomputing | |
1958 | lst_depth. | |
1959 | ||
27e432be SP |
1960 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1961 | ||
1962 | Reverted the patch for "scattering permutations" from 2009-10-28. | |
1963 | ||
1964 | * graphite-poly.c (print_permutation): New. | |
1965 | (debug_permutation): New. | |
1966 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
1967 | (free_poly_bb): Free PBB_PERMUTATION. | |
1968 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
1969 | (struct pbb_permutation_elt): New. | |
1970 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
1971 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
1972 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
1973 | (new_pbb_permutation_elt): New. | |
1974 | (pbb_permutation_elt_free): New. | |
1975 | (struct poly_bb): Add field permutation. | |
1976 | (PBB_PERMUTATION): New. | |
1977 | (print_permutation): Declared. | |
1978 | (debug_permutation): Declared. | |
1979 | ||
2bc529bf KT |
1980 | 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> |
1981 | ||
1982 | * graphite-interchange.c (build_partial_difference): New. | |
1983 | (memory_stride_in_loop): Refactored the computation of | |
1984 | equality constraints into build_partial_difference function. | |
1985 | Added support for debugging stride computations. | |
1986 | ||
8c54631d SP |
1987 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
1988 | ||
1989 | * graphite-clast-to-gimple.c (gloog): Free if_region, | |
1990 | if_region->true_region, and if_region->region. | |
1991 | * sese.c (if_region_set_false_region): Free if_region->false_region. | |
1992 | (create_if_region_on_edge): Do not use GGC_NEW. | |
1993 | (move_sese_in_condition): Remove useless initialization. | |
1994 | ||
7b7f2ca7 SP |
1995 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
1996 | ||
1997 | * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters | |
1998 | for the loops created by the loop distribution. Do not modify the | |
1999 | input LSTs. | |
2000 | (lst_try_interchange_loops): Same. Use a temporary LST for the | |
2001 | transformed schedule. Call lst_update_scattering before data | |
2002 | dependence analysis. | |
2003 | (lst_try_interchange): Pass an extra parameter INDEX. | |
2004 | (lst_do_interchange_1): New. | |
2005 | (lst_do_interchange): Call lst_do_interchange_1. | |
2006 | (scop_do_interchange): Call lst_update_scattering. | |
2007 | * graphite-poly.c (apply_poly_transforms): Do not call | |
2008 | lst_update_scattering. | |
2009 | * graphite-poly.h (lst_pred): New. | |
2010 | (lst_succ): New. | |
2011 | (lst_find_first_pbb): Return NULL when not found. | |
2012 | (lst_empty_p): New. | |
2013 | (lst_insert_in_sequence): Allow LST1 to be NULL. | |
2014 | (lst_replace): New. | |
2015 | (lst_substitute_3): New. | |
2016 | * gcc.dg/graphite/interchange-1.c: XFail. | |
2017 | * gcc.dg/graphite/interchange-8.c: XFail. | |
2018 | * gcc.dg/graphite/interchange-11.c: XFail. | |
2019 | ||
6119e7d5 SP |
2020 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2021 | ||
2022 | * graphite-interchange.c (lst_perfectly_nested_p): New. | |
2023 | (lst_perfect_nestify): New. | |
2024 | (lst_try_interchange_loops): Call store_lst_schedule, | |
2025 | lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule. | |
2026 | (scop_do_interchange): Avoid redundant legality test. | |
2027 | Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE. | |
2028 | * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering. | |
2029 | * graphite-poly.h (psct_static_dim): New. | |
2030 | (lst_dewey_number_at_depth): New. | |
2031 | (lst_find_pbb): Restructured. | |
2032 | (lst_find_first_pbb): Restructured. | |
2033 | (lst_find_last_pbb): New. | |
2034 | (lst_contains_p): New. | |
2035 | (lst_contains_pbb): New. | |
2036 | (lst_create_nest): New. | |
2037 | (lst_remove_from_sequence): New. | |
2038 | (pbb_update_scattering): New. | |
2039 | (lst_update_scattering_under): New. | |
2040 | (lst_update_scattering_seq): New. | |
2041 | (lst_update_scattering): New. | |
2042 | (lst_insert_in_sequence): New. | |
2043 | (lst_distribute_lst): New. | |
2044 | (lst_remove_all_before_including_pbb): New. | |
2045 | (lst_remove_all_before_excluding_pbb): New. | |
2046 | ||
431f3f22 SP |
2047 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2048 | ||
2049 | * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice | |
2050 | get_loop_exit_edges. | |
2051 | ||
4c768046 SP |
2052 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2053 | ||
2054 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed. | |
2055 | ||
5fa8514e SP |
2056 | 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2057 | ||
2058 | * graphite-poly.c (print_permutation): New. | |
2059 | (debug_permutation): New. | |
2060 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2061 | (free_poly_bb): Free PBB_PERMUTATION. | |
2062 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2063 | (struct pbb_permutation_elt): New. | |
2064 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2065 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2066 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2067 | (new_pbb_permutation_elt): New. | |
2068 | (pbb_permutation_elt_free): New. | |
2069 | (struct poly_bb): Add field permutation. | |
2070 | (PBB_PERMUTATION): New. | |
2071 | (print_permutation): Declared. | |
2072 | (debug_permutation): Declared. | |
2073 | ||
6c6f84d7 SP |
2074 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2075 | ||
2076 | * graphite-clast-to-gimple.c (gloog): Do not call | |
2077 | sese_reset_aux_in_loops. | |
2078 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an | |
2079 | extra argument for domains. Do not use loop->aux. | |
2080 | (build_scop_iteration_domain): Initialize and free domains, pass it | |
2081 | to build_loop_iteration_domains and extract the information from | |
2082 | domains. Do not use loop->aux. | |
2083 | * sese.c (sese_reset_aux_in_loops): Removed. | |
2084 | * sese.h (sese_reset_aux_in_loops): Removed. | |
2085 | ||
585b3e19 SP |
2086 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2087 | ||
2088 | * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. | |
2089 | (dependency_in_loop_p): Same. | |
2090 | (translate_clast): Do not use loop->aux. Initialize | |
2091 | loop->can_be_parallel. | |
2092 | (mark_loops_parallel): Removed. | |
2093 | * graphite-clast-to-gimple.h (mark_loops_parallel): Removed. | |
2094 | * graphite.c (free_aux_in_new_loops): Removed. | |
2095 | (graphite_finalize): Do not call free_aux_in_new_loops. | |
2096 | (graphite_transform_loops): Do not call mark_loops_parallel. | |
2097 | ||
2098 | 2009-10-26 Li Feng <nemokingdom@gmail.com> | |
a7ed27ac LF |
2099 | |
2100 | * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed. | |
2101 | (translate_clast): Pass an extra parameter LEVEL. | |
2102 | Call get_scattering_level. | |
2103 | * graphite-clast-to-gimple.h (get_scattering_level): New. | |
2104 | ||
8e6ef139 SP |
2105 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2106 | ||
2107 | * cfgloop.c (alloc_loop): Initialize loop->single_iv. | |
2108 | * cfgloop.h (struct loop): New field single_iv. | |
2109 | ||
2110 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use | |
2111 | loop->aux anymore: use loop->single_iv. | |
2112 | (graphite_loop_normal_form): Moved... | |
2113 | (build_graphite_loop_normal_form): Removed. | |
2114 | (gloog): Do not call build_graphite_loop_normal_form. | |
2115 | (free_aux_in_new_loops): Moved... | |
2116 | (mark_loops_parallel): Restructure. | |
2117 | * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare. | |
2118 | * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here. | |
2119 | (scop_canonicalize_loops): New. | |
2120 | (build_poly_scop): Call scop_canonicalize_loops. | |
2121 | * graphite.c (free_aux_in_new_loops): ...here. | |
2122 | ||
e6dd91b2 SP |
2123 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2124 | ||
2125 | * g++.dg/graphite/graphite.exp: Add the same rules as in | |
2126 | gcc.dg/graphite/graphite.exp. | |
2127 | ||
47fb473f SP |
2128 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2129 | ||
2130 | * g++.dg/graphite/id-1.C: New. | |
2131 | ||
63858ac6 SP |
2132 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2133 | ||
2134 | * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra | |
2135 | argument base_name. | |
2136 | (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array. | |
2137 | (rewrite_phi_out_of_ssa): Same. | |
2138 | (rewrite_cross_bb_scalar_deps): Same. | |
2139 | (translate_scalar_reduction_to_array): Same. | |
2140 | ||
decfe536 SP |
2141 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2142 | ||
2143 | * graphite-sese-to-poly.c (build_scop_drs): Disable call to | |
2144 | dump_alias_graphs. | |
2145 | ||
0d5ef2a9 SP |
2146 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2147 | ||
2148 | * graphite-sese-to-poly.c (dump_alias_graphs): New. | |
2149 | (build_scop_drs): Call dump_alias_graphs. | |
2150 | ||
f70de156 SP |
2151 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2152 | ||
2153 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE, | |
2154 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2155 | (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE, | |
2156 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2157 | * graphite-poly.h (free_lst): New. | |
2158 | (store_lst_schedule): Free SCOP_SAVED_SCHEDULE. | |
2159 | (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE. | |
2160 | ||
74715a9b SP |
2161 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2162 | ||
2163 | * graphite-poly.h (struct scop): Add a field saved_schedule. | |
2164 | (SCOP_SAVED_SCHEDULE): New. | |
2165 | (store_lst_schedule): New. | |
2166 | (restore_lst_schedule): New. | |
2167 | (store_scattering): Call store_lst_schedule. | |
2168 | (restore_scattering): Call restore_lst_schedule. | |
2169 | ||
fb00d28e SP |
2170 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2171 | ||
2172 | * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting. | |
2173 | (pdr_add_alias_set): Same. | |
2174 | (build_poly_dr): Same. | |
2175 | (build_alias_set_optimal_p): Same. | |
2176 | (build_base_obj_set_for_drs): Same. Do not store the result of | |
2177 | graphds_dfs. | |
2178 | ||
917f481a SP |
2179 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2180 | ||
2181 | * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize | |
2182 | all_components_are_cliques to 1. | |
2183 | ||
2b178a5f LF |
2184 | 2009-10-20 Li Feng <nemokingdom@gmail.com> |
2185 | ||
2186 | * graphite-sese-to-poly.c (free_data_refs_aux): Update to free | |
2187 | the new structure. | |
2188 | (pdr_add_alias_set): Update retrieving alias_set_num. | |
2189 | (build_poly_dr): Update retrieving dr_base_object_set. | |
2190 | (partition_drs_to_sets): Remove. | |
2191 | (build_alias_set_optimal_p): New. | |
2192 | (build_alias_set_for_drs): Rename. | |
2193 | (build_scop_drs): Update. | |
2194 | * graphite-sese-to-poly.h (struct base_alias_pair): New. | |
2195 | (ALIAS_SET_INDEX): Remove. | |
2196 | (BASE_OBJECT_SET_INDEX): Remove. | |
2197 | ||
e8af4842 SP |
2198 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2199 | ||
2200 | * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL. | |
2201 | ||
3899a0b2 SP |
2202 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2203 | ||
2204 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer | |
2205 | loop upper bounds for 1-element arrays at end of structures. | |
2206 | * tree-flow.h (array_at_struct_end_p): Declared. | |
2207 | * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore. | |
2208 | ||
e34e5835 SP |
2209 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2210 | ||
2211 | * g++.dg/graphite/pr41305.C: New. | |
2212 | ||
07b0d0e2 AM |
2213 | 2009-10-20 Alexander Monakov <amonakov@ispras.ru> |
2214 | ||
2215 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize | |
2216 | construction of parameter constraints from loop iteration analysis. | |
2217 | * gcc.dg/graphite/run-id-2.c: New test. | |
2218 | ||
67255edf SP |
2219 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2220 | ||
2221 | * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma | |
2222 | and new_cstr. | |
2223 | ||
14ba996b SP |
2224 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2225 | ||
2226 | * graphite-dependences.c (dependence_polyhedron_1): Remove | |
2227 | unused gdim dimensions from the DDR polyhedron. | |
2228 | ||
4454141a SP |
2229 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2230 | ||
2231 | * graphite-dependences.c (pddr_transformed_scattering): New. | |
2232 | (dot_original_deps_stmt_1): New. | |
2233 | (dot_transformed_deps_stmt_1): New. | |
2234 | (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and | |
2235 | dot_transformed_deps_stmt_1. | |
2236 | (dot_original_deps): New. | |
2237 | (dot_transformed_deps): New. | |
2238 | (dot_deps_1): Call dot_original_deps and dot_transformed_deps. | |
2239 | ||
dd61070d SP |
2240 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2241 | ||
2242 | * graphite-dependences.c (reduction_dr_1): Remove wrong | |
2243 | assert: reduction BBs can have multiple reduction writes | |
4454141a | 2244 | to memory. interchange-3.f90 is an example. |
dd61070d | 2245 | |
65421bcc SP |
2246 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2247 | ||
2248 | * gfortran.dg/graphite/interchange-3.f90: New. | |
2249 | ||
3e9f43ee SP |
2250 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2251 | ||
2252 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
2253 | ||
16bf8ab1 SP |
2254 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2255 | ||
2256 | * graphite-dependences.c (dependence_polyhedron_1): Add the | |
2257 | context to the dependence polyhedron. | |
2258 | ||
d422adfa SP |
2259 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2260 | ||
2261 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize | |
2262 | PBB_PDR_DUPLICATES_REMOVED. | |
2263 | (new_poly_bb): Same. | |
2264 | ||
62e475c5 SP |
2265 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2266 | ||
2267 | * graphite-sese-to-poly.c (find_scop_parameters): Initialize | |
2268 | SCOP_CONTEXT. | |
2269 | (build_loop_iteration_domains): Extract bounds on parameters | |
2270 | based on the data size. | |
2271 | (build_scop_context): Do not initialize SCOP_CONTEXT; | |
2272 | add new constraints. | |
2273 | ||
3ecbce7e SP |
2274 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2275 | ||
2276 | * graphite-ppl.c (ppl_min_for_le_polyhedron): New. | |
2277 | * graphite-ppl.h (graphite-ppl.h): Declared. | |
2278 | ||
04863400 SP |
2279 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2280 | ||
2281 | * graphite-ppl.c (ppl_print_linear_expr): New. | |
2282 | (debug_ppl_linear_expr): New. | |
2283 | * graphite-ppl.h (ppl_print_linear_expr): Declared. | |
2284 | (debug_ppl_linear_expr): Declared. | |
2285 | ||
009150e1 SP |
2286 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2287 | ||
2288 | * graphite-interchange.c: Fix comments. | |
2289 | * gcc.dg/graphite/block-1.c: Fix comments. | |
2290 | ||
9b196c93 SP |
2291 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2292 | ||
2293 | * gcc.dg/graphite/interchange-7.c: Un-XFAILed. | |
2294 | * gcc.dg/graphite/interchange-9.c: Un-XFAILed. | |
2295 | ||
caa675f8 SP |
2296 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2297 | ||
2298 | Reapply the patch from Alexander Monakov that disappeared during | |
2299 | the last merges from trunk. | |
2300 | ||
2301 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> | |
2302 | ||
2303 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2304 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2305 | ||
92d92abb SP |
2306 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2307 | ||
2308 | * graphite-interchange.c (memory_stride_in_loop): The depth | |
2309 | argument corresponds to a dynamic time dimension, so use | |
2310 | psct_dynamic_dim to refer to the transformed scattering dimension. | |
2311 | ||
23159c56 SP |
2312 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2313 | ||
2314 | * graphite-interchange.c (memory_stride_in_loop): Fix comments. | |
2315 | ||
5c6c42c9 SP |
2316 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2317 | ||
2318 | * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the | |
2319 | root of the LST. | |
2320 | * graphite-interchange.c (lst_do_interchange): Avoid interchanging | |
2321 | the root of the LST. | |
2322 | * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost | |
2323 | fake loop. | |
2324 | (print_lst): Print the root of LST in a different format. | |
2325 | * graphite-poly.h (lst_depth): Adjust to include the root of the LST. | |
2326 | ||
f58be90e SP |
2327 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2328 | ||
2329 | * graphite-poly.c (print_scop): Fix pretty printing of a SCoP. | |
2330 | ||
4e4ee197 SP |
2331 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2332 | ||
2333 | * doc/passes.texi: Document the Graphite infrastructure. | |
2334 | ||
6c4499b6 SP |
2335 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2336 | ||
2337 | * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge. | |
2338 | (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts, | |
2339 | and check the SSA representation. | |
2340 | ||
2341 | * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193. | |
2342 | ||
8e49fe91 SP |
2343 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2344 | ||
2345 | * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR. | |
2346 | ||
bb2b2dfc SP |
2347 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2348 | ||
2349 | * gcc.dg/graphite/interchange-11.c: New. | |
2350 | ||
e7ed4a64 SP |
2351 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2352 | ||
2353 | * gcc.dg/graphite/interchange-8.c: Enable loop interchange. | |
2354 | ||
d7f25aa6 SP |
2355 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2356 | ||
2357 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2358 | Add -fno-loop-strip-mine and -fno-loop-interchange. | |
2359 | (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and | |
2360 | -fno-loop-strip-mine. | |
2361 | * gfortran.dg/graphite/graphite.exp: Same. | |
2362 | ||
6231cf49 SP |
2363 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2364 | ||
2365 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2366 | Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK. | |
2367 | (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed | |
2368 | DEFAULT_FLAGS_GRAPHITE_IDENTITY. | |
2369 | (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed | |
2370 | DEFAULT_FLAGS_GRAPHITE_INTERCHANGE. | |
2371 | (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed | |
2372 | DEFAULT_FLAGS_GRAPHITE_SCOP. | |
2373 | (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID. | |
2374 | (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE. | |
2375 | ||
2b7c09a8 SP |
2376 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2377 | ||
2378 | * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments. | |
2379 | ||
b0c7a278 KT |
2380 | 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2381 | Sebastian Pop <sebastian.pop@amd.com> | |
2382 | ||
2383 | * graphite-interchange.c (build_linearized_memory_access): Pass an | |
2384 | offset as parameter. | |
2385 | (memory_stride_in_loop): Include transform scattering in the | |
2386 | access functions to be able to querry the strides in the | |
2387 | transformed loops. | |
2388 | (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim, | |
2389 | not the psct_iterator_dim. | |
2390 | ||
13ae6f91 SP |
2391 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2392 | ||
2393 | * graphite-blocking.c (pbb_do_strip_mine): Removed. | |
2394 | (lst_do_strip_mine_loop): New. | |
2395 | (lst_do_strip_mine): New. | |
2396 | (scop_do_strip_mine): Call lst_do_strip_mine. | |
2397 | * graphite-poly.h (lst_add_loop_under_loop): New. | |
2398 | (lst_find_first_pbb): New. | |
2399 | ||
c0fe753b SP |
2400 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2401 | ||
2402 | * graphite-poly.c (loop_to_lst): Fix LST creation. | |
2403 | ||
8d75ec87 TG |
2404 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> |
2405 | ||
45489e99 | 2406 | * gcc.dg/graphite/id-15.c: (8 * 8) replaced with |
8d75ec87 TG |
2407 | sizeof(unsigned long) to make it run on 32bit systems. |
2408 | ||
2409 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
2410 | ||
45489e99 | 2411 | * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not |
8d75ec87 TG |
2412 | SEGFAULT on 32bit. |
2413 | ||
2e5a7cbf RU |
2414 | 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
2415 | ||
8d75ec87 TG |
2416 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix |
2417 | Comment. | |
2e5a7cbf RU |
2418 | (write_alias_graph_to_ascii_dot): New. |
2419 | (write_alias_graph_to_ascii_ecc): Ditto. | |
8d75ec87 TG |
2420 | (partition_drs_to_sets): Add testing of optimality of current method |
2421 | which assigns alias numbers according to DFS Comopnent number. used | |
2422 | as heuristic for the upcoming ECC algorithm. | |
2e5a7cbf RU |
2423 | (build_scop_drs): Write to file also with the ecc and dot format. |
2424 | ||
1e82de2a SP |
2425 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2426 | ||
2427 | * gfortran.dg/graphite/interchange-1.f: XFail. | |
2428 | ||
9bf13085 SP |
2429 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2430 | ||
2431 | * graphite.c (graphite_initialize): Do not handle functions with | |
2432 | more than 100 basic blocks. | |
2433 | ||
e797c5f2 SP |
2434 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2435 | ||
2436 | * graphite-blocking.c (pbb_do_strip_mine): Use | |
2437 | PARAM_LOOP_BLOCK_TILE_SIZE. | |
2438 | ||
bfa00f48 SP |
2439 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2440 | ||
2441 | * graphite-poly.c (dot_lst_1): New. | |
2442 | (dot_lst): New. | |
2443 | * graphite-poly.h (dot_lst): Declared. | |
2444 | ||
3c7bdeb8 SP |
2445 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2446 | ||
2447 | * graphite-dependences.c (dot_deps_stmt_1): New. | |
2448 | (dot_deps_stmt): New. | |
2449 | * graphite-dependences.h (dot_deps_stmt): Declared. | |
2450 | ||
c7dc2fab SP |
2451 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2452 | ||
2453 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do | |
2454 | not replace cross BB scalar dependences ending on PHI nodes. | |
2455 | (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes. | |
2456 | ||
24c79709 SP |
2457 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2458 | ||
2459 | * graphite-poly.c (apply_poly_transforms): Implement the high | |
2460 | level driver for flag_loop_block. | |
45489e99 | 2461 | * opts.c (decode_options): Enable flag_loop_block at -O2. |
24c79709 SP |
2462 | * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for |
2463 | flag_loop_block. | |
2464 | ||
2465 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add | |
2466 | -floop-block. | |
2467 | * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2468 | Add -floop-block. | |
2469 | ||
a0517b76 SP |
2470 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2471 | ||
2472 | * graphite-poly.h (lst_find_pbb): New. | |
2473 | (find_lst_loop): New. | |
2474 | ||
9d077835 SP |
2475 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2476 | ||
2477 | * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH. | |
2478 | * graphite-poly.h (struct scop): Remove dep_graph field. | |
2479 | (SCOP_DEP_GRAPH): Removed. | |
2480 | ||
75b63a91 SP |
2481 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2482 | ||
2483 | * graphite-poly.h (copy_lst): Do full copy of LST. | |
2484 | ||
7cc4ff8d SP |
2485 | 2009-10-07 Sebastian Pop <sebastian.pop@amd.com> |
2486 | ||
2487 | * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi | |
2488 | when the loop stride is zero. | |
2489 | ||
2490 | * gcc.dg/graphite/id-16.c: New. | |
2491 | ||
60d2a8c3 SP |
2492 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2493 | ||
2494 | * graphite-dependences.c (reduction_dr_1): New. | |
2495 | (reduction_dr_p): New. | |
2496 | (graphite_legal_transform_dr): Call reduction_dr_p. | |
2497 | (reduction_ddr): Renamed reduction_ddr_p. | |
2498 | * graphite-poly.h (same_pdr_p): New. | |
2499 | (number_of_write_pdrs): New. | |
2500 | * graphite-sese-to-poly.c (nb_data_writes_in_bb): New. | |
2501 | (split_reduction_stmt): Do not split reduction statements | |
2502 | when there are no writes to memory. | |
2503 | (translate_scalar_reduction_to_array_for_stmt): Insert the | |
2504 | memory reduction statement just after the scalar reduction statement. | |
2505 | ||
2506 | * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c. | |
2507 | Un-XFAIL-ed. | |
2508 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed. | |
2509 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed. | |
2510 | ||
95baeff8 SP |
2511 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2512 | ||
2513 | * graphite-interchange.c (lst_apply_interchange): New. | |
2514 | (lst_interchange_profitable_p): New. | |
2515 | (lst_try_interchange_loops): New. | |
2516 | (lst_try_interchange): New. | |
2517 | (lst_do_interchange): New. | |
2518 | (pbb_do_interchange): Removed. | |
2519 | (scop_do_interchange): Call lst_do_interchange. | |
2520 | ||
a36d12e2 SP |
2521 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2522 | ||
2523 | * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and | |
2524 | SCOP_TRANSFORMED_SCHEDULE. | |
2525 | (loop_to_lst): New. | |
2526 | (scop_to_lst): New. | |
2527 | (print_lst): New. | |
2528 | (debug_lst): New. | |
2529 | * graphite-poly.h (lst_p): New. | |
2530 | (struct lst): New. | |
2531 | (LST_LOOP_P): New. | |
2532 | (LST_LOOP_FATHER): New. | |
2533 | (LST_PBB): New. | |
2534 | (LST_SEQ): New. | |
2535 | (scop_to_lst): Declared. | |
2536 | (print_lst): Declared. | |
2537 | (debug_lst): Declared. | |
2538 | (new_lst_loop): New. | |
2539 | (new_lst_stmt): New. | |
2540 | (copy_lst): New. | |
2541 | (lst_depth): New. | |
2542 | (lst_dewey_number): New. | |
2543 | (struct scop): Add original_schedule and transformed_schedule fields. | |
2544 | (SCOP_ORIGINAL_SCHEDULE): New. | |
2545 | (SCOP_TRANSFORMED_SCHEDULE): New. | |
2546 | * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst. | |
2547 | ||
a0dd1440 SP |
2548 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2549 | ||
2550 | * graphite-dependences.c (reduction_ddr): New. | |
2551 | (graphite_legal_transform_bb): Call reduction_ddr. | |
2552 | * graphite-poly.c (new_poly_bb): Pass a new bool parameter. | |
2553 | Initialize PBB_IS_REDUCTION. | |
2554 | * graphite-poly.h (struct poly_bb): New bool field is_reduction. | |
2555 | (PBB_IS_REDUCTION): New. | |
2556 | (new_poly_bb): Update declaration. | |
2557 | * graphite-scop-detection.h (build_scop_bbs): Removed. | |
2558 | (nb_reductions_in_loop): Removed. | |
2559 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap | |
2560 | parameter for reductions. | |
2561 | (try_generate_gimple_bb): Update call to new_poly_bb. | |
2562 | (build_scop_bbs_1): Same. | |
2563 | (build_scop_bbs): Same. | |
2564 | (gsi_for_phi_node): New. | |
2565 | (scalar_close_phi_node_p): Remove gcc_assert. | |
2566 | (split_reduction_stmt): New. | |
2567 | (is_reduction_operation_p): New. | |
2568 | (phi_contains_arg): New. | |
2569 | (follow_ssa_with_commutative_ops): New. | |
2570 | (detect_commutative_reduction_arg): New. | |
2571 | (detect_commutative_reduction_assign): New. | |
2572 | (follow_inital_value_to_phi): New. | |
2573 | (edge_initial_value_for_loop_phi): New. | |
2574 | (initial_value_for_loop_phi): New. | |
2575 | (detect_commutative_reduction): New. | |
2576 | (translate_scalar_reduction_to_array_for_stmt): New. | |
2577 | (insert_copyout): New. | |
2578 | (insert_copyin): New. | |
2579 | (translate_scalar_reduction_to_array): New. | |
2580 | (rewrite_commutative_reductions_out_of_ssa_close_phi): New. | |
2581 | (rewrite_commutative_reductions_out_of_ssa_loop): New. | |
2582 | (rewrite_commutative_reductions_out_of_ssa): New. | |
2583 | (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa. | |
2584 | * sese.h (split_region_for_bb): New. | |
2585 | ||
2586 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math. | |
2587 | * gcc.dg/graphite/interchange-1.c: Fix format. | |
2588 | * gcc.dg/graphite/interchange-10.c: New. | |
2589 | ||
db7e9485 SP |
2590 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2591 | ||
2592 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove | |
2593 | buggy assert. | |
2594 | ||
5dcc64d9 SP |
2595 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2596 | ||
2597 | * graphite-sese-to-poly.c (scev_analyzable_p): New. | |
2598 | (rewrite_cross_bb_scalar_dependence): New. | |
2599 | (rewrite_cross_bb_scalar_deps): New. | |
2600 | (rewrite_reductions_out_of_ssa): Use bb_in_sese_p. | |
2601 | Call rewrite_cross_bb_scalar_deps. | |
2602 | ||
947121b8 SP |
2603 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2604 | ||
2605 | * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed. | |
2606 | (insert_out_of_ssa_copy): Directly use gsi_after_labels and | |
2607 | gsi_for_stmt. | |
2608 | ||
d48e288d SP |
2609 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2610 | ||
2611 | * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. | |
2612 | * graphite-interchange.c (pbb_do_interchange): Same. | |
2613 | * graphite-poly.c (print_scattering_function): Same. | |
2614 | (debug_pdrs): Same. | |
2615 | * graphite-poly.h (pbb_loop): New. | |
2616 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. | |
2617 | ||
d17286f6 SP |
2618 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2619 | ||
2620 | * graphite-scop-detection.c (limit_scops): Do not build poly_bbs. | |
2621 | ||
ee03cd20 SP |
2622 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2623 | ||
2624 | * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, | |
2625 | so don't pass a pointer to it. | |
2626 | (build_alias_set_for_drs): Same. | |
2627 | (build_base_obj_set_for_drs): Same. | |
2628 | (build_scop_drs): Same. | |
2629 | ||
888beba1 LF |
2630 | 2009-09-26 Li Feng <nemokingdom@gmail.com> |
2631 | ||
2632 | * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file | |
2633 | the alias graph of data references. | |
2634 | ||
cd43e5d7 LF |
2635 | 2009-09-25 Li Feng <nemokingdom@gmail.com> |
2636 | ||
2637 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. | |
2638 | (build_scop_drs): When debugging, write the alias graph to file, | |
2639 | otherwise, should be disabled. | |
2640 | ||
45489e99 SP |
2641 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2642 | ||
2643 | * Merge from mainline (151310:151361). | |
2644 | ||
2645 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2646 | ||
2647 | * Merge from mainline (151171:151310). | |
2648 | ||
2649 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2650 | ||
2651 | * Merge from mainline (151171:151806). | |
2652 | ||
2653 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2654 | ||
2655 | * Revert the last commit. | |
2656 | ||
2657 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2658 | ||
2659 | * Merge from mainline (151171:151819). | |
2660 | ||
aeda6535 SP |
2661 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2662 | ||
2663 | * graphite-scop-detection.c (stmt_simple_memref_p): Removed. | |
2664 | (is_simple_operand): Remove call to stmt_simple_memref_p. | |
2665 | (stmt_simple_for_scop_p): Update call to is_simple_operand. | |
2666 | ||
8b6b8570 DE |
2667 | 2009-09-17 David Edelsohn <edelsohn@gnu.org> |
2668 | ||
45489e99 SP |
2669 | * gcc.dg/graphite/interchange-mvt.c: New File. |
2670 | * gcc.dg/graphite/scop-dsyrk.c: New File. | |
2671 | * gcc.dg/graphite/scop-dsyr2k.c: New File. | |
2672 | * gcc.dg/graphite/scop-mvt.c: New File. | |
2673 | * gcc.dg/graphite/scop-sor.c: New File. | |
8b6b8570 | 2674 | |
1825f9a2 LF |
2675 | 2009-09-17 Li Feng <nemokingdom@gmail.com> |
2676 | ||
1825f9a2 LF |
2677 | * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. |
2678 | (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. | |
2679 | (graphite_carried_dependence_level_k): Ditto. | |
2680 | * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. | |
2681 | * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. | |
2682 | (new_poly_dr): Adjust declaration. | |
2683 | * graphite-sese-to-poly.c (free_data_refs_aux): New. | |
2684 | (free_gimple_bb): Added free_data_refs_aux. | |
2685 | (build_poly_dr): Add dr_base_object_set. | |
2686 | (partition_drs_to_sets): New. | |
2687 | (dr_same_base_object_p): New. | |
2688 | (build_alias_set_for_drs): New. | |
2689 | (build_base_object_set_for_drs): New. | |
2690 | (build_scop_drs): Add build_base_obj_set_for_drs. | |
2691 | * graphite-sese-to-poly.h: Added #define for alias set number index and | |
2692 | base object set index. | |
2693 | * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. | |
2694 | * libgomp/testsuite/libgomp.graphite/pr4118.c: New. | |
2695 | ||
ac90803f SP |
2696 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> |
2697 | ||
2698 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2699 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2700 | ||
54fc808a SP |
2701 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2702 | ||
2703 | * graphite-sese-to-poly.c (struct irp_data): Removed. | |
2704 | (idx_record_params): Removed. | |
2705 | (find_params_in_bb): Scan for parameters the access functions; don't | |
2706 | parse the tree representation. | |
2707 | ||
e88e021f SP |
2708 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2709 | ||
2710 | * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite | |
2711 | passes at -O1 and below. | |
2712 | ||
3690f8d7 SP |
2713 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2714 | ||
2715 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
2716 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
2717 | * graphite-clast-to-gimple.c: Same. | |
2718 | * graphite-dependences.c: Same. | |
2719 | * graphite-interchange.c: Same. | |
2720 | * graphite-poly.c: Same. | |
2721 | * graphite-scop-detection.c: Same. | |
2722 | * graphite-sese-to-poly.c: Same. | |
2723 | * graphite.c: Same. | |
2724 | * lambda-code.c: Same. | |
2725 | * matrix-reorg.c: Same. | |
2726 | * tree-data-ref.c: Same. | |
2727 | * tree-if-conv.c: Same. | |
2728 | * tree-loop-distribu: Same.: Same. | |
2729 | * tree-loop-linear.c: Same. | |
2730 | * tree-parloops.c: Same. | |
2731 | * tree-predcom.c: Same. | |
2732 | * tree-vect-patterns.c: Same. | |
2733 | ||
2495a183 SP |
2734 | 2009-09-02 Sebastian Pop <sebastian.pop@amd.com> |
2735 | ||
2736 | Partially revert the previous patch, except the following. | |
2737 | * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass | |
2738 | as parameters the operands of the not expression. | |
2739 | ||
20179b0d SP |
2740 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2741 | ||
2742 | * tree-scalar-evolution.c (instantiate_scev_assign): New. | |
2743 | Do not call analyze_scalar_evolution on assignments. | |
2744 | (instantiate_scev_phi): Call analyze_scalar_evolution. | |
2745 | (instantiate_scev_name): Call instantiate_scev_assign and | |
2746 | instantiate_scev_phi. | |
2747 | (instantiate_scev_not): Adapted to pass as parameters the operands | |
2748 | of the not expression. | |
2749 | ||
ffa34f4b SP |
2750 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2751 | ||
2752 | * tree-scalar-evolution.c (instantiate_scev_binary): Adapted | |
2753 | to pass as parameters the operands of the binary expression. | |
2754 | ||
4b9d48a1 SP |
2755 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2756 | ||
2757 | * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed | |
2758 | instantiate_scev_not. Handle NEGATE_EXPR. | |
2759 | (instantiate_scev_r): Handle NEGATE_EXPR. | |
2760 | ||
9e5dc77f SP |
2761 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2762 | ||
2763 | * tree-scalar-evolution.c (instantiate_scev_1): Renamed | |
2764 | instantiate_scev_r. | |
2765 | (instantiate_scev_r): Move code in instantiate_scev_2 | |
2766 | and instantiate_scev_1. | |
2767 | ||
d814176c SP |
2768 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2769 | ||
2770 | * tree-scalar-evolution.c (instantiate_scev_3): New. | |
2771 | (instantiate_scev_1): Move code in instantiate_scev_3. | |
2772 | ||
ec6636eb SP |
2773 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2774 | ||
2775 | * tree-scalar-evolution.c (instantiate_scev_poly): New. | |
2776 | (instantiate_scev_1): Move code in instantiate_scev_poly. | |
2777 | ||
7ec0665d SP |
2778 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2779 | ||
2780 | * tree-scalar-evolution.c (instantiate_scev_bitnot): New. | |
2781 | (instantiate_scev_1): Move code in instantiate_scev_bitnot. | |
2782 | ||
9c382ce9 SP |
2783 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2784 | ||
2785 | * tree-scalar-evolution.c (instantiate_scev_convert): New. | |
2786 | (instantiate_scev_1): Move code in instantiate_scev_convert. | |
2787 | ||
15fda317 SP |
2788 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2789 | ||
2790 | * tree-scalar-evolution.c (instantiate_scev_binary): New. | |
2791 | (instantiate_scev_1): Move code in instantiate_scev_binary. | |
2792 | ||
320f5a78 SP |
2793 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2794 | ||
2795 | * tree-scalar-evolution.c (instantiate_scev_name): New. | |
2796 | (instantiate_scev_1): Move code in instantiate_scev_name. | |
2797 | ||
2798 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> | |
2799 | ||
2800 | * Merge from mainline (150992:151171). | |
2801 | ||
45489e99 SP |
2802 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2803 | ||
2804 | * opts.c (decode_options): Enable flag_loop_interchange at -O2. | |
2805 | ||
211694b6 SP |
2806 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2807 | ||
2808 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
2809 | pbb_remove_duplicate_pdrs. | |
2810 | * graphite-poly.c (can_collapse_pdr): Removed. | |
2811 | (pdr_find_duplicate): Removed. | |
2812 | (can_collapse_pdrs): New. | |
2813 | (pbb_remove_duplicate_pdrs): New. | |
2814 | (new_poly_dr): Do not look for duplicates. | |
2815 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
2816 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
2817 | (pbb_remove_duplicate_pdrs): Declared. | |
2818 | ||
7bd2a8a7 SP |
2819 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2820 | ||
2821 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
2822 | the strides by multiplying by PDR_NB_REFS. | |
2823 | * graphite-poly.c (can_collapse_pdr): New. | |
2824 | (pdr_find_duplicate): New. | |
2825 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
2826 | Initialize PDR_NB_REFS. | |
2827 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
2828 | (PDR_NB_REFS): New. | |
2829 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
2830 | ||
2831 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
2832 | ||
2833 | Revert one of the previous commits: | |
2834 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
2835 | the computation of symmetric data dependence relations. | |
2836 | (dependency_between_pbbs_p): Same. | |
2837 | ||
93b2db87 SP |
2838 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2839 | ||
2840 | PR middle-end/40965 | |
2841 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
2842 | any transform. | |
2843 | ||
d8eeb078 SP |
2844 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2845 | ||
2846 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
2847 | for read-read dependence relations. | |
2848 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
2849 | (pdr_read_p): New. | |
2850 | (pdr_write_p): New. | |
2851 | (pdr_may_write_p): New. | |
2852 | ||
e6dec0fb SP |
2853 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2854 | ||
2855 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
2856 | (struct poly_dr): Same. | |
2857 | (new_poly_dr): Same. | |
2858 | * graphite-poly.c (new_poly_dr): Same. | |
2859 | ||
baf4b881 KT |
2860 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2861 | Sebastian Pop <sebastian.pop@amd.com> | |
2862 | ||
2863 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
2864 | pbb_strip_mine_time_depth. Changed the implementation so that | |
2865 | transformation is expressed as a transformation on | |
2866 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
2867 | scheduling format is preserved. | |
2868 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
2869 | iteration number of a given time (scattering) dimension, | |
2870 | and not on a original loop depth dimension. | |
2871 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
2872 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
2873 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
2874 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
2875 | (pbb_nb_dynamic_scattering_transform): New. | |
2876 | (psct_dynamic_dim): New. | |
2877 | ||
059a5f9f KT |
2878 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2879 | ||
2880 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
2881 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
2882 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
2883 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
2884 | (memory_stride_in_loop): Same. | |
2885 | ||
afae0207 SP |
2886 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2887 | ||
2888 | * graphite-dependences.c (pddr_original_scattering): New. | |
2889 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
2890 | (dot_deps_1): New. | |
2891 | (dot_deps): New. | |
2892 | * graphite-dependences.h (dot_deps): Declared. | |
2893 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
2894 | (print_pdr): Print PDR_ID. | |
2895 | * graphite-poly.h (struct poly_dr): Add field id. | |
2896 | (PDR_ID): New. | |
2897 | (pbb_index): New. | |
2898 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
2899 | ||
f8e0bb8b SP |
2900 | 2009-08-22 Sebastian Pop <sebastian.pop@amd.com> |
2901 | ||
2902 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
2903 | not delete the original dependence relation. | |
2904 | ||
2905 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
2906 | ||
2907 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
2908 | the computation of symmetric data dependence relations. | |
2909 | (dependency_between_pbbs_p): Same. | |
2910 | ||
e37f165f SP |
2911 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> |
2912 | ||
2913 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
2914 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
2915 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
2916 | (free_poly_ddr): New. | |
2917 | (pddr_is_empty): New. | |
2918 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
2919 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
2920 | Remove fprintfs. | |
2921 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
2922 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
2923 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
2924 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
2925 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
2926 | (PDRP_SINK): Renamed PDDR_SINK. | |
2927 | (PDRP_DDP): Renamed PDDR_DDP. | |
2928 | (PDDR_KIND): New. | |
2929 | (free_poly_ddr): Declared. | |
2930 | * graphite-poly.c (new_scop): Use the new hash function names. | |
2931 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
2932 | into original_pddrs. | |
2933 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
2934 | ||
2935 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
2936 | ||
2937 | * Merge from mainline (150764:150992). | |
2938 | ||
45e76e9f SP |
2939 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
2940 | ||
2941 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
2942 | bounds with LT_EXPR to make niter analysis more precise on code | |
2943 | generated by Graphite. | |
2944 | ||
66b466c3 SP |
2945 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
2946 | ||
2947 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
2948 | (graphite_legal_transform_bb): Same. | |
2949 | (poly_drs_may_alias_p): Same. | |
2950 | ||
f263917c SP |
2951 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
2952 | ||
2953 | PR middle-end/40981 | |
2954 | * graphite-ppl.c (ppl_max_for_le): Correct the use of | |
2955 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
2956 | ||
2957 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2958 | ||
2959 | * graphite-poly.c (print_pbb): Print PBB index. | |
2960 | ||
2961 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2962 | ||
2963 | * Merge from mainline (r150672:150764). | |
2964 | ||
2965 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2966 | ||
2967 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
2968 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
2969 | * graphite-ppl.c (ppl_max_for_le): ... here. | |
2970 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
2971 | ||
2972 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> | |
2973 | ||
2974 | * Merge from mainline (r150372:150672). | |
2975 | ||
30de1632 SP |
2976 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
2977 | ||
2978 | PR middle-end/40980 | |
2979 | * sese.c (convert_for_phi_arg): New. | |
2980 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
2981 | ||
45489e99 | 2982 | * gfortran.dg/graphite/id-17.f: New. |
30de1632 | 2983 | |
8c31ebfa SP |
2984 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
2985 | ||
2986 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
2987 | unknown subscript upper bounds. | |
2988 | ||
45489e99 | 2989 | * gcc.dg/graphite/interchange-6.c: Un-XFAIL. |
8c31ebfa | 2990 | |
fb9fb290 SP |
2991 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
2992 | Pranav Garg <pranav.garg2107@gmail.com> | |
2993 | ||
2994 | * graphite-interchange.c (gather_access_strides): Removed. | |
2995 | (ppl_max_for_le): New. | |
2996 | (build_linearized_memory_access): New. | |
2997 | (memory_stride_in_loop): New. | |
2998 | (pbb_interchange_profitable_p): Reimplemented. | |
2999 | * graphite-ppl.h (ppl_new_id_map): New. | |
3000 | (ppl_interchange): New. | |
3001 | ||
45489e99 | 3002 | * gcc.dg/graphite/interchange-6.c: XFAILed. |
fb9fb290 | 3003 | |
312aea7f SP |
3004 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3005 | ||
3006 | * graphite-interchange.c (compute_subscript): Removed. | |
3007 | (compute_array_size_cstr): Removed. | |
3008 | (compute_array_size_poly): Removed. | |
3009 | (compute_array_size): Removed. | |
3010 | (gather_access_strides_poly): Removed. | |
3011 | (gather_access_strides): Empty. | |
3012 | ||
25d7cc15 SP |
3013 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3014 | ||
3015 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
3016 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
3017 | (graphite_legal_transform_dr): Same. | |
3018 | (graphite_carried_dependence_level_k): Same. | |
3019 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
3020 | Initialize PDR_NB_SUBSCRIPTS. | |
3021 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
3022 | PDR_NB_SUBSCRIPTS. | |
3023 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
3024 | (PDR_NB_SUBSCRIPTS): New. | |
3025 | (pdr_nb_subscripts): Removed. | |
3026 | (pdr_dim): Simplified. | |
3027 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
3028 | with PDR_NB_SUBSCRIPTS. | |
3029 | ||
66096911 SP |
3030 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3031 | ||
3032 | * graphite-interchange.c (compute_array_size): Remove use of | |
3033 | PDR_DATA_CONTAINER. | |
3034 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
3035 | Do not initialize PDR_DATA_CONTAINER. | |
3036 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
3037 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
3038 | (PDR_DATA_CONTAINER): Removed. | |
3039 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
3040 | PDR_DATA_CONTAINER. | |
3041 | (build_poly_dr): Same. | |
3042 | ||
273c5dd3 SP |
3043 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3044 | ||
45489e99 | 3045 | * gcc.dg/graphite/interchange-9.c: New. |
273c5dd3 | 3046 | |
7491e5f0 KT |
3047 | 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3048 | Sebastian Pop <sebastian.pop@amd.com> | |
3049 | ||
3050 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
3051 | copy of the dependence polyhedron. Free the temporary objects. | |
3052 | (graphite_carried_dependence_level_k): Free unused objects before | |
3053 | returning. | |
3054 | ||
45489e99 SP |
3055 | * gcc.dg/graphite/interchange-1.c: XFAILed. |
3056 | * gcc.dg/graphite/interchange-2.c: XFAILed. | |
3057 | * gcc.dg/graphite/interchange-3.c: XFAILed. | |
3058 | * gcc.dg/graphite/interchange-4.c: XFAILed. | |
3059 | * gcc.dg/graphite/interchange-7.c: XFAILed. | |
7491e5f0 | 3060 | |
f4648ed1 SP |
3061 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3062 | ||
3063 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
3064 | Early return without analyzing the data dependences if no | |
3065 | transform has been done. Call restore_scattering if the transform | |
3066 | is not legal. | |
3067 | (graphite-interchange.c): Same. | |
3068 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
3069 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
3070 | (apply_poly_transforms): Do not gcc_assert that | |
3071 | the transform is legal. | |
3072 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3073 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
3074 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
3075 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3076 | * graphite-poly.h (struct poly_scattering): New. | |
3077 | (struct poly_bb): Add original, transformed, and saved fields. | |
3078 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
3079 | and nb_scattering_transform fields. | |
3080 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
3081 | (poly_scattering_new): New. | |
3082 | (poly_scattering_free): New. | |
3083 | (poly_scattering_copy): New. | |
3084 | (store_scattering_pbb): New. | |
3085 | (store_scattering): New. | |
3086 | (restore_scattering_pbb): New. | |
3087 | (restore_scattering): New. | |
3088 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3089 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
273c5dd3 | 3090 | |
e31a5bd4 SP |
3091 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3092 | ||
3093 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
3094 | (print_scop): Same. | |
3095 | ||
8e88f9fd SP |
3096 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3097 | ||
3098 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
3099 | * graphite.c: Include predict.h. | |
3100 | (graphite_finalize): Call tree_estimate_probability. | |
3101 | * predict.c (predict_loops): Do not call scev_initialize and | |
3102 | scev_finalize. | |
3103 | (tree_estimate_probability_bb): New. | |
3104 | (tree_estimate_probability): Do not initialize loops: move that | |
3105 | code to the driver. Call tree_estimate_probability_bb. | |
3106 | (tree_estimate_probability_driver): New. | |
3107 | (pass_profile): Use tree_estimate_probability_driver. | |
3108 | * predict.h (tree_estimate_probability): Declared. | |
3109 | ||
87d4d0ee SP |
3110 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3111 | ||
3112 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
3113 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
3114 | TV_GRAPHITE_DATA_DEPS. | |
3115 | (dependency_between_pbbs_p): Same. | |
3116 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
3117 | ||
3118 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3119 | ||
3120 | * Merge from mainline (r149952:150372). | |
3121 | ||
2abae5f1 SP |
3122 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
3123 | ||
3124 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
3125 | * graphite-blocking.c: Same. | |
3126 | * graphite-clast-to-gimple.c: Same. | |
3127 | * graphite-dependences.c: Same. | |
3128 | * graphite-poly.c: Same. | |
3129 | * graphite-poly.h: Same. | |
3130 | * graphite-ppl.c: Same. | |
3131 | * graphite-scop-detection.c: Same. | |
3132 | * graphite-sese-to-poly.c: Same. | |
3133 | * graphite.c: Same. | |
3134 | ||
3135 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3136 | ||
3137 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
3138 | (remove_simple_copy_phi): New. | |
3139 | (remove_invariant_phi): New. | |
3140 | (simple_copy_phi_p): New. | |
3141 | (reduction_phi_p): New. | |
3142 | (gsi_for_ssa_name_def): New. | |
3143 | (insert_out_of_ssa_copy): New. | |
3144 | (insert_out_of_ssa_copy_on_edge): New. | |
3145 | (create_zero_dim_array): New. | |
3146 | (scalar_close_phi_node_p): New. | |
3147 | (rewrite_close_phi_out_of_ssa): New. | |
3148 | (rewrite_phi_out_of_ssa): New. | |
3149 | (rewrite_reductions_out_of_ssa): New. | |
3150 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
3151 | ||
45489e99 SP |
3152 | * gcc.dg/graphite/id-11.c: New. |
3153 | * gcc.dg/graphite/id-15.c: New. | |
3154 | * gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
3155 | * gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
3156 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
3157 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
3158 | * gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
3159 | * gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
3160 | * gfortran.dg/graphite/id-13.f: New. | |
3161 | * gfortran.dg/graphite/id-5.f: New. | |
2abae5f1 SP |
3162 | |
3163 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3164 | ||
3165 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
3166 | check that nb_reductions_in_loop is zero. | |
3167 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
3168 | reduction phi nodes. | |
3169 | (nb_reductions_in_loop): Removed. | |
3170 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
3171 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
3172 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
3173 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
3174 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
3175 | ||
3176 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3177 | ||
3178 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
3179 | statements that have an empty iteration domain. | |
45489e99 | 3180 | * gfortran.dg/graphite/id-16.f: New. |
2abae5f1 SP |
3181 | |
3182 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3183 | ||
3184 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
3185 | chrec_dont_know when the result is not above instantiate_below. | |
3186 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
3187 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
3188 | the tree has a known scalar evolution. | |
45489e99 SP |
3189 | * gfortran.dg/graphite/id-14.f: New. |
3190 | * gfortran.dg/graphite/id-15.f: New. | |
2abae5f1 SP |
3191 | |
3192 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3193 | ||
3194 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
3195 | insert_gsi. | |
3196 | (rename_variables): Keep inserting renames after the ones already | |
3197 | inserted. | |
3198 | ||
3199 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3200 | ||
3201 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
3202 | (graphite_sort_dominated_info): New. | |
3203 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
3204 | (build_scop_scattering): Fix comment. | |
3205 | ||
3206 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3207 | ||
3208 | * graphite.c (graphite_finalize): Call print_loops instead of | |
3209 | dump_function_to_file. | |
45489e99 SP |
3210 | * gcc.dg/graphite/graphite.exp: Fix formatting. |
3211 | * gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
2abae5f1 | 3212 | loops generated in the graphite output file. |
45489e99 SP |
3213 | * gcc.dg/graphite/pr35356-2.c: New. |
3214 | * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
3215 | * gfortran.dg/graphite/id-12.f: New. | |
2abae5f1 SP |
3216 | |
3217 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3218 | ||
45489e99 | 3219 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: |
2abae5f1 SP |
3220 | Remove 2 XFAIL. |
3221 | ||
3222 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3223 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3224 | ||
3225 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
3226 | alias set number build alias in ACCESSES polyhedron. | |
3227 | (build_alias_set_for_drs): New. | |
3228 | (build_pbb_drs): Added build_alias_set_for_drs. | |
3229 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
3230 | (graphite_carried_dependence_level_k): Check alias information | |
3231 | before building polyhedron. | |
3232 | ||
3233 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3234 | ||
3235 | * Makefile.in (lambda-code.o): Fix formatting. | |
3236 | ||
3237 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3238 | ||
3239 | * Merge from mainline (r149350-149952) | |
3240 | ||
3241 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3242 | ||
3243 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
3244 | before interchange to prepare for loop blocking. | |
3245 | ||
3246 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3247 | ||
3248 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
3249 | transformation. | |
3250 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
3251 | done in apply_poly_transforms. | |
3252 | ||
3253 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3254 | ||
3255 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
3256 | Replace RES parameter with *RES. | |
3257 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
3258 | instead of value of RES. | |
3259 | ||
3260 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3261 | ||
3262 | * graphite.c (graphite_finalize): Fix comment. | |
3263 | (graphite_transform_loops): Reset scev info after code generation | |
3264 | of each scop. | |
3265 | ||
3266 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3267 | ||
3268 | * graphite.c (graphite_finalize): Call scev_reset. | |
3269 | ||
3270 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3271 | ||
3272 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
3273 | GBB_CLOOG_IV_TYPES hash table twice. | |
3274 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
3275 | (add_condition_to_domain): Clear GMP values. | |
3276 | ||
3277 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3278 | ||
3279 | * graphite-dependences.c: Fix formatting. | |
3280 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
3281 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
3282 | * graphite-sese-to-poly.c: Fix formatting. | |
3283 | * graphite.c (graphite_transform_loops): Create the hash table | |
3284 | after the early return. | |
3285 | ||
3286 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3287 | ||
45489e99 SP |
3288 | * gcc.dg/graphite/id-14.c: New. |
3289 | * gcc.dg/graphite/pr40157.c: New. | |
3290 | * gfortran.dg/graphite/id-11.f: New. | |
2abae5f1 SP |
3291 | |
3292 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3293 | ||
3294 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
3295 | (build_poly_scop): Return false when there are no pbbs within | |
3296 | loops to avoid to pass to cloog scops with no loops. | |
3297 | ||
3298 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3299 | ||
3300 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
3301 | useless test "i % 2". | |
3302 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
3303 | (build_poly_dr): Same. | |
3304 | * graphite.c (graphite_transform_loops): Restructure. | |
3305 | ||
3306 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
3307 | ||
3308 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
3309 | reduction_list parameter. | |
3310 | (rewrite_all_phi_nodes_with_iv): Same. | |
3311 | (canonicalize_loop_ivs): Same. | |
3312 | * tree-parloops.c (struct brli): Removed. | |
3313 | (build_reduction_list_info): Removed. | |
3314 | (build_new_reduction): New. | |
3315 | (analyze_reduction_list): Removed. | |
3316 | (gather_scalar_reductions): Find reductions instead of phi | |
3317 | nodes that can't be canonicalized. | |
3318 | (try_create_reduction_list): Remove reduction_list parameter. | |
3319 | (gen_parallel_loop): Same. | |
3320 | (parallelize_loops): Remove analyze_reductions variable, | |
3321 | initialization and free. | |
3322 | Change reduction_list htab initialization to reduction_info | |
3323 | elements instead of ssa names. | |
3324 | Call try_create_reduction_list and gen_parallel_loop without | |
3325 | analyzed_reduction argument. | |
3326 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
3327 | canonicalize_loop_ivs with one less argument. | |
3328 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
3329 | ||
3330 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3331 | ||
3332 | * graphite-dependences.c (new_poly_dr_pair): New. | |
3333 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
3334 | (new_poly_dr_pair): New. | |
3335 | (eq_poly_dr_pair_p): New. | |
3336 | (hash_poly_dr_pair_p): New. | |
3337 | * graphite-dependences.h (struct poly_dr_pair): New. | |
3338 | (eq_poly_dr_pair_p): Declared. | |
3339 | (hash_poly_dr_pair_p): Declared. | |
3340 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
3341 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
3342 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
3343 | * Makefile.in (graphite-poly.o): Add dependence on | |
3344 | graphite-dependences.h. | |
3345 | ||
3346 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3347 | ||
3348 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
3349 | polynomials of degree > 1 pass to Graphite. | |
3350 | * tree-chrec.c (scev_is_linear_expression): Call | |
3351 | evolution_function_is_affine_multivariate_p. | |
45489e99 | 3352 | * gfortran.dg/graphite/id-10.f90: New. |
2abae5f1 SP |
3353 | |
3354 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3355 | ||
3356 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
3357 | Instantiate scevs varying in outer loops. | |
45489e99 | 3358 | * gfortran.dg/graphite/id-9.f: Correct testcase. |
2abae5f1 SP |
3359 | |
3360 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3361 | ||
3362 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
3363 | redundant constraint. | |
3364 | ||
3365 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3366 | ||
45489e99 SP |
3367 | * gcc.dg/graphite/graphite.exp: Fix comments. |
3368 | * gfortran.dg/graphite/graphite.exp: Trigger actions | |
2abae5f1 | 3369 | based on the file names as in the C testsuite. |
45489e99 SP |
3370 | * gfortran.dg/graphite/block-1.f90: Fix patterns. |
3371 | * gfortran.dg/graphite/block-2.f: Same. | |
3372 | * gfortran.dg/graphite/block-3.f90: Same. | |
3373 | * gfortran.dg/graphite/block-4.f90: Same. | |
3374 | * gfortran.dg/graphite/id-1.f90: Same. | |
3375 | * gfortran.dg/graphite/id-2.f90: Same. | |
3376 | * gfortran.dg/graphite/id-3.f90: Same. | |
3377 | * gfortran.dg/graphite/id-4.f90: Same. | |
3378 | * gfortran.dg/graphite/id-6.f: Same. | |
3379 | * gfortran.dg/graphite/id-9.f: Same. | |
3380 | * gfortran.dg/graphite/interchange-1.f: Same. | |
3381 | * gfortran.dg/graphite/interchange-2.f: Same. | |
3382 | * gfortran.dg/graphite/scop-1.f: Same. | |
2abae5f1 SP |
3383 | |
3384 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3385 | ||
3386 | * sese.c (expand_scalar_variables_call): New. | |
3387 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
3388 | ||
3389 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3390 | ||
45489e99 | 3391 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: |
2abae5f1 | 3392 | Expect to see the pattern twice. |
45489e99 SP |
3393 | * gcc.dg/graphite/interchange-0.c: Un-XFAIL. |
3394 | * gcc.dg/graphite/interchange-5.c: Same. | |
3395 | * gcc.dg/graphite/interchange-6.c: Same. | |
2abae5f1 SP |
3396 | |
3397 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3398 | ||
45489e99 SP |
3399 | * gcc.dg/graphite/id-10.c: New. |
3400 | * gcc.dg/graphite/id-12.c: New. | |
3401 | * gfortran.dg/graphite/id-7.f: New. | |
3402 | * gfortran.dg/graphite/id-8.f: New. | |
2abae5f1 SP |
3403 | |
3404 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3405 | ||
3406 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
3407 | zero. | |
3408 | ||
3409 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3410 | ||
3411 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
3412 | ||
3413 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3414 | ||
3415 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
3416 | ||
3417 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3418 | ||
3419 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
3420 | building PDR subscripts. | |
3421 | ||
3422 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3423 | ||
3424 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
3425 | computation of array sizes. | |
3426 | ||
3427 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3428 | ||
3429 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
3430 | ||
3431 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3432 | ||
3433 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
3434 | build_pairwise_constraint, dr_equality_constraints, | |
3435 | build_pairwise_scheduling_equality, | |
3436 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
3437 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
3438 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
3439 | Move from NNC_Polyhedron to C_Polyhedron. | |
3440 | * graphite-interchange.c (compute_array_size_poly, | |
3441 | gather_access_strides): Dito. | |
3442 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
3443 | free_scop, pbb_number_of_iterations): Dito. | |
3444 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
3445 | pbb_dim_iter_domain, struct scop): Dito. | |
3446 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
3447 | new_Cloog_Domain_from_ppl_Polyhedron, | |
3448 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
3449 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
3450 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
3451 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
3452 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
3453 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
3454 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
3455 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
3456 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
3457 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
3458 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
3459 | build_scop_iteration_domain, build_poly_dr): Dito | |
3460 | ||
3461 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3462 | ||
45489e99 | 3463 | * gcc.dg/graphite/graphite.exp: Added a rule to execute |
2abae5f1 | 3464 | run-id-*.c files. |
45489e99 | 3465 | * gcc.dg/graphite/run-id-1.c: New. |
2abae5f1 SP |
3466 | |
3467 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3468 | ||
3469 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
3470 | positivity constraint on the symbolic number of iterations. | |
3471 | ||
3472 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3473 | ||
3474 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
3475 | ||
3476 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3477 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3478 | ||
3479 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
3480 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
3481 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
3482 | (free_scop): Free SCOP_CONTEXT. | |
3483 | (print_scop_context): New. | |
3484 | (print_scop): Call print_scop_context. | |
3485 | (debug_scop_context): New. | |
3486 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
3487 | (struct scop): Added field context. | |
3488 | (SCOP_CONTEXT): New. | |
3489 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
3490 | (build_scop_context): New. | |
3491 | (build_poly_scop): Call build_scop_context. | |
3492 | ||
3493 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3494 | ||
3495 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
3496 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
3497 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
3498 | * graphite-ppl.h: Include double-int.h and tree.h. | |
3499 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
3500 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
3501 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
3502 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
3503 | ||
3504 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3505 | ||
3506 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
3507 | POINTER_PLUS_EXPR for pointer types. | |
3508 | (clast_to_gcc_expression): Same. | |
3509 | ||
3510 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3511 | ||
3512 | * graphite-poly.c (print_scattering_function): Early return when | |
3513 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
3514 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
3515 | ||
3516 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
3517 | ||
3518 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
3519 | to fix bootstrap. | |
3520 | ||
3521 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
3522 | ||
3523 | * tree-parloops.c (analyze_reduction_list): Change return | |
3524 | value to void. | |
3525 | (try_create_reduction_list): Move the call to | |
3526 | analyze_reduction_list to the beginining. | |
3527 | Call reduction_phi with analyzed_reductions as argument | |
3528 | instead of reduction_list. | |
3529 | ||
3530 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3531 | ||
3532 | * Merge from mainline (r148296:149346) | |
3533 | ||
3534 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3535 | ||
3536 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
3537 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
3538 | check that the initial value does not contain multiplications of | |
3539 | parameters. | |
3540 | (stmt_has_simple_data_refs_p): New. | |
3541 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
3542 | (is_simple_operand): Fix formatting. | |
3543 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
3544 | ||
3545 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3546 | ||
45489e99 | 3547 | * gcc.dg/graphite/id-13.c: New. |
2abae5f1 SP |
3548 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call |
3549 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
3550 | (scan_tree_for_params_right_scev): Add extra assert. | |
3551 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
3552 | (idx_record_params): Use scalar_evolution_in_region. | |
3553 | (find_params_in_bb): Same. | |
3554 | (find_scop_parameters): Same. | |
3555 | (build_loop_iteration_domains): Same. | |
3556 | (create_linear_expr_from_tree): Same. | |
3557 | * sese.c (scalar_evolution_in_region): New. | |
3558 | * sese.h (scalar_evolution_in_region): Declared. | |
3559 | (defined_in_sese_p): New. | |
3560 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
3561 | static anymore. | |
3562 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
3563 | Declared. | |
3564 | ||
3565 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3566 | ||
3567 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
3568 | TREE_DATA_REF_H also implies SCEV_H. | |
3569 | ||
3570 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3571 | ||
3572 | * graphite-poly.c (print_scop_params): New. | |
3573 | (print_scop): Call print_scop_params. | |
3574 | (debug_scop_params): New. | |
3575 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
3576 | ||
3577 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3578 | ||
45489e99 SP |
3579 | * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. |
3580 | * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
3581 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
3582 | * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
3583 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
3584 | * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
2abae5f1 SP |
3585 | |
3586 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3587 | ||
3588 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
3589 | for dependency checking part. | |
45489e99 | 3590 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add |
2abae5f1 | 3591 | tests for dependency checking. |
45489e99 SP |
3592 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3593 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3594 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
2abae5f1 SP |
3595 | flag -fdump-tree-graphite-all for autopar testsuites. |
3596 | ||
3597 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3598 | ||
3599 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
3600 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
3601 | canonicalize_loop_ivs): Moved... | |
3602 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
3603 | ||
3604 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3605 | ||
3606 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
3607 | argument analyzed_reductions. Call analyze_reduction_list. | |
3608 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
3609 | (parallelize_loops): Init and finalize analyzed_reductions. | |
3610 | ||
3611 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
3612 | ||
45489e99 | 3613 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
3614 | Added flag -fno-loop-strip-mine for autopar testcase. |
3615 | ||
3616 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
3617 | ||
3618 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
3619 | transformed scattering dimension instead of unmatch orignal when | |
3620 | calling dependence_polyhedron. | |
3621 | ||
3622 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3623 | ||
3624 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
3625 | ||
3626 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3627 | ||
3628 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
3629 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
3630 | ||
3631 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3632 | ||
3633 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
3634 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
3635 | * graphite-poly.c (pbb_number_of_iterations): New. | |
3636 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
3637 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
3638 | ||
3639 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
3640 | ||
3641 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
3642 | last commit on type of lower and upper bound of loops. | |
3643 | ||
3644 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
3645 | ||
3646 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
3647 | graphite-dependences.h. | |
3648 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
3649 | (mark_bb_with_pbb): New. | |
3650 | (get_stmtfor_depth): New. | |
3651 | (find_pbb_via_hash): New. | |
3652 | (dependency_in_loop_p): New. | |
3653 | (mark_loops_parallel): New. | |
3654 | (free_aux_in_new_loops): New. | |
3655 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
3656 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
3657 | innermost loop parallel without checking. | |
3658 | (gloog): Add parameter BB_PBB_MAPPING. | |
3659 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
3660 | (gloog): Change declaration. | |
3661 | (mark_loop_parallel): Make extern. | |
3662 | (free_aux_in_new_loops): Declare. | |
3663 | (bb_pbb_map_hash): New. | |
3664 | (eq_bb_pbb_map): New. | |
3665 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
3666 | auto parallelization when flag_graphite_force_parallel is set. | |
3667 | (graphite_finalize): Added free_aux_in_new_loops. | |
3668 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
3669 | the innermost loop that marked parallel. Use | |
3670 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
3671 | (loop_parallel_p): Move inner most checking out of function. | |
3672 | ||
3673 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3674 | ||
3675 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
3676 | type of lower and upper bound of loops signed long int. | |
3677 | ||
3678 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3679 | ||
3680 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
3681 | expression outside the loop. | |
3682 | ||
3683 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3684 | ||
3685 | * gcc.dg/graphite/interchange-8.c: New. | |
3686 | ||
3687 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3688 | ||
3689 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
3690 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
3691 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
3692 | ||
3693 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3694 | ||
3695 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
3696 | recursion should return 1. | |
3697 | ||
3698 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3699 | ||
3700 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
3701 | subscript multiplier to be -1. | |
3702 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
3703 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
3704 | data_container. Initializes PDR_DATA_CONTAINER. | |
3705 | (print_pdr_access_layout): New. | |
3706 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
3707 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
3708 | data_container. | |
3709 | (PDR_DATA_CONTAINER): New. | |
3710 | (new_poly_dr): Update declaration. | |
3711 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
3712 | (build_poly_dr): Call pdr_add_data_dimensions. | |
3713 | ||
3714 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3715 | ||
3716 | * graphite-poly.h (struct poly_dr): Fix comment. | |
3717 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
3718 | (pdr_add_memory_accesses): New. | |
3719 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
3720 | ||
3721 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3722 | ||
3723 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
3724 | (print_pbb): Add call to print_pdrs. | |
3725 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
3726 | ||
3727 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3728 | Li Feng <nemokingdom@gmail.com> | |
3729 | ||
3730 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
3731 | (dependency_between_pbbs_p): New. | |
3732 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
3733 | intersection assign. | |
3734 | (build_lexicographically_gt_constraint): Correct lexicographically | |
3735 | judging. | |
3736 | * graphite-dependences.h: New. | |
3737 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
3738 | ||
3739 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3740 | ||
3741 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
3742 | (gloog): Print to dump_file the generated clast. | |
3743 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
3744 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
3745 | ||
3746 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3747 | ||
3748 | * graphite-poly.c (extend_scattering): Increment | |
3749 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
3750 | ||
3751 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3752 | ||
3753 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
3754 | recursion condition. Continue iterating even after the first equality. | |
3755 | (compute_array_size): Same. | |
3756 | ||
3757 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
3758 | ||
45489e99 | 3759 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update |
2abae5f1 | 3760 | -fdump-tree-final_cleanup to -fdump-tree-optimized. |
45489e99 SP |
3761 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3762 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3763 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
2abae5f1 SP |
3764 | |
3765 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3766 | ||
3767 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
3768 | only when the use verifies is_gimple_reg. | |
3769 | ||
3770 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3771 | ||
3772 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
3773 | Allocate scaldims after call to unify_scattering_dimensions. | |
3774 | ||
3775 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3776 | ||
3777 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
3778 | ||
3779 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3780 | Albert Cohen <albert.cohen@inria.fr> | |
3781 | ||
3782 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
3783 | variables for the strip mining. | |
3784 | ||
3785 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3786 | Pranav Garg <pranav.garg2107@gmail.com> | |
3787 | ||
3788 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
3789 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
3790 | (graphite-blocking.o): New rule. | |
3791 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
3792 | * graphite-blocking.c: New. | |
3793 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
3794 | flag_loop_strip_mine. | |
3795 | (psct_scattering_dim_for_loop_depth): New. | |
3796 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
3797 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
3798 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
3799 | flag_loop_strip_mine. | |
3800 | ||
3801 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3802 | ||
3803 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
3804 | a GMP value and a PPL coefficient at each iteration of a loop. | |
3805 | ||
3806 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3807 | ||
3808 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
3809 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
3810 | pbb_nb_scattering_transform. | |
3811 | (graphite_legal_transform_dr): Same. | |
3812 | * graphite-poly.c (extend_scattering): Same. | |
3813 | (unify_scattering_dimensions): Same. | |
3814 | (print_scattering_function): Same. | |
3815 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
3816 | PBB_NB_LOCAL_VARIABLES. | |
3817 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
3818 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
3819 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
3820 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
3821 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
3822 | (pbb_nb_scattering_transform): New. | |
3823 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
3824 | (psco_scattering_dim): Add assert on parameters. | |
3825 | (psct_scattering_dim): Same. | |
3826 | (psct_scattering_dim_for_loop_depth): Declared. | |
3827 | (psct_local_var_dim): New. | |
3828 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
3829 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
3830 | correct layout, call pbb_nb_local_vars. | |
3831 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
3832 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3833 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
3834 | ||
3835 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3836 | ||
3837 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
3838 | (set_coef): Renamed ppl_set_coef. | |
3839 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
3840 | ||
3841 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3842 | ||
3843 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
3844 | test a boolean against 1. | |
3845 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
3846 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
3847 | (pbb_do_interchange): Returns true when a transform has been performed. | |
3848 | (scop_do_interchange): Same. | |
3849 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
3850 | scop_do_interchange. | |
3851 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
3852 | ||
3853 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
3854 | ||
3855 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
3856 | after last use. | |
3857 | * sese.c (sese_reset_aux_in_loops): New. | |
3858 | * sese.h (sese_reset_aux_in_loops): New. | |
3859 | ||
3860 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3861 | ||
3862 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
3863 | multiplier and multiply the constant by the multiplier. | |
3864 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
3865 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
3866 | ||
3867 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3868 | ||
3869 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
3870 | compiler's data reference. Initialize PDR_CDR. | |
3871 | (print_pdr): Call dump_data_reference. | |
3872 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
3873 | Add compiler_dr field. | |
3874 | (PDR_BB): Renamed PDR_PBB. | |
3875 | (PDR_CDR): New. | |
3876 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
3877 | GCC's data reference representation. | |
3878 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
3879 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
3880 | ||
3881 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3882 | ||
3883 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
3884 | * graphite-poly.h (pbb_nb_local_vars): New. | |
3885 | ||
3886 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3887 | ||
3888 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
3889 | ||
3890 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3891 | ||
3892 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
3893 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
3894 | (PDR_BASE): Removed. | |
3895 | ||
3896 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3897 | ||
45489e99 | 3898 | * gcc.dg/graphite/interchange-{1..7}.c: New avatars of |
2abae5f1 SP |
3899 | ltrans-{1..6,8}.c. |
3900 | ||
3901 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3902 | ||
3903 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
3904 | subscript identification column. | |
3905 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
3906 | interchanged". Rely on that chain of characters in the testcases. | |
3907 | * gcc.dg/graphite/interchange-0.c: New. | |
3908 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
3909 | interchange-*.c files and compile them with -floop-interchange. | |
3910 | ||
3911 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
3912 | ||
3913 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
3914 | pbb_interchange_profitable_p. | |
3915 | ||
3916 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3917 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3918 | Pranav Garg <pranav.garg2107@gmail.com> | |
3919 | ||
3920 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
3921 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
3922 | scop_do_interchange): New. | |
3923 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
3924 | for flag_loop_interchange. | |
3925 | * graphite-poly.h (scop_do_interchange): Declared. | |
3926 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
3927 | flag_loop_interchange is used. | |
3928 | ||
3929 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3930 | ||
3931 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
3932 | pbb_nb_scattering_dims. | |
3933 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
3934 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
3935 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
3936 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
3937 | ||
3938 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
3939 | ||
3940 | * graphite.c: Cleanup foo. | |
3941 | ||
3942 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
3943 | ||
3944 | * Merge from mainline (r143684:148293). | |
3945 | * Disabled libpcp until it gets fixed. | |
3946 | ||
3947 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
3948 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3949 | ||
3950 | * graphite-interchange.c: New. | |
3951 | * Makefile.in (graphite-interchange.o): New. | |
3952 | * graphite-poly.h (interchange_profitable_p): Declared. | |
3953 | * graphite-ppl.h (value_max): New. | |
3954 | ||
3955 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
3956 | ||
3957 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
3958 | * graphite-poly.h: Fix some comments. | |
3959 | (pdr_dim): New. | |
3960 | (pdr_scop): New. | |
3961 | ||
3962 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
3963 | ||
3964 | * graphite-poly.h | |
3965 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
3966 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
3967 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
3968 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
3969 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
3970 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
3971 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
3972 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
3973 | * graphite-clast-to-gimple.c: Same. | |
3974 | * graphite-dependences.c: Same. | |
3975 | * graphite-poly.c: Same. | |
3976 | * graphite-sese-to-poly.c: Same. | |
3977 | ||
3978 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
3979 | ||
3980 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
3981 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
3982 | (copy_renames): Rename new_name to expr. | |
3983 | * sese.c (debug_rename_elt): Same. | |
3984 | (get_rename): Same. | |
3985 | (set_rename): Same. | |
3986 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
3987 | the information from the rename map. | |
3988 | (rename_variables_in_stmt): Same. | |
3989 | (add_loop_exit_phis): Rename new_name to expr. | |
3990 | (insert_loop_close_phis): Same. | |
3991 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
3992 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
3993 | (new_rename_map_elt): Same. | |
3994 | ||
3995 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
3996 | ||
3997 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
3998 | * sese.c (set_rename): Make it extern. | |
3999 | * sese.h (set_rename): Declared. | |
4000 | ||
4001 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4002 | ||
4003 | * graphite-poly.c (extend_scattering): Free values. | |
4004 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
4005 | Free iterators. | |
4006 | (ppl_print_powerset_matrix): Same. | |
4007 | * graphite-scop-detection.c (free_scops_1): New. | |
4008 | (limit_scops): Call free_scops_1. | |
4009 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
4010 | (build_poly_dr): Free PPL coefficients. | |
4011 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
4012 | ||
4013 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
4014 | ||
4015 | * graphite-dependences.c: New. | |
4016 | * graphite-data-ref.c: Removed. | |
4017 | * graphite-data-ref.h: Removed. | |
4018 | * Makefile.in (graphite-data-ref.o): Removed. | |
4019 | (graphite-dependences.o): Added. | |
4020 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
4021 | * graphite-poly.c: Same. | |
4022 | Move the data dependence testing to graphite-dependences.c. | |
4023 | ||
4024 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4025 | ||
4026 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
4027 | from graphite_cannot_represent_loop. Code refactored. | |
4028 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
4029 | ||
4030 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
4031 | ||
45489e99 | 4032 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
4033 | Cover all the testcases (not only the filtered ones). |
4034 | ||
4035 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4036 | ||
4037 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
4038 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
4039 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
4040 | done in (stmt_simple_for_scop_p). | |
4041 | ||
4042 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4043 | ||
4044 | * graphite.c (print_global_statistics): New. | |
4045 | (print_graphite_scop_statistic): New. | |
4046 | (print_graphite_statistics): New. | |
4047 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
4048 | * graphite-scop-detection (build_scops): Print statistics. | |
4049 | (print_graphite_scop_statistics): New. | |
4050 | (print_graphite_statistics): New. | |
4051 | ||
4052 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4053 | ||
4054 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
4055 | (debug_clast_name_index): Removed. | |
4056 | (debug_clast_name_indexes_1): Removed. | |
4057 | (debug_clast_name_indexes): Removed. | |
4058 | (clast_name_index_elt_info): Removed. | |
4059 | (eq_clast_name_indexes): Removed. | |
4060 | (clast_name_to_index): Removed. | |
4061 | (new_clast_name_index): Removed. | |
4062 | (save_clast_name_index): Removed. | |
4063 | (save_var_name): Moved... | |
4064 | (init_sese_params_index): Removed. | |
4065 | (clast_name_to_gcc): Remove use of name_tree. | |
4066 | (initialize_cloog_names): Same. | |
4067 | (gloog): Do not call init_sese_params_index. | |
4068 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
4069 | (parameter_index_in_region): New. | |
4070 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
4071 | (parameter_index_in_region): Removed. | |
4072 | (is_parameter): Remove use of name_tree. | |
4073 | * sese.h (struct name_tree): Removed. | |
4074 | (struct sese): Remove use of name_tree. New field params_names. | |
4075 | (SESE_PARAMS_NAMES): New. | |
4076 | (SESE_PARAMS): Remove duplicate. | |
4077 | (parameter_index_in_region): Removed. | |
4078 | (sese_nb_params): Remove use of name_tree. | |
4079 | (struct clast_name_index): New. | |
4080 | (new_clast_name_index): New. | |
4081 | (clast_name_to_index): New. | |
4082 | (save_clast_name_index): New. | |
4083 | (debug_clast_name_index): New. | |
4084 | (debug_clast_name_indexes_1): New. | |
4085 | (debug_clast_name_indexes): New. | |
4086 | (clast_name_index_elt_info): New. | |
4087 | (eq_clast_name_indexes): New. | |
4088 | ||
4089 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4090 | ||
4091 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
4092 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
4093 | (graphite_loop_normal_form): Do not pass region. Do not | |
4094 | initialize SESE_OLDIVS. | |
4095 | (build_graphite_loop_normal_form): Update call to | |
4096 | graphite_loop_normal_form. | |
4097 | * sese.c (debug_oldivs): Removed. | |
4098 | (new_sese): Do not initialize SESE_OLDIVS. | |
4099 | (free_sese): Do not free SESE_OLDIVS. | |
4100 | (oldiv_for_loop): Removed. | |
4101 | * sese.h (struct sese): Remove old_ivs. | |
4102 | (SESE_OLDIVS): Removed. | |
4103 | (oldiv_for_loop): Removed. | |
4104 | ||
4105 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4106 | ||
4107 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
4108 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
4109 | replaced by a call to newivs_to_depth_to_newiv. | |
4110 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
4111 | (clast_to_gcc_expression_red): Same. | |
4112 | (gcc_type_for_clast_expr): Same. | |
4113 | (gcc_type_for_clast_eq): Same. | |
4114 | (graphite_translate_clast_equation): Same. | |
4115 | (graphite_create_guard_cond_expr): Same. | |
4116 | (graphite_create_new_guard): Same. | |
4117 | (graphite_create_new_loop): Same. | |
4118 | (build_iv_mapping): Same. | |
4119 | (translate_clast): Same. | |
4120 | (gloog): Same. | |
4121 | (loop_iv_stack_patch_for_consts): Removed. * | |
4122 | sese.c (iv_stack_entry_is_constant): Removed. | |
4123 | (iv_stack_entry_is_iv): Removed. | |
4124 | (loop_iv_stack_push_iv): Removed. | |
4125 | (loop_iv_stack_insert_constant): Removed. | |
4126 | (loop_iv_stack_pop): Removed. | |
4127 | (loop_iv_stack_get_iv): Removed. | |
4128 | (loop_iv_stack_get_iv_from_name): Removed. | |
4129 | (debug_loop_iv_stack): Removed. | |
4130 | (free_loop_iv_stack): Removed. | |
4131 | (loop_iv_stack_remove_constants): Removed. * | |
4132 | sese.h (iv_stack_entry_kind): Removed. | |
4133 | (iv_stack_entry_data_union): Removed. | |
4134 | (iv_stack_entry_struct): Removed. | |
4135 | (iv_stack_entry_p): Removed. | |
4136 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
4137 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
4138 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
4139 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
4140 | (gbb_loop_at_index): Fix indenting. | |
4141 | (gbb_loop_index): Removed. | |
4142 | ||
4143 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4144 | ||
4145 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
4146 | Call clast_name_to_index. | |
4147 | ||
4148 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4149 | ||
4150 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
4151 | do not pass params. Get params from SESE_PARAMS. | |
4152 | (clast_to_gcc_expression): Same. | |
4153 | (clast_to_gcc_expression_red): Same. | |
4154 | (gcc_type_for_clast_eq): Same. | |
4155 | (graphite_translate_clast_equation): Same. | |
4156 | (graphite_create_new_loop): Same. | |
4157 | * sese.c (rename_variables_in_stmt): Fix comment. | |
4158 | ||
4159 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4160 | ||
4161 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
4162 | newivs_index. | |
4163 | Call save_clast_name_index. | |
4164 | (translate_clast): Pass newivs_index. | |
4165 | (gloog): Create and free newivs_index. | |
4166 | ||
4167 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4168 | ||
4169 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
4170 | (clast_name_index_p): New type. | |
4171 | (debug_clast_name_index): New. | |
4172 | (debug_clast_name_indexes_1): New. | |
4173 | (debug_clast_name_indexes): New. | |
4174 | (clast_name_index_elt_info): New. | |
4175 | (eq_clast_name_indexes): New. | |
4176 | (clast_name_to_index): New. | |
4177 | (new_clast_name_index): New. | |
4178 | (save_clast_name_index): New. | |
4179 | (init_sese_params_index): New. | |
4180 | (gloog): Call init_sese_params_index. | |
4181 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
4182 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
4183 | (free_sese): Free SESE_PARAMS_INDEX. | |
4184 | * sese.h (struct sese): Add params_index. | |
4185 | (SESE_PARAMS_INDEX): New. | |
4186 | ||
4187 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4188 | ||
4189 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
4190 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
4191 | newly created IV to newivs. | |
4192 | (translate_clast): Pass the newivs vector. | |
4193 | (gloog): Create and destroy the newivs vector. | |
4194 | ||
4195 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4196 | ||
4197 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
4198 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
4199 | IV that has been created. | |
4200 | ||
4201 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4202 | ||
4203 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
4204 | scev with parameters in the base part. They where forbidden | |
4205 | exidently. | |
4206 | ||
4207 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
4208 | ||
45489e99 | 4209 | * gcc.dg/graphite/graphite.exp: Set different default |
2abae5f1 | 4210 | compile options by file names. |
45489e99 SP |
4211 | * gcc.dg/graphite/block{0-6}.c: Remove dg-option line. |
4212 | * gcc.dg/graphite/id-{1-9}.c: Ditto. | |
4213 | * gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
4214 | * gcc.dg/graphite/scop-matmult.c: Ditto. | |
2abae5f1 SP |
4215 | |
4216 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
4217 | ||
45489e99 SP |
4218 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. |
4219 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
4220 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
4221 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
2abae5f1 SP |
4222 | |
4223 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4224 | ||
4225 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
4226 | by final cleanup. | |
4227 | ||
4228 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4229 | ||
4230 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
4231 | allow integer constant strides. | |
4232 | (graphite_can_represent_expr): Depend on outermost_loop. | |
4233 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
4234 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
4235 | build_scops_1): Same. | |
4236 | (scopdet_basic_block_info): Same and insert layered SCoP | |
4237 | detection. | |
4238 | (try_generate_gimple_bb): Cleanup. | |
4239 | (build_scops): Enable data references. | |
4240 | ||
45489e99 SP |
4241 | * gcc.dg/graphite/id-5.c: New. |
4242 | * gcc.dg/graphite/id-9.c: New. | |
2abae5f1 SP |
4243 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. |
4244 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
4245 | ||
4246 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4247 | ||
4248 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
4249 | that we have not yet built for this SCoP. | |
4250 | ||
4251 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4252 | ||
4253 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
4254 | for complex numbers. | |
4255 | ||
4256 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4257 | ||
4258 | * graphite-ppl.c: Fix build if cloog is not available. | |
4259 | ||
4260 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
4261 | ||
4262 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
4263 | NITER and REDUCTION_LIST. | |
4264 | (try_get_loop_niter): New. | |
4265 | (try_create_reduction_list): New. | |
4266 | (parallelize_loops): Bypass the failed checkings in autopar | |
4267 | when can_be_parallel in loop structure is set to true. | |
4268 | ||
4269 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4270 | ||
45489e99 SP |
4271 | * gcc.dg/graphite/id-6.c: Update testcase. |
4272 | * gcc.dg/graphite/scop-3.c: Dito. | |
2abae5f1 SP |
4273 | |
4274 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4275 | ||
4276 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
4277 | Enable EQ_EXPR and NE_EXPR again. | |
4278 | ||
4279 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4280 | ||
4281 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
4282 | Add check if scev is affine multivariate. | |
4283 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
4284 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
4285 | harmful_stmt_in_bb. | |
45489e99 | 4286 | * gcc.dg/graphite/id-7.c: New. |
2abae5f1 SP |
4287 | |
4288 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4289 | ||
4290 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
4291 | Check all bbs in region, not only the bbs that are represented in | |
4292 | GRAPHITE. | |
4293 | (build_poly_scop): Add newline. | |
45489e99 | 4294 | * gcc.dg/graphite/id-8.c: New. |
2abae5f1 SP |
4295 | |
4296 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4297 | ||
4298 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
4299 | when loop initialize. | |
4300 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
4301 | * common.opt: Declare flag_graphite_force_parallel. | |
4302 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
4303 | loop parallel. | |
4304 | * graphite-poly.c (apply_poly_transforms): Introduce | |
4305 | flag_graphite_force_parallel. | |
4306 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
4307 | * toplev.c (process_options): ditto and replace a not correctly | |
4308 | encoded space. | |
4309 | ||
4310 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4311 | ||
4312 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
4313 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
4314 | to the redefinition. | |
4315 | (compute_cloog_iv_types_1): ditto. | |
4316 | (build_iv_mapping): ditto. | |
4317 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
4318 | initialization. | |
4319 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
4320 | (build_bb_loops): Removed. | |
4321 | * sese.h (struct gimple_bb): Removed loops. | |
4322 | (GBB_LOOPS): Removed. | |
4323 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
4324 | (gbb_loop_index): ditto. | |
4325 | ||
4326 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4327 | ||
4328 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
4329 | allow non constant strides. | |
45489e99 | 4330 | * gcc.dg/graphite/scop-20.c: New. |
2abae5f1 SP |
4331 | |
4332 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4333 | ||
4334 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
4335 | return value warning. | |
4336 | (dot_scop): Same. | |
4337 | ||
4338 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4339 | ||
45489e99 SP |
4340 | * gcc.dg/graphite/id-6.c: Fix pattern. |
4341 | * gcc.dg/graphite/scop-3.c: Same. | |
2abae5f1 SP |
4342 | |
4343 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4344 | ||
4345 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
4346 | build_pairwise_constraint, dr_equality_constraints, | |
4347 | build_pairwise_scheduling_equality, | |
4348 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
4349 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
4350 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
4351 | graphite_legal_transform): New. | |
4352 | * graphite-poly.h (graphite_legal_transform): Declared. | |
4353 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
4354 | graphite_legal_transform is disabled for the moment. | |
4355 | ||
4356 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4357 | ||
4358 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
4359 | (pbb_nb_scattering): Use it. | |
4360 | ||
4361 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4362 | ||
4363 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
4364 | Pointset_Powerset version of ppl_insert_dimensions. | |
4365 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
4366 | ||
4367 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4368 | ||
4369 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
4370 | ||
4371 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4372 | ||
4373 | * graphite-poly.h: Fix comment. | |
4374 | ||
4375 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4376 | ||
4377 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
4378 | ||
4379 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4380 | ||
4381 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
4382 | statements. | |
4383 | ||
4384 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4385 | ||
4386 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
4387 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
4388 | conditions. | |
4389 | ||
4390 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
4391 | ||
4392 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
4393 | handle EQ_EXPR and NE_EXPR. | |
4394 | ||
4395 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4396 | ||
4397 | * graphite-poly.h (poly_dr): Fix comment. | |
4398 | ||
4399 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4400 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4401 | ||
4402 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
4403 | with a zero dimension polyhedron. | |
4404 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
4405 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
4406 | domain polyhedron. | |
4407 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
4408 | by any loop in scop. | |
4409 | (build_poly_scop): Do not call scop_set_nb_params. | |
4410 | ||
4411 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4412 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4413 | ||
4414 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
4415 | add_condition_to_domain not GT_EXPR. | |
4416 | ||
4417 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4418 | ||
4419 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
4420 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
4421 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
4422 | upper_bound_assign to calculate unions. | |
45489e99 | 4423 | * gcc.dg/graphite/id-6.c: New. |
2abae5f1 SP |
4424 | |
4425 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4426 | ||
4427 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
4428 | handle abnormal edges. | |
4429 | ||
4430 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4431 | ||
4432 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
4433 | (free_poly_bb): Also free poly_drs. | |
4434 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
4435 | (poly_dr): Polyhedron to Pointset_Powerset. | |
4436 | (pdr_accessp_nb_subscripts): Same. | |
4437 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
4438 | poly_drs. | |
4439 | ||
4440 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4441 | ||
4442 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
4443 | names into more meaningful names. | |
4444 | ||
4445 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4446 | ||
45489e99 SP |
4447 | * gfortran.dg/graphite/interchange-1.c: New. |
4448 | * gfortran.dg/graphite/interchange-2.c: New. | |
2abae5f1 SP |
4449 | |
4450 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4451 | ||
4452 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
4453 | the reduction_list. | |
4454 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
4455 | (rewrite_all_phi_nodes_with_iv): New. | |
4456 | (canonicalize_loop_ivs): Call them. | |
4457 | ||
4458 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4459 | ||
4460 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
4461 | graphite_find_data_references_in_stmt. | |
4462 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
4463 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
4464 | ||
4465 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4466 | ||
4467 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
4468 | ||
4469 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4470 | ||
4471 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
4472 | instead of bb_in_region. | |
4473 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
4474 | (build_sese_conditions): Use flag_bb_in_sese. | |
4475 | * sese.c (register_bb_in_sese): Removed. | |
4476 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
4477 | (free_sese): Do not free SESE_REGION_BBS. | |
4478 | * sese.h (struct sese): Remove field region_basic_blocks. | |
4479 | (SESE_REGION_BBS): Removed. | |
4480 | (bb_in_sese_p): Implement in function of bb_in_region. | |
4481 | ||
4482 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4483 | ||
4484 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
4485 | loops. | |
4486 | ||
4487 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4488 | ||
4489 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
4490 | and EQ_EXPR. | |
4491 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
4492 | (add_condition_to_domain): New. | |
4493 | (add_condition_to_pbb): New. | |
4494 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
45489e99 | 4495 | * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. |
2abae5f1 SP |
4496 | |
4497 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4498 | ||
4499 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
4500 | ppl_Pointset_Powerset. | |
4501 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
4502 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
4503 | (pbb_nb_loops): Same. | |
4504 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
4505 | add_conditions_to_domain): Same. | |
4506 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
4507 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
4508 | ppl_const_Polyhedron_t. | |
4509 | (ppl_print_powerset_matrix): New. | |
4510 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
4511 | ppl_print_powerset_matrix): New. | |
4512 | (ppl_print_polyhedron_matrix): Updated. | |
4513 | ||
4514 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4515 | ||
4516 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
4517 | ||
4518 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4519 | ||
4520 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
4521 | (print_iteration_domains, debug_iteration_domain, | |
4522 | debug_iteration_domains): New. | |
4523 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
4524 | debug_iteration_domains): Declared. | |
4525 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
4526 | indenting. | |
4527 | ||
4528 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
4529 | Sebastian Pop <sebastian.pop@amd.com> | |
4530 | ||
4531 | * graphite-poly.h (print_iteration_domain): New. | |
4532 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
4533 | (build_sese_conditions_1, build_sese_conditions_after, | |
4534 | build_sese_conditions_before): New. | |
4535 | (build_sese_conditions): Rewritten. | |
4536 | ||
4537 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4538 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4539 | ||
4540 | Cleanup of code generation liveouts. | |
4541 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
4542 | rename_map instead of one per translated statement. | |
4543 | Do not use SESE_LIVEOUT_RENAMES. | |
4544 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
4545 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
4546 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
4547 | phi node of a reduction: when a loop contains a reduction used outside | |
4548 | the loop, there should be a scalar close phi node on the exit block. | |
4549 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
4550 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
4551 | (free_sese): Do not free them. | |
4552 | (sese_build_liveouts_use): Do not use them. | |
4553 | (sese_build_liveouts_bb): Same. | |
4554 | (sese_build_liveouts): Same. | |
4555 | (sese_insert_phis_for_liveouts): Same. | |
4556 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
4557 | (defined_in_loop_p): New. | |
4558 | (alive_after_loop): New. | |
4559 | (close_phi_not_yet_inserted_p): New. | |
4560 | (struct alep, alep_p): New. | |
4561 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
4562 | in the code generated loop. | |
4563 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
4564 | Don't use SESE_LIVEOUT_RENAMES. | |
4565 | (default_liveout_before_guard): Renamed default_before_guard. | |
4566 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
4567 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
4568 | (register_sese_liveout_renames): Removed. | |
4569 | (copy_bb_and_scalar_dependences): Do not call it. | |
4570 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
4571 | reduction_list. | |
4572 | (SESE_LIVEOUT): Removed. | |
4573 | (SESE_LIVEOUT_RENAMES): Removed. | |
4574 | (SESE_REDUCTION_LIST): Removed. | |
4575 | (sese_build_liveouts): Removed. | |
4576 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
4577 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
4578 | (insert_guard_phis): Same. | |
4579 | (rename_map_elt): Declare a VEC of them. | |
4580 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
4581 | trees not pointers to trees. | |
4582 | ||
4583 | Rewrite in canonical close SSA form: | |
4584 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
4585 | (limit_scops): Close the scop after the block containing the close phi | |
4586 | nodes. | |
4587 | (canonicalize_loop_closed_ssa): New. | |
4588 | (canonicalize_loop_closed_ssa_form): New. | |
4589 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
4590 | ||
4591 | * graphite-sese-to-poly.c: Fix typos. | |
4592 | ||
4593 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4594 | ||
4595 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
4596 | Extended. | |
4597 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
4598 | (print_pbb): Add conditions. | |
4599 | ||
4600 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4601 | Sebastian Pop <sebastian.pop@amd.com> | |
4602 | ||
4603 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
4604 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
4605 | (build_scop_bbs_1): New. | |
4606 | (build_scop_bbs): Rewrite. | |
4607 | * sese.h (bb_in_region): New. | |
4608 | ||
4609 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4610 | ||
4611 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4612 | poly_drs vector. | |
4613 | (print_scop): Style. | |
4614 | * graphite-poly.h (poly_bb): Add drs vector. | |
4615 | (PBB_DRS): Add accessor. | |
4616 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
4617 | (build_pbb_drs, build_scop_drs): New. | |
4618 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
4619 | ||
4620 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4621 | ||
4622 | * tree-ssa-loop.c: Include forgotten toplev.h | |
4623 | ||
4624 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4625 | ||
4626 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
45489e99 SP |
4627 | * gcc.dg/graphite/pr37883.c: Remove -floop-* |
4628 | * gcc.dg/graphite/pr37928.c: Same | |
4629 | * gcc.dg/graphite/pr38409.c: Same | |
4630 | * gcc.dg/graphite/pr38498.c: Same | |
4631 | * gcc.dg/graphite/pr38559.c: Same | |
4632 | * gcc.dg/graphite/pr39335.c: Same | |
4633 | * gcc.dg/graphite/pr39335_1.c: Same | |
4634 | * gfortran.dg/graphite/block-2.f: Same | |
2abae5f1 SP |
4635 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called |
4636 | with -floop-*. | |
4637 | ||
4638 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
4639 | ||
4640 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
4641 | build_access_matrix, build_scop_data_accesses): Remove access function | |
4642 | building. (We get a new version soon). | |
4643 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
4644 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
4645 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
4646 | ||
4647 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
4648 | Sebastian Pop <sebastian.pop@amd.com> | |
4649 | ||
4650 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
4651 | field to exit. | |
4652 | (scopdet_basic_block_info, build_scops_1): Don't use | |
4653 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
4654 | ||
4655 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
4656 | Sebastian Pop <sebastian.pop@amd.com> | |
4657 | ||
4658 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
4659 | * sese.c (sese_build_liveouts_use): Renamed from | |
4660 | sese_build_livein_liveouts_use. Remove liveins. | |
4661 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
4662 | Call sese_build_liveouts_use. | |
4663 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
4664 | Call sese_build_liveouts_bb. | |
4665 | (new_sese, free_sese): Remove liveins. | |
4666 | (sese_add_exit_phis_var): Deleted. | |
4667 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
4668 | directly. | |
4669 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
4670 | ||
4671 | * sese.h (sese): Remove num_ver and livein. | |
4672 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
4673 | ||
4674 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4675 | ||
4676 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
4677 | ||
4678 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4679 | ||
4680 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
4681 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
4682 | (nb_common_loops): New. | |
4683 | ||
4684 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4685 | ||
4686 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
4687 | (register_old_and_new_names): Renamed set_rename. | |
4688 | ||
4689 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4690 | ||
4691 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
4692 | of the decl from the previous commit. | |
4693 | ||
4694 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4695 | ||
4696 | * graphite-scop-detection.c (dot_scop): New. | |
4697 | * graphite-scop-detection.h (dot_scop): Declared. | |
4698 | ||
4699 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4700 | ||
4701 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
4702 | ||
4703 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4704 | ||
4705 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
4706 | condition at the end of the loop. | |
4707 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
4708 | dump_file the compiled function. | |
4709 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
4710 | of create_empty_loop_on_edge. | |
4711 | (translate_clast): Update the code generation of loops for the new | |
4712 | shape of loops. | |
4713 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
4714 | ||
4715 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4716 | ||
4717 | Reverted the patch from 2009-03-19. | |
4718 | ||
4719 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4720 | ||
4721 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4722 | poly_drs vector. | |
4723 | (print_scop): Style. | |
4724 | * graphite-poly.h (poly_bb): Add drs vector. | |
4725 | (PBB_DRS): Add accessor. | |
4726 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
4727 | (build_access_matrix_with_af, build_access_matrix, | |
4728 | build_scop_data_accesses): Delete. | |
4729 | (build_poly_dr): New. | |
4730 | (build_pbb_drs, build_scop_drs): New. | |
4731 | (build_poly_scop): call build_scop_drs. | |
4732 | ||
4733 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
4734 | ||
4735 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
4736 | once per basic block. | |
4737 | ||
4738 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4739 | ||
4740 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
4741 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
4742 | and enhanced. | |
4743 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
4744 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
4745 | (scopdet_basic_block_info): Actually define entry_block. | |
4746 | (stmt_simple_memref_p): Moved here from ... | |
4747 | ||
4748 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
4749 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
4750 | ||
4751 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4752 | ||
45489e99 | 4753 | * gcc.dg/graphite/id-4.c: New. |
2abae5f1 SP |
4754 | |
4755 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4756 | ||
4757 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
4758 | (register_old_and_new_names): Update the content of the map. | |
4759 | When there was already a rename_map_elt in the map at that | |
4760 | location, free it. | |
4761 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4762 | expand_scalar_variables. | |
4763 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4764 | of the map. When there was already a rename_map_elt in the | |
4765 | map at that location, free it. | |
4766 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4767 | a rename_map per stmt_user. | |
4768 | (gloog): Initialize and free one rename_map and pass it to | |
4769 | translate_clast. | |
4770 | ||
4771 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4772 | ||
4773 | * sese.c (expand_scalar_variables_stmt, | |
4774 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
4775 | parameter. | |
4776 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
4777 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
4778 | the gimple_stmt_iterator of the statement to be expanded. | |
4779 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
4780 | REALPART_EXPR. | |
4781 | ||
4782 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4783 | ||
4784 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
4785 | REALPART_EXPR. | |
45489e99 | 4786 | * gcc.dg/graphite/id-2.c: New. |
2abae5f1 SP |
4787 | |
4788 | * graphite-sese-to-poly.c (build_bb_loops, | |
4789 | add_value_to_dim, scan_tree_for_params_right_scev, | |
4790 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
4791 | find_params_in_bb, build_loop_iteration_domains, | |
4792 | add_conditions_to_domain): Remove subtract. | |
4793 | ||
4794 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4795 | ||
4796 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
4797 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
4798 | pbb_loop_at_index -> gbb_loop_at_index. | |
4799 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
4800 | (debug_loop_vec): Delete. | |
4801 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
4802 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
4803 | (PBB_LOOPS): Removed. | |
4804 | (PBB_BLACK_BOX): Insert cast. | |
4805 | (pbb_set_black_box): New setter. | |
4806 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
4807 | (scop_set_region, scop_set_nb_params): New. | |
4808 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
4809 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
4810 | (build_poly_scop): Use scop_set_nb_params. | |
4811 | * sese.h (gimple_bb): Add LOOPS. | |
4812 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
4813 | ||
4814 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4815 | ||
4816 | Revert previous commit. | |
4817 | ||
4818 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
4819 | ||
4820 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
4821 | (register_old_and_new_names): Update the content of the map. | |
4822 | When there was already a rename_map_elt in the map at that | |
4823 | location, free it. | |
4824 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4825 | expand_scalar_variables. | |
4826 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4827 | of the map. When there was already a rename_map_elt in the | |
4828 | map at that location, free it. | |
4829 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4830 | a rename_map per stmt_user. | |
4831 | (gloog): Initialize and free one rename_map and pass it to | |
4832 | translate_clast. | |
4833 | ||
4834 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4835 | ||
4836 | Remove forgotten line in revert. | |
4837 | ||
4838 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
4839 | ||
4840 | Revert previous commit. | |
4841 | ||
4842 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
4843 | ||
4844 | * sese.c (register_old_and_new_names): Update the content | |
4845 | of the map. When there was already a rename_map_elt in the | |
4846 | map at that location, free it. | |
4847 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4848 | expand_scalar_variables. | |
4849 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4850 | of the map. When there was already a rename_map_elt in the | |
4851 | map at that location, free it. | |
4852 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4853 | a rename_map per stmt_user. | |
4854 | (gloog): Initialize and free one rename_map and pass it to | |
4855 | translate_clast. | |
4856 | ||
4857 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
4858 | ||
4859 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
4860 | is never NULL. | |
4861 | ||
4862 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4863 | Sebastian Pop <sebastian.pop@amd.com> | |
4864 | ||
4865 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
4866 | of the use of ppl_Polyhedron_map_space_dimensions. | |
4867 | ||
4868 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4869 | Sebastian Pop <sebastian.pop@amd.com> | |
4870 | ||
4871 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
4872 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
4873 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
4874 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
4875 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
4876 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
4877 | pbb_nb_params): New. | |
4878 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
4879 | nb_loops_around_pbb): Adapt return types. | |
4880 | ||
4881 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4882 | ||
4883 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
4884 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
4885 | graphite-scop-detection.o, graphite-poly.o): Add | |
4886 | more headers. | |
4887 | ||
4888 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4889 | ||
4890 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
4891 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
4892 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
4893 | ||
4894 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4895 | ||
45489e99 SP |
4896 | * gcc.dg/graphite/pr37485.c: Remove -floop-block |
4897 | * gcc.dg/graphite/pr37828.c: Same. | |
4898 | * gcc.dg/graphite/pr37684.c: Same. | |
4899 | * gcc.dg/graphite/block-0.c: Same. | |
4900 | * gcc.dg/graphite/block-1.c: Same. | |
4901 | * gcc.dg/graphite/block-2.c: Same. | |
4902 | * gcc.dg/graphite/block-3.c: Same. | |
4903 | * gcc.dg/graphite/block-4.c: Same. | |
4904 | * gcc.dg/graphite/block-5.c: Same. | |
4905 | * gcc.dg/graphite/block-6.c: Same. | |
4906 | * gfortran.dg/graphite/pr38083.f90: Same. | |
4907 | * gfortran.dg/graphite/block-1.f90: Same. | |
4908 | * gfortran.dg/graphite/block-3.f90: Same. | |
4909 | * gfortran.dg/graphite/pr37852.f90: Same. | |
4910 | * gfortran.dg/graphite/block-4.f90: Same. | |
4911 | * gfortran.dg/graphite/pr37980.f90: Same. | |
4912 | * gfortran.dg/graphite/pr38953.f90: Same. | |
4913 | * gfortran.dg/graphite/pr37857.f90: Same. | |
2abae5f1 SP |
4914 | * opts.c: Remove -floop-block from -O2. |
4915 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
4916 | -floop-strip-mine are used. | |
4917 | ||
4918 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4919 | Sebastian Pop <sebastian.pop@amd.com> | |
4920 | ||
4921 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
4922 | dimensions. | |
4923 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
4924 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
4925 | strip_mine_profitable_p, is_interchange_valid, | |
4926 | graphite_trans_bb_block, graphite_trans_loop_block, | |
4927 | graphite_trans_scop_block): Temporary removed. | |
4928 | (extend_scattering, unify_scattering_dimensions): New. | |
4929 | (print_scattering_function, graphite_read_transforms): | |
4930 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4931 | (graphite_generate_scattering_fns): Removed. | |
4932 | (apply_poly_transforms): Cleanup. | |
4933 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4934 | (schedule_to_scattering): Moved. | |
4935 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
4936 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
4937 | (pbb_nb_scattering): New. | |
4938 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
4939 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
4940 | Removed. | |
4941 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
4942 | shift_poly. | |
4943 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4944 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
4945 | -> PBB_TRANSFORMED_SCATTERING. | |
4946 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
4947 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
4948 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
4949 | (check_poly_representation): Do not return bool. | |
4950 | (graphite_transform_loops): Reformat. | |
4951 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
4952 | ||
4953 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
4954 | ||
4955 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
4956 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
4957 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
4958 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
4959 | ||
4960 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
4961 | ||
4962 | PR middle-end/39335 | |
4963 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
4964 | when the type precision of the induction variable should be | |
4965 | larger than the type precision of nit. | |
4966 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
4967 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
4968 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
4969 | ||
45489e99 SP |
4970 | * gcc.dg/graphite/pr39335_1.c: New. |
4971 | * gcc.dg/graphite/pr39335.c: New. | |
2abae5f1 SP |
4972 | |
4973 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
4974 | ||
4975 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
4976 | SSA_NAMES not struct reduction_info. | |
4977 | ||
4978 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
4979 | ||
4980 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
4981 | ||
4982 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
4983 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4984 | ||
4985 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
4986 | (free_sese): Free SESE_REDUCTION_LIST. | |
4987 | * sese.h (struct sese): Add field reduction_list. | |
4988 | (SESE_REDUCTION_LIST): New. | |
4989 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
4990 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
4991 | ||
4992 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
4993 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4994 | ||
4995 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
4996 | of loop_p. | |
4997 | ||
4998 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
4999 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5000 | ||
5001 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
5002 | analyze_reduction_list, gather_scalar_reductions): New. | |
5003 | (loop_parallel_p): Build a reduction list containing only | |
5004 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
5005 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
5006 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
5007 | * tree-flow.h (gather_scalar_reductions): Declared. | |
5008 | ||
5009 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
5010 | ||
5011 | PR middle-end/39308 | |
5012 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
5013 | number_of_iterations_exit from a gcc_assert. | |
5014 | ||
5015 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
5016 | Jan Sjodin <jan.sjodin@amd.com> | |
5017 | ||
5018 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
5019 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
5020 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
5021 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
5022 | Don't call schedule_to_scattering. | |
5023 | * common.opt (fgraphite-write, fgraphite-read): New. | |
5024 | * graphite-poly.c: Include output.h. | |
5025 | (print_scattering_function, print_scattering_functions, | |
5026 | debug_scattering_function, debug_scattering_functions, | |
5027 | graphite_write_transforms, graphite_read_transforms, | |
5028 | graphite_generate_scattering_fns): New. | |
5029 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
5030 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
5031 | graphite_read_transforms. | |
5032 | (new_poly_bb): Initialize PBB_SCATTERING. | |
5033 | (free_poly_bb): Free PBB_SCATTERING. | |
5034 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
5035 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
5036 | (PBB_SCATTERING): New. | |
5037 | (print_scattering_function, print_scattering_functions, | |
5038 | debug_scattering_function, debug_scattering_functions): Declared. | |
5039 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
5040 | GMP values, not integers! | |
5041 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
5042 | ppl_read_polyhedron_matrix): New. | |
5043 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
5044 | debug_ppl_polyhedron_matrix, | |
5045 | ppl_read_polyhedron_matrix): Declared. | |
5046 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
5047 | ||
5048 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5049 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5050 | ||
5051 | Revert this change: | |
5052 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5053 | scalar evolutions in the scop_entry->loop_father. | |
5054 | ||
5055 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5056 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5057 | ||
5058 | * graphite.h (ref_nb_loops): Remove declaration. | |
5059 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
5060 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
5061 | debug_gbb): Moved to sese.h. | |
5062 | * sese.h: As said. | |
5063 | ||
5064 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5065 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5066 | ||
5067 | * graphite-data-ref.[ch]: Disable. | |
5068 | ||
5069 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5070 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5071 | ||
5072 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5073 | scalar evolutions in the scop_entry->loop_father. | |
5074 | ||
5075 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5076 | ||
5077 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
5078 | (graphite_cannot_represent_loop_niter): Renamed | |
5079 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
5080 | (limit_scops): build_sese_loop_nests does not return a bool. | |
5081 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
5082 | * sese.c (nb_reductions_in_loop): ... from here. | |
5083 | (graphite_loop_normal_form): ... from here. | |
5084 | (sese_record_loop): Does not fail, so does not return a bool. | |
5085 | (build_sese_loop_nests): Same. | |
5086 | * sese.h (build_sese_loop_nests): Update declaration. | |
5087 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
5088 | (build_graphite_loop_normal_form): New. | |
5089 | (gloog): Call build_graphite_loop_normal_form. | |
5090 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
5091 | build_sese_loop_nests. | |
5092 | ||
45489e99 | 5093 | * gcc.dg/graphite/id-1.c: New. |
2abae5f1 SP |
5094 | |
5095 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5096 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5097 | ||
5098 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
5099 | The SCoP detection fix is sufficient. | |
5100 | ||
5101 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5102 | ||
5103 | PR tree-optimization/39260 | |
5104 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
5105 | the basic block contains a condition with a real type. | |
5106 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
5107 | ||
5108 | * gcc.dg/graphite/pr39260.c: New. | |
5109 | ||
5110 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5111 | ||
5112 | * graphite-poly.c: Inlcude params.h. | |
5113 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
5114 | the size of a tile. | |
5115 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
5116 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
5117 | ||
5118 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5119 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5120 | ||
5121 | * graphite-scop-detection.c (dot_all_scops_1, | |
5122 | dot_all_scops): Moved here. | |
5123 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
5124 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
5125 | (graphite_transform_loops): Cleaned up. | |
5126 | * sese.c (debug_oldivs): Moved here. | |
5127 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
5128 | apply_poly_transforms. | |
5129 | (debug_loop_vec): Moved here. | |
5130 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
5131 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
5132 | find_scop_parameters, build_scop_iteration_domain, | |
5133 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
5134 | build_scop_data_accesses): Now static. | |
5135 | (build_poly_scop, check_poly_representation): New. | |
5136 | ||
5137 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5138 | ||
5139 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
5140 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
5141 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
5142 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
5143 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
5144 | scan_tree_for_params, struct irp_data, dx_record_params, | |
5145 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
5146 | build_loop_iteration_domains, add_conditions_to_domain, | |
5147 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
5148 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
5149 | build_sese_conditions, add_conditions_to_constraints, | |
5150 | build_scop_iteration_domain, build_access_matrix_with_af, | |
5151 | build_access_matrix, | |
5152 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
5153 | ||
5154 | * graphite-sese-to-poly.c: New. | |
5155 | * graphite-sese-to-poly.h: New. | |
5156 | ||
5157 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
5158 | ||
5159 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5160 | ||
5161 | * graphite.c: Split graphite code generation to a new file. | |
5162 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
5163 | max_precision_type, clast_to_gcc_expression_red, | |
5164 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
5165 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
5166 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
5167 | graphite_create_new_guard, clast_get_body_of_loop, | |
5168 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
5169 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
5170 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5171 | compute_cloog_iv_types, free_scattering, save_var_name, | |
5172 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
5173 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
5174 | print_generated_program, debug_generated_program, | |
5175 | gloog): Moved to graphite-clast-to-gimple.c. | |
5176 | ||
5177 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
5178 | ||
5179 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
5180 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
5181 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
5182 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
5183 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
5184 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
5185 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
5186 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
5187 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
5188 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
5189 | get_vdef_before_sese, sese_adjust_vphi, | |
5190 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
5191 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
5192 | is_iv, expand_scalar_variables_ssa_name, | |
5193 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
5194 | expand_scalar_variables, rename_variables, remove_condition, | |
5195 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
5196 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
5197 | default_liveout_before_guard, add_guard_exit_phis, | |
5198 | insert_guard_phis, register_old_and_new_names, | |
5199 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
5200 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
5201 | if_region_set_false_region, create_if_region_on_edge, | |
5202 | move_sese_in_condition): Moved to sese.c. | |
5203 | ||
5204 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
5205 | if_region_exit, if_region_get_condition_block, | |
5206 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
5207 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
5208 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
5209 | ivtype_map_elt, new_ivtype_map_elt, | |
5210 | recompute_all_dominators): Moved to sese.h. | |
5211 | ||
5212 | * graphite-clast-to-gimple.c: New. | |
5213 | * graphite-clast-to-gimple.h: New. | |
5214 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
5215 | * sese.c: Modified as said above. | |
5216 | * sese.h: Same. | |
5217 | ||
5218 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5219 | ||
5220 | * graphite.c: Split scop detection to a new file. | |
5221 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
5222 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
5223 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
5224 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
5225 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
5226 | find_single_entry_edge, find_single_exit_edge, | |
5227 | create_single_entry_edge, sd_region_without_exit, | |
5228 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
5229 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
5230 | Moved to graphite-scop-detection.c. | |
5231 | ||
5232 | * graphite-scop-detection.c: New. | |
5233 | * graphite-scop-detection.h: New. | |
5234 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
5235 | ||
5236 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
5237 | tree-scalar-evolution.h. | |
5238 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
5239 | build_sese_loop_nests): Moved here from graphite.c. | |
5240 | (param_index): Renamed parameter_index_in_region. | |
5241 | ||
5242 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5243 | Sebastian Pop <sebastian.pop@amd.com> | |
5244 | ||
5245 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
5246 | * gcc.dg/graphite/block-1.c: Same. | |
5247 | * gcc.dg/graphite/block-5.c: Same. | |
5248 | * gcc.dg/graphite/block-6.c: Same. | |
5249 | ||
5250 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5251 | Sebastian Pop <sebastian.pop@amd.com> | |
5252 | ||
5253 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
5254 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
5255 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
5256 | graphite-data-ref.h. | |
5257 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
5258 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
5259 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
5260 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5261 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
5262 | scop_nb_params): Moved to graphite-poly.h. | |
5263 | * graphite-data-ref.c: Same. | |
5264 | * graphite-data-ref.h: New. | |
5265 | * graphite.c: Same. | |
5266 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
5267 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
5268 | is_interchange_valid, graphite_trans_bb_block, | |
5269 | graphite_trans_loop_block, scop_max_loop_depth, | |
5270 | graphite_trans_scop_block, graphite_apply_transformations, | |
5271 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
5272 | graphite-poly.c. | |
5273 | * graphite-poly.h: New. | |
5274 | * graphite-poly.c: New. | |
5275 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
5276 | (graphite-poly.o): New rule. | |
5277 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
5278 | (DR_SCOP): Removed. | |
5279 | ||
5280 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5281 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5282 | ||
5283 | * graphite.c: Replace gb -> gbb. | |
5284 | * graphite.h: Same. | |
5285 | * graphite-data-ref.c: Same. | |
5286 | ||
5287 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5288 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5289 | ||
5290 | * Makefile.in (OBJS-commmon): Add sese.o. | |
5291 | (sese.o): New. | |
5292 | (graphite.o): Add sese.h. | |
5293 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
5294 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
5295 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
5296 | Move to sese. | |
5297 | (block_before_scop): Add missing return. | |
5298 | (new_scop, free_scop): Remove SESE data structures. | |
5299 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
5300 | find_scop_parameters, build_loop_iteration_domains, | |
5301 | add_conditions_to_domain, register_scop_liveout_renames, | |
5302 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
5303 | ||
5304 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
5305 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
5306 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
5307 | non iv scalar phi nodes. | |
5308 | (print_scop_statistics): New. | |
5309 | (graphite_transform_loops): Cleanup. | |
5310 | ||
5311 | * graphite.h: Move to sese & cleanup. | |
5312 | * sese.c: New. | |
5313 | * sese.h: New. | |
5314 | ||
5315 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5316 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5317 | ||
5318 | * graphite.c (build_scop_conditions_1): Conditions are only | |
5319 | at the end of a basic block. | |
5320 | ||
5321 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5322 | Tobias Grosser <grosser@fim.uni-passau> | |
5323 | ||
5324 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
5325 | field. | |
5326 | (GBB_ALPHA): Removed. | |
5327 | ||
5328 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5329 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5330 | ||
5331 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
5332 | GBB_DYNAMIC_SCHEDULE. | |
5333 | * graphite.c (new_graphite_bb): Same. | |
5334 | (free_graphite_bb): Same. | |
5335 | (build_scop_dynamic_schedules): Removed. | |
5336 | (graphite_transform_loops): Don't call it. | |
5337 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
5338 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
5339 | ||
5340 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5341 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5342 | ||
5343 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
5344 | (print_graphite_bb): Same. | |
5345 | (build_cloog_prog): Same. | |
5346 | ||
5347 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5348 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5349 | ||
5350 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
5351 | ||
5352 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5353 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5354 | ||
5355 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
5356 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
5357 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
5358 | ||
5359 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5360 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5361 | ||
5362 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
5363 | liveout_renames, add_params fields... | |
5364 | (struct sese): ... here. | |
5365 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
5366 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
5367 | ||
5368 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5369 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5370 | ||
5371 | * graphite.c (print_scop): Do not print the CLooG program. | |
5372 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
5373 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
5374 | (find_transform): Renamed scop_to_clast. | |
5375 | (print_generated_program, debug_generated_program): New. | |
5376 | (graphite_transform_loops): Adapt to new interface. | |
5377 | * graphite.h (struct scop): Remove program field. | |
5378 | (SCOP_PROG): Removed. | |
5379 | (print_generated_program, debug_generated_program): Declared. | |
5380 | ||
5381 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5382 | ||
5383 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
5384 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
5385 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
5386 | free_graphite_bb, build_scop_canonical_schedules, | |
5387 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
5388 | schedules are now represented using a ppl_Linear_Expression_t. | |
5389 | * graphite.h (struct graphite_bb): Same. | |
5390 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
5391 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
5392 | ||
5393 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5394 | ||
5395 | * graphite.c: Free local memory. | |
5396 | * graphite-ppl.c: Same. | |
5397 | ||
5398 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5399 | ||
5400 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
5401 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
5402 | swap_constraint_variables, scale_constraint_variable): Removed. | |
5403 | (graphite_trans_bb_strip_mine): Remove pong. | |
5404 | * graphite-ppl.c: Include missing header files. | |
5405 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
5406 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
5407 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
5408 | ||
5409 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
5410 | ||
5411 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
5412 | (build_scop_iteration_domain): Same. | |
5413 | ||
5414 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5415 | ||
5416 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5417 | ping pong. | |
5418 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5419 | scan_tree_for_params_int): New. | |
5420 | * graphite-ppl.c (oppose_constraint): New. | |
5421 | (insert_constraint_into_matrix): Implement missing cases. | |
5422 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5423 | ||
5424 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5425 | ||
5426 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5427 | use ppl_move_dimension. | |
5428 | ||
5429 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5430 | ||
5431 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
5432 | * graphite.c: Same. | |
5433 | * graphite.h: Same. | |
5434 | * graphite-ppl.c: Same. | |
5435 | * graphite-ppl.h: Same. | |
5436 | ||
5437 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5438 | ||
5439 | Revert last 3 commits. | |
5440 | ||
5441 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5442 | ||
5443 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5444 | ping pong. | |
5445 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5446 | scan_tree_for_params_int): New. | |
5447 | * graphite-ppl.c (oppose_constraint): New. | |
5448 | (insert_constraint_into_matrix): Implement missing cases. | |
5449 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5450 | ||
5451 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5452 | ||
5453 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
5454 | ||
5455 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5456 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5457 | ||
5458 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5459 | use ppl_move_dimension. | |
5460 | * graphite-ppl.c (ppl_move_dimension): New. | |
5461 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
5462 | ||
5463 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5464 | ||
5465 | * graphite.c: Do not include cloog/cloog.h. | |
5466 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
5467 | ||
5468 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5469 | ||
5470 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
5471 | (graphite.o): Add dependence on graphite-ppl.h. | |
5472 | (graphite-ppl.o): New. | |
5473 | (graphite-data-ref.c): Ping pong between PPL data structures | |
5474 | and matrices. | |
5475 | * graphite-ppl.c: New. | |
5476 | * graphite-ppl.h: New. | |
5477 | * graphite.c: Include graphite-ppl.h. | |
5478 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
5479 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
5480 | Ping pong between PPL data structures and matrices. | |
5481 | (new_graphite_bb): Create a PPL constraint system. | |
5482 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
5483 | (build_loop_iteration_domains): Use PPL functions. | |
5484 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
5485 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
5486 | CloogMatrix for representing the domain. | |
5487 | (scop): Remove static_schedule. | |
5488 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
5489 | ||
5490 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
5491 | ||
5492 | * graphite.c: Fix some comments. | |
5493 | ||
5494 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
5495 | ||
5496 | PR middle-end/38953 | |
5497 | * graphite.c (if_region_set_false_region): After moving a region | |
5498 | in the false branch of a condition, remove the empty dummy | |
5499 | basic block. | |
5500 | (gloog): Remove wrong fix for PR38953. | |
5501 | ||
5502 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5503 | ||
5504 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
5505 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
5506 | register_bb_in_sese, new_sese, free_sese): Moved. | |
5507 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
5508 | outermost_loop_in_scop, build_scop_iteration_domain, | |
5509 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
5510 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
5511 | Use loop_in_sese_p instead of loop_in_scop_p. | |
5512 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
5513 | (free_scop): Do not free SCOP_BBS_B. | |
5514 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
5515 | ref_nb_loops): Moved here... | |
5516 | * graphite.h (ref_nb_loops): ... from here. | |
5517 | (struct scop): Remove bbs_b bitmap. | |
5518 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
45489e99 | 5519 | * gcc.dg/graphite/scop-19.c: New |
2abae5f1 SP |
5520 | |
5521 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5522 | ||
5523 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
5524 | detection. | |
5525 | ||
5526 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5527 | ||
5528 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
5529 | eq_loop_to_cloog_loop): Remove. | |
5530 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
5531 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
5532 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
5533 | ||
5534 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5535 | ||
5536 | * opts.c (decode_options): Only add graphite options to O2 | |
5537 | if we compile with graphite enabled. | |
5538 | ||
5539 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5540 | ||
5541 | * Merge from mainline (r143163:143684). | |
5542 | ||
5543 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5544 | ||
5545 | * graphite.c (debug_value): Removed. | |
5546 | * graphite.h (debug_value): Removed. | |
5547 | ||
5548 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5549 | ||
5550 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
5551 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
5552 | SSA form. pass_copy_prop should be fixed. | |
5553 | ||
5554 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5555 | ||
5556 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
5557 | ||
5558 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5559 | ||
5560 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
5561 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
5562 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
5563 | changed the CFG. | |
5564 | ||
5565 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
5566 | ||
5567 | * graphite.c (gloog): Return true when code gen succeeded. | |
5568 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
5569 | the code of the function did not changed. After cleanup_tree_cfg | |
5570 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
5571 | form. | |
5572 | ||
5573 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
5574 | ||
5575 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
5576 | gimple_call_lhs is NULL. | |
5577 | ||
5578 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
5579 | Tobias Grosser <tobi.grosser@amd.com> | |
5580 | ||
5581 | * graphite.c (graphite_trans_scop_block): Do not block single | |
5582 | nested loops. | |
5583 | ||
5584 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5585 | Tobias Grosser <tobi.grosser@amd.com> | |
5586 | ||
5587 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
5588 | zero. | |
5589 | ||
5590 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5591 | Tobias Grosser <tobi.grosser@amd.com> | |
5592 | ||
5593 | * graphite.c (compare_prefix_loops): New. | |
5594 | (build_scop_canonical_schedules): Rewritten. | |
5595 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
5596 | after build_scop_iteration_domain. | |
5597 | ||
5598 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5599 | Tobias Grosser <tobi.grosser@amd.com> | |
5600 | ||
5601 | * graphite.c (add_conditions_to_domain): Add the loops to | |
5602 | the dimension of the iteration domain. Do copy the domain | |
5603 | only when it exists. | |
5604 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
5605 | (add_conditions_to_constraints): New. | |
5606 | (can_generate_code_stmt, can_generate_code): Removed. | |
5607 | (gloog): Do not call can_generate_code. | |
5608 | (graphite_transform_loops): Call add_conditions_to_constraints | |
5609 | after building the iteration domain. | |
5610 | ||
5611 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5612 | Tobias Grosser <tobi.grosser@amd.com> | |
5613 | Jan Sjodin <jan.sjodin@amd.com> | |
5614 | ||
5615 | * graphite.c (scan_tree_for_params): On substractions negate | |
5616 | all the coefficients of the term. | |
5617 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
5618 | of more than two operands. | |
5619 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
5620 | (get_vdef_before_scop): Handle also the case of default definitions. | |
5621 | ||
5622 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5623 | ||
5624 | PR middle-end/38431 | |
5625 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
5626 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
5627 | (gloog): Do not call cleanup_tree_cfg. | |
5628 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
5629 | scops have been code generated. | |
5630 | ||
5631 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5632 | ||
5633 | * passes.c (init_optimization_passes): Schedule after | |
5634 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
5635 | ||
5636 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5637 | ||
5638 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
5639 | Fix comment. | |
5640 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
5641 | Set the type of an expression to the type of its assign statement. | |
5642 | (expand_scalar_variables_expr): Do not pass loop_p. | |
5643 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
5644 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
5645 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
5646 | ||
5647 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5648 | ||
5649 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
5650 | an expression to the gimple_expr_type of its assign statement. | |
5651 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
5652 | or tcc_declaration. | |
5653 | ||
5654 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5655 | ||
5656 | PR tree-optimization/38786 | |
45489e99 | 5657 | * gcc.dg/graphite/pr38786.c: New. |
2abae5f1 SP |
5658 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from |
5659 | the SSA_NAME case of expand_scalar_variables_expr. | |
5660 | (expand_scalar_variables_expr): Also gather the scalar computation | |
5661 | used to index the memory access. | |
5662 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
5663 | the gimple_stmt_iterator where it inserts new code. | |
5664 | ||
5665 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5666 | ||
45489e99 | 5667 | * gcc.dg/graphite/block-3.c: Fix compile error on 32bit. |
2abae5f1 SP |
5668 | |
5669 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5670 | ||
5671 | * opts.c (decode_options): Enable flag_graphite_identity and | |
5672 | flag_loop_block in -O2 and above. | |
5673 | ||
5674 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5675 | ||
5676 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
5677 | Fix merge problem: replace with the file from trunk. | |
5678 | ||
5679 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5680 | ||
5681 | * Merge from mainline (r141727:143163). | |
5682 | ||
5683 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
5684 | Jan Sjodin <jan.sjodin@amd.com> | |
5685 | ||
5686 | PR tree-optimization/38559 | |
45489e99 | 5687 | * gcc.dg/graphite/pr38559.c: New. |
2abae5f1 SP |
5688 | |
5689 | * graphite.c (debug_value, copy_constraint, | |
5690 | swap_constraint_variables, scale_constraint_variable, ): New. | |
5691 | (get_lower_bound, get_upper_bound): Removed. | |
5692 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
5693 | only for constant number of iterations. Fully copy upper and | |
5694 | lower bound constraints, not only the constant part of them. | |
5695 | * graphite.h (debug_value): Declared. | |
5696 | ||
5697 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
5698 | ||
5699 | PR tree-optimization/38492 | |
5700 | PR tree-optimization/38498 | |
5701 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
5702 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
5703 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
5704 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
5705 | (graphite_loop_normal_form): Use gcc_assert. | |
5706 | (scan_tree_for_params): Use CASE_CONVERT. | |
5707 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
5708 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
5709 | Use gcc_assert. Discard scops that contain unhandled cases. | |
5710 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
5711 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
5712 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
5713 | recompute it wrongly. | |
5714 | (graphite_trans_bb_block): Same. | |
5715 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
5716 | (graphite_trans_scop_block): Do not print that the loop has been | |
5717 | blocked. | |
5718 | (graphite_transform_loops): Do not handle scops that contain condition | |
5719 | scalar phi nodes. | |
5720 | ||
45489e99 | 5721 | * gcc.dg/graphite/pr38500.c: Fixed warning as committed |
2abae5f1 | 5722 | in trunk. |
45489e99 SP |
5723 | * gcc.dg/graphite/block-0.c: Update test. |
5724 | * gcc.dg/graphite/block-1.c: Same. | |
5725 | * gcc.dg/graphite/block-2.c: Remove xfail and test for | |
2abae5f1 | 5726 | blocking. |
45489e99 SP |
5727 | * gcc.dg/graphite/block-4.c: Remove test for strip mine. |
5728 | * gcc.dg/graphite/block-3.c: New. | |
5729 | * gcc.dg/graphite/pr38498.c: New. | |
2abae5f1 SP |
5730 | |
5731 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
5732 | ||
5733 | PR tree-optimization/38510 | |
5734 | * gcc.dg/graphite/pr38510.c: New. | |
5735 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
5736 | (translate_clast): Call recompute_all_dominators before | |
5737 | graphite_verify. | |
5738 | (gloog): Call recompute_all_dominators before graphite_verify. | |
5739 | ||
5740 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
5741 | ||
5742 | PR tree-optimization/38492 | |
5743 | * graphite.c (rename_map_elt, debug_rename_elt, | |
5744 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
5745 | rename_map_elt_info, eq_rename_map_elts, | |
5746 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
5747 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
5748 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
5749 | (sese_build_livein_liveouts): New. | |
5750 | (new_sese, free_sese): New. | |
5751 | (new_scop): Call new_sese. | |
5752 | (free_scop): Call free_sese. | |
5753 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
5754 | (register_old_new_names): Renamed register_old_and_new_names. | |
5755 | (register_scop_liveout_renames, add_loop_exit_phis, | |
5756 | insert_loop_close_phis, struct igp, | |
5757 | default_liveout_before_guard, add_guard_exit_phis, | |
5758 | insert_guard_phis, copy_renames): New. | |
5759 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
5760 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
5761 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
5762 | (scop_adjust_phis_for_liveouts): New. | |
5763 | (gloog): Call scop_adjust_phis_for_liveouts. | |
5764 | ||
5765 | * graphite.h (struct sese): Documented. Added fields liveout, | |
5766 | num_ver and livein. | |
5767 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
5768 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
5769 | (struct scop): Added field liveout_renames. | |
5770 | (SCOP_LIVEOUT_RENAMES): New. | |
5771 | ||
5772 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5773 | ||
5774 | PR tree-optimization/38409 | |
5775 | * gcc.dg/graphite/pr38409.c: New. | |
5776 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
5777 | ||
5778 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5779 | ||
5780 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
5781 | integer_type_node. | |
5782 | (graphite_create_new_loop): Don't fold_convert the already | |
5783 | fold_convert-ed expression. | |
5784 | ||
5785 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
5786 | ||
5787 | PR tree-optimization/38446 | |
5788 | * gcc.dg/graphite/pr38446.c: New. | |
5789 | * graphite.c (register_bb_in_sese): New. | |
5790 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
5791 | looking at the bbs in the region. | |
5792 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
5793 | structure and initialize at the time of defining new scop. | |
5794 | ||
5795 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5796 | ||
5797 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
5798 | (find_params_in_bb): Do not free data refs. | |
5799 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
5800 | ||
5801 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5802 | ||
45489e99 SP |
5803 | * gcc.dg/graphite/scop-16.c: Test only scop specific info. |
5804 | * gcc.dg/graphite/scop-17.c: Same. | |
5805 | * gcc.dg/graphite/block-5.c: New. | |
5806 | * gcc.dg/graphite/block-6.c: New. | |
5807 | * gcc.dg/graphite/pr37485.c: Clean dump file after. | |
5808 | * gcc.dg/graphite/pr37684.c: Same. | |
5809 | * gcc.dg/graphite/block-2.c: Same. | |
2abae5f1 SP |
5810 | |
5811 | * graphite.c (struct ivtype_map_elt): New. | |
5812 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
5813 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
5814 | gcc_type_for_cloog_iv): New. | |
5815 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
5816 | variable from the original loop, except for the automatically | |
5817 | generated loops, i.e., in the case of a strip-mined loop, in | |
5818 | which case there is no original loop: in that case just use | |
5819 | integer_type_node. | |
5820 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
5821 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
5822 | (clast_name_to_gcc): Accept params to be NULL. | |
5823 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
5824 | Convert to that type all the expressions built by this function. | |
5825 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
5826 | (graphite_translate_clast_equation): Compute the type of the | |
5827 | clast_equation before translating its LHS and RHS. | |
5828 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
5829 | (graphite_create_new_loop): Compute the type of the induction | |
5830 | variable before translating the lower and upper bounds and before | |
5831 | creating the induction variable. | |
5832 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
5833 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
5834 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
5835 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5836 | compute_cloog_iv_types): New. | |
5837 | (gloog): Call compute_cloog_iv_types before starting the | |
5838 | translation of the clast. | |
5839 | ||
5840 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
5841 | (GBB_CLOOG_IV_TYPES): New. | |
5842 | (debug_ivtype_map): Declared. | |
5843 | (oldiv_for_loop): New. | |
5844 | ||
5845 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5846 | ||
5847 | PR middle-end/38459 | |
5848 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
5849 | (param_index): Assert if parameter is not know after parameter | |
5850 | detection. | |
5851 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
5852 | (find_scop_parameters): Mark, that we have finished parameter | |
5853 | detection. | |
5854 | (graphite_transform_loops): Move condition detection before parameter | |
5855 | detection. | |
5856 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
45489e99 | 5857 | * gfortran.dg/graphite/pr38459.f90: New. |
2abae5f1 SP |
5858 | |
5859 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5860 | ||
5861 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
5862 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
5863 | generate code. | |
5864 | ||
5865 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5866 | ||
5867 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
5868 | (print_scop): Ditto. | |
5869 | ||
5870 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
5871 | ||
5872 | PR middle-end/38084 | |
45489e99 | 5873 | Fix gfortran.dg/graphite/id-3.f90. |
2abae5f1 SP |
5874 | * graphite.c (scopdet_basic_block_info): Fix bug that found some |
5875 | regions more than once. | |
5876 | ||
5877 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5878 | ||
45489e99 | 5879 | Fix gfortran.dg/graphite/id-4.f90. |
2abae5f1 SP |
5880 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand |
5881 | when not needed. | |
5882 | ||
5883 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5884 | ||
45489e99 | 5885 | Fix gfortran.dg/graphite/id-1.f90. |
2abae5f1 SP |
5886 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. |
5887 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
5888 | (max_precision_type): New. | |
5889 | (value_clast): Removed. | |
5890 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
5891 | Use max_precision_type and update use of gmp_cst_to_tree. | |
5892 | (graphite_translate_clast_equation): Use max_precision_type. | |
5893 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
5894 | use the type of the condition. | |
5895 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
5896 | max_precision_type of lb and ub. | |
5897 | ||
5898 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5899 | ||
5900 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
5901 | and sinfo.last. | |
5902 | ||
5903 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
5904 | ||
45489e99 SP |
5905 | * gcc.dg/graphite/pr38084.c: New. |
5906 | * gfortran.dg/graphite/id-1.f90: New. | |
5907 | * gfortran.dg/graphite/id-2.f90: New. | |
5908 | * gfortran.dg/graphite/id-3.f90: New. | |
5909 | * gfortran.dg/graphite/id-4.f90: New. | |
5910 | * gfortran.dg/graphite/pr37857.f90: New. | |
2abae5f1 SP |
5911 | |
5912 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
5913 | Jan Sjodin <jan.sjodin@amd.com> | |
5914 | Harsha Jagasia <harsha.jagasia@amd.com> | |
5915 | ||
5916 | PR middle-end/37852 | |
5917 | PR middle-end/37883 | |
5918 | PR middle-end/37928 | |
5919 | PR middle-end/37980 | |
5920 | PR middle-end/38038 | |
5921 | PR middle-end/38039 | |
5922 | PR middle-end/38073 | |
5923 | PR middle-end/38083 | |
5924 | PR middle-end/38125 | |
5925 | ||
45489e99 SP |
5926 | * gcc.dg/graphite/pr38073.c: New. |
5927 | * gcc.dg/graphite/pr37928.c: New. | |
5928 | * gcc.dg/graphite/pr37883.c: New. | |
5929 | * gcc.dg/graphite/pr38125.c: New. | |
5930 | * gfortran.dg/graphite/pr38083.f90: New. | |
5931 | * gfortran.dg/graphite/pr37852.f90: New. | |
5932 | * gfortran.dg/graphite/pr37980.f90: New. | |
2abae5f1 | 5933 | |
45489e99 | 5934 | * gcc.dg/graphite/scop-18.c: Remove reduction, test for |
2abae5f1 SP |
5935 | the number of detected scops. Copy exact same test for loop |
5936 | blocking... | |
45489e99 | 5937 | * gcc.dg/graphite/block-1.c: Fix the number of expected |
2abae5f1 | 5938 | loops to be blocked as reductions are not handled. |
45489e99 | 5939 | * gcc.dg/graphite/block-4.c: ...here. New. |
2abae5f1 SP |
5940 | |
5941 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
5942 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
5943 | ...here. | |
5944 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
5945 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
5946 | (graphite.o-warn): Removed -Wno-error. | |
5947 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
5948 | to be a NULL pointer. Call update_stmt. Return the newly created | |
5949 | cannonical induction variable. | |
5950 | ||
5951 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
5952 | ||
5953 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
5954 | Include value-prof.h. | |
5955 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
5956 | (get_old_iv_from_ssa_name): Removed. | |
5957 | (graphite_stmt_p): New. | |
5958 | (new_graphite_bb): Test for useful statements before building a | |
5959 | graphite statement for the basic block. | |
5960 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
5961 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
5962 | reason. | |
5963 | (recompute_all_dominators, graphite_verify, | |
5964 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
5965 | (scop_record_loop): Call graphite_loop_normal_form. | |
5966 | (build_scop_loop_nests): Iterate over all the blocks of the | |
5967 | function instead of relying on the incomplete information from | |
5968 | SCOP_BBS. Return the success of the operation. | |
5969 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
5970 | (add_bb_domains): Removed. | |
5971 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
5972 | Add the iteration domain only to the basic blocks that have been | |
5973 | translated to graphite. | |
5974 | (build_scop_conditions_1): Add constraints only if the basic | |
5975 | block have been translated to graphite. | |
5976 | (build_scop_data_accesses): Completely disabled until data | |
5977 | dependence is correctly implemented. | |
5978 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
5979 | (remove_all_edges_1, remove_all_edges): Removed. | |
5980 | (get_new_name_from_old_name): New. | |
5981 | (graphite_rename_variables_in_stmt): Renamed | |
5982 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
5983 | Use replace_exp and update_stmt. | |
5984 | (is_old_iv): Renamed is_iv. | |
5985 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
5986 | Use replace_exp and update_stmt. | |
5987 | (expand_scalar_variables_expr): Same. Use the map to get the | |
5988 | new names for the renaming of induction variables and for the | |
5989 | renaming of variables after a basic block has been copied. | |
5990 | (expand_scalar_variables): Same. | |
5991 | (graphite_rename_variables): Renamed rename_variables. | |
5992 | (move_phi_nodes): Removed. | |
5993 | (get_false_edge_from_guard_bb): New. | |
5994 | (build_iv_mapping): Do not insert the induction variable of a | |
5995 | loop in the renaming iv map if the basic block does not belong | |
5996 | to that loop. | |
5997 | (register_old_new_names, graphite_copy_stmts_from_block, | |
5998 | copy_bb_and_scalar_dependences): New. | |
5999 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
6000 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
6001 | At each translation step call graphite_verify ensuring the | |
6002 | consistency of the SSA, loops and dominators information. | |
6003 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
6004 | find_vdef_for_var_1, find_vdef_for_var, | |
6005 | patch_phis_for_virtual_defs): Removed huge hack. | |
6006 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
6007 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
6008 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
6009 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
6010 | if_region_get_condition_block, if_region_set_false_region, | |
6011 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
6012 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
6013 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
6014 | rewrite_into_sese_closed_ssa): New. | |
6015 | (gloog): Remove dead code. Early return if code cannot be | |
6016 | generated. Call cleanup_tree_cfg once the scop has been code | |
6017 | generated. | |
6018 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
6019 | block loops with less than two loops. | |
6020 | (graphite_apply_transformations): Remove the call to | |
6021 | scop_remove_ignoreable_gbbs. | |
6022 | (limit_scops): When build_scop_loop_nests fails, continue on | |
6023 | the next scop. Fix open_scop.entry. | |
6024 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
6025 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
6026 | Call initialize_original_copy_tables and free_original_copy_tables | |
6027 | to be able to copy basic blocks during code generation. | |
6028 | When build_scop_loop_nests fails, continue on next scop. | |
6029 | (value_clast): New union. | |
6030 | (clast_to_gcc_expression): Fix type cast warning. | |
6031 | ||
6032 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
6033 | ||
6034 | * Merge from mainline (r140838:141727). | |
6035 | ||
6036 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6037 | ||
6038 | PR middle-end/37833 | |
6039 | ||
6040 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
6041 | ||
6042 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6043 | ||
6044 | PR middle-end/37943 | |
6045 | ||
6046 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
6047 | exits and conditions. | |
45489e99 | 6048 | * gcc.dg/graphite/pr37943.c: New. |
2abae5f1 SP |
6049 | |
6050 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6051 | ||
6052 | PR middle-end/37886 | |
6053 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
6054 | ||
6055 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6056 | ||
6057 | * doc/invoke.texi: Fix spaces. | |
6058 | ||
6059 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
6060 | ||
6061 | PR tree-optimization/37891 | |
6062 | Reverted last commit. | |
6063 | * graphite.c (create_single_entry_edge): Set | |
6064 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6065 | ||
6066 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
6067 | Mitul Thakkar <mitul.thakkar@amd.com> | |
6068 | ||
6069 | * graphite.c (create_single_entry_edge): Set | |
6070 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6071 | ||
6072 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
6073 | ||
6074 | * doc/invoke.texi: Add -fgraphite-identity. | |
6075 | * graphite.c (graphite_apply_transformations): Check for | |
6076 | -fgraphite-identity. | |
6077 | * toplev.c (process_options): Add flag_graphite_identity. | |
6078 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
6079 | ||
6080 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6081 | ||
6082 | Undo changes from 2008-10-02: | |
6083 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6084 | operand type when copying the operand to a variable of different type. | |
6085 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6086 | with the IV name after increment. | |
6087 | ||
6088 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6089 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6090 | ||
6091 | PR tree-optimization/37828 | |
45489e99 | 6092 | * gcc.dg/graphite/pr37828.c: New. |
2abae5f1 SP |
6093 | * graphite.c (graphite_trans_loop_block): Do not loop block |
6094 | single nested loops. | |
6095 | ||
6096 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
6097 | Sebastian Pop <sebastian.pop@amd.com> | |
6098 | ||
6099 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
6100 | rename_map_elt_info, eq_rename_map_elts): New. | |
6101 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
6102 | (expand_scalar_variables_expr): Change parameters. | |
6103 | (expand_scalar_variables_stmt): Same. | |
6104 | (expand_scalar_variables): Same. | |
6105 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
6106 | (build_iv_mapping): New. | |
6107 | (translate_clast): Call build_iv_mapping. | |
6108 | * graphite.h (gbb_p): New name. | |
6109 | ||
6110 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
6111 | ||
6112 | PR tree-optimization/37684 | |
6113 | * gcc.dg/graphite/pr37684.c: New. | |
6114 | * graphite.c (exclude_component_ref): New. | |
6115 | (is_simple_operand): Call exclude_component_ref. | |
6116 | ||
6117 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
6118 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6119 | ||
6120 | PR tree-optimization/37485 | |
6121 | * gcc.dg/graphite/block-2.c: New | |
6122 | * graphite.c (gmp_cst_to_tree): Moved. | |
6123 | (iv_stack_entry_is_constant): New. | |
6124 | (iv_stack_entry_is_iv): New. | |
6125 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
6126 | (loop_iv_stack_insert_constant): New. | |
6127 | (loop_iv_stack_pop): Use new datatpype. | |
6128 | (loop_iv_stack_get_iv): Same. | |
6129 | (loop_iv_stack_get_iv_from_name): Same. | |
6130 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
6131 | (loop_iv_stack_patch_for_consts): New. | |
6132 | (loop_iv_stack_remove_constants): New. | |
6133 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
6134 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
6135 | loop_iv_stack_remove_constants. | |
6136 | (gloog): Use new datatype. Redirect construction edge to end | |
6137 | block to avoid accidental deletion. | |
6138 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
6139 | iv stack entry. | |
6140 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
6141 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
6142 | ||
6143 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6144 | ||
6145 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6146 | operand type when copying the operand to a variable of different type. | |
6147 | ||
6148 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6149 | ||
6150 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6151 | with the IV name after increment. | |
6152 | ||
6153 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6154 | ||
6155 | * Merge from mainline (r140164:140838). | |
6156 | ||
6157 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6158 | ||
6159 | * graphite-data-ref.c: New. | |
6160 | * graphite.c (print_scop): Also dump the dependence graph. | |
6161 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
6162 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
6163 | (build_scop_dynamic_schedules): New. | |
6164 | (build_access_matrix_with_af): Fixed column numbering. | |
6165 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
6166 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
6167 | (struct scop): Add dep_graph field. | |
6168 | (SCOP_DEP_GRAPH): Defined. | |
6169 | (ref_nb_loops): Fixed and moved to other position. | |
6170 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
6171 | (nb_loops_around_loop_in_scop): New. | |
6172 | (graphite_dump_dependence_graph): Declared. | |
6173 | (graphite_build_rdg_all_levels): Declared. | |
6174 | (graphite_test_dependence): Declared. | |
6175 | * Makefile.in (graphite-data-ref.o): New target. | |
6176 | ||
6177 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
6178 | ||
6179 | * Merge from mainline (139870:140164). | |
6180 | ||
6181 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6182 | ||
6183 | * Merge from mainline (138275:139870). | |
45489e99 | 6184 | * gcc.dg/graphite/scop-matmult.c: XFailed as one of |
2abae5f1 SP |
6185 | the commits from trunk broke the niter detection. |
6186 | ||
6187 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6188 | ||
6189 | * graphite.c: Add more documentation. Fix formatting. | |
6190 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6191 | loop_iv_stack_debug): Moved... | |
6192 | (schedule_to_scattering): Move before use. | |
6193 | (dot_all_scops): Include in "#if 0" the code for system | |
6194 | call dotty. | |
6195 | ||
6196 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6197 | loop_iv_stack_debug): ...here. | |
6198 | ||
6199 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
6200 | ||
6201 | * tree-phinodes.c (make_phi_node): Extern. | |
6202 | (add_phi_node_to_bb): New. | |
6203 | (create_phi_node): Call add_phi_node_to_bb. | |
6204 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
6205 | (remove_statement): Handle case where stored phi was updated | |
6206 | and is no longer the same. | |
6207 | * graphite.c (is_parameter): New. | |
6208 | (is_old_iv): New. | |
6209 | (expand_scalar_variables_expr): New. | |
6210 | (expand_scalar_variables_stmt): New. | |
6211 | (expand_scalar_variables): New. | |
6212 | (move_phi_nodes): Create new phi instead of moving old one. | |
6213 | (translate_clast): Call expand_scalar_variables. | |
6214 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
6215 | (skip_phi_defs): New. | |
6216 | (collect_scop_exit_phi_args): New. | |
6217 | (patch_scop_exit_phi_args): New. | |
6218 | (gloog): Patch phis after scop. | |
6219 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
6220 | (make_phi_node): Declared. | |
6221 | ||
6222 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6223 | ||
6224 | * graphite.c (end_scop): Split the entry of the scop when it | |
6225 | is the header of the loop in which the scop is ending. | |
6226 | (build_scops_1, limit_scops): Update uses of end_scop. | |
6227 | ||
6228 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6229 | ||
6230 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
6231 | SCOP_ENTRY or SCOP_EXIT. | |
6232 | ||
6233 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6234 | ||
6235 | * graphite.c (get_construction_edge): Removed. | |
6236 | (gloog): Construction edge is the scop entry edge. | |
6237 | ||
6238 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6239 | ||
6240 | * graphite.c (can_generate_for_scop): Removed. | |
6241 | (gloog): Do not call it. | |
6242 | ||
6243 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6244 | ||
6245 | * graphite.c (new_scop): Entry of a scop is an edge. | |
6246 | Initialize SESE region. | |
6247 | (free_scop): Free SESE region. | |
6248 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
6249 | (split_difficult_bb): New, split from end_scop. | |
6250 | (end_scop): Exit of a scop is an edge. | |
6251 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
6252 | not automatically updated and thus is always wrong. | |
6253 | * graphite.h (struct sese): New. | |
6254 | (SESE_ENTRY): New. | |
6255 | (SESE_EXIT): New. | |
6256 | (struct scop): New field for a SESE region. Remove entry, exit. | |
6257 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
6258 | semantics as before. Moved comment around. | |
6259 | ||
6260 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6261 | Sebastian Pop <sebastian.pop@amd.com> | |
6262 | ||
6263 | * graphite.c (graphite_transform_loops): Always enable gloog | |
6264 | and find_transform when ENABLE_CHECKING. | |
6265 | ||
6266 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6267 | ||
6268 | * graphite.c (graphite_transform_loops): Move pretty printer | |
6269 | of SCOPs before doing any transform. Remove call to print_scops | |
6270 | and dot_all_scops_1. | |
6271 | ||
6272 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6273 | ||
6274 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
6275 | (print_graphite_bb): Same. | |
6276 | ||
6277 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6278 | ||
6279 | * graphite.c (dot_all_scops_1): Cleanup. | |
6280 | (move_scops): Fix comment. | |
6281 | ||
6282 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6283 | ||
6284 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
6285 | ||
6286 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6287 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6288 | ||
6289 | * graphite.c (build_scop_bbs): Factor up code. | |
6290 | ||
6291 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6292 | ||
6293 | * graphite.c (gloog): Update dominator info. | |
6294 | ||
6295 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6296 | ||
6297 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
6298 | ||
6299 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6300 | ||
6301 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
6302 | initialization. | |
6303 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
6304 | (translate_clast): Correct formatting. | |
6305 | * graphite.h (struct num_map): Removed. | |
6306 | (struct graphite_bb): Remove num_map field. | |
6307 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
6308 | ||
6309 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6310 | ||
6311 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
6312 | (build_scop_data_accesses): Same. | |
6313 | ||
6314 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6315 | ||
6316 | * graphite.c (build_scop_data_accesses): Don't construct | |
6317 | access matrices. Add a FIXME and an assert condition that | |
6318 | should pass when the access matrices will be needed. | |
6319 | ||
6320 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6321 | ||
6322 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
6323 | really_constant_p. | |
6324 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
6325 | Moved close by free_graphite_bb. | |
6326 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
6327 | (new_scop): Move close by free_scop. | |
6328 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
6329 | ||
6330 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
6331 | ||
6332 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
6333 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
6334 | instead of recursive call. | |
6335 | (graphite_translate_clast_equation): New. | |
6336 | (graphite_create_guard_cond_expr): New. | |
6337 | (graphite_create_new_guard): New. | |
6338 | (get_stack_index_from_iv): Removed. | |
6339 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
6340 | (get_true_edge_from_guard_bb): New. | |
6341 | (translate_clast): Handle stmt_guard in clast. | |
6342 | (get_construction_edge): Allow construction edge detection for | |
6343 | a scope entry with multiple predecessors if one predecessor is | |
6344 | the immediate dominator of scope entry. | |
6345 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
6346 | (gloog): Use correct context loop. Removed check for post dominators. | |
6347 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
6348 | ||
6349 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6350 | ||
6351 | * graphite.c (remove_dead_loops): Document better which | |
6352 | loops are removed. | |
6353 | ||
6354 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6355 | ||
6356 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
6357 | and PPLINC. | |
6358 | (graphite.o): Also depends on pointer-set.h. | |
6359 | ||
6360 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6361 | ||
6362 | * graphite.c (scop_record_loop): Fix compile warning. | |
6363 | ||
6364 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
6365 | Sebastian Pop <sebastian.pop@amd.com> | |
6366 | ||
6367 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
6368 | ||
6369 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6370 | ||
6371 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
6372 | point to the graphite_bb_p. | |
6373 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
6374 | content of bb->aux. | |
6375 | (add_bb_domains): Does not use the scop parameter. | |
6376 | (graphite_transform_loops): Clean bb->aux at the end. | |
6377 | ||
6378 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6379 | Sebastian Pop <sebastian.pop@amd.com> | |
6380 | ||
45489e99 | 6381 | * lib/target-supports.exp |
2abae5f1 SP |
6382 | (check_effective_target_fgraphite): New. |
6383 | ||
45489e99 | 6384 | * gcc.dg/graphite/graphite.exp: Early exit when |
2abae5f1 SP |
6385 | check_effective_target_fgraphite returns false. |
6386 | Set dg-do-what-default to compile. | |
6387 | (scan-graphite-dump-times): Removed. | |
45489e99 | 6388 | * gfortran.dg/graphite/graphite.exp: Same. |
2abae5f1 | 6389 | |
45489e99 | 6390 | * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". |
2abae5f1 | 6391 | Use scan-tree-dump-times instead of scan-graphite-dump-times. |
45489e99 SP |
6392 | * gcc.dg/graphite/scop-1.c: Same. |
6393 | * gcc.dg/graphite/scop-2.c: Same. | |
6394 | * gcc.dg/graphite/scop-3.c: Same. | |
6395 | * gcc.dg/graphite/scop-4.c: Same. | |
6396 | * gcc.dg/graphite/scop-5.c: Same. | |
6397 | * gcc.dg/graphite/scop-6.c: Same. | |
6398 | * gcc.dg/graphite/scop-7.c: Same. | |
6399 | * gcc.dg/graphite/scop-8.c: Same. | |
6400 | * gcc.dg/graphite/scop-9.c: Same. | |
6401 | * gcc.dg/graphite/scop-10.c: Same. | |
6402 | * gcc.dg/graphite/scop-11.c: Same. | |
6403 | * gcc.dg/graphite/scop-12.c: Same. | |
6404 | * gcc.dg/graphite/scop-13.c: Same. | |
6405 | * gcc.dg/graphite/scop-matmult.c: Same. | |
6406 | * gcc.dg/graphite/scop-14.c: Same. | |
6407 | * gcc.dg/graphite/scop-15.c: Same. | |
6408 | * gcc.dg/graphite/block-0.c: Same. | |
6409 | * gcc.dg/graphite/scop-16.c: Same. | |
6410 | * gcc.dg/graphite/block-1.c: Same. | |
6411 | * gcc.dg/graphite/scop-17.c: Same. | |
6412 | * gcc.dg/graphite/scop-18.c: Same. | |
6413 | * gfortran.dg/graphite/block-1.f90: Same. | |
6414 | * gfortran.dg/graphite/scop-1.f: Same. | |
6415 | * gfortran.dg/graphite/block-2.f: Same. | |
2abae5f1 SP |
6416 | |
6417 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6418 | ||
6419 | * graphite.c: Fix some XXX comments. | |
6420 | (build_scop_dynamic_schedules): Removed. | |
6421 | ||
6422 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6423 | ||
6424 | * graphite.h (scop_max_loop_depth): Moved... | |
6425 | * graphite.c (scop_max_loop_depth): ...here. | |
6426 | (remove_all_edges_1): New. | |
6427 | (remove_all_edges): Factored code. | |
6428 | (remove_cond_exprs): Check only the last statement for | |
6429 | a GIMPLE_COND expression. | |
6430 | ||
6431 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6432 | ||
6433 | * graphite.c (scan_tree_for_params): Early return when the | |
6434 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
6435 | (find_scop_parameters): Factor out code. | |
6436 | (graphite_trans_bb_strip_mine): Remove dead code. | |
6437 | ||
6438 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6439 | ||
6440 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
6441 | graphite_trans_bb_move_loop): Factor asserts. | |
6442 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
6443 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
6444 | ||
6445 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
6446 | ||
6447 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
6448 | create_loops_mapping_num, debug_loop_mapping_1, | |
6449 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
6450 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
6451 | graphite_loops_mapping_add_child_num, | |
6452 | graphite_loops_mapping_insert_child, | |
6453 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
6454 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
6455 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
6456 | create_num_from_index, get_num_from_index, | |
6457 | swap_loop_mapped_depth): Removed. | |
6458 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
6459 | (free_scop): Do not call free_loops_mapping. | |
6460 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
6461 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
6462 | get_loop_mapped_depth. | |
6463 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
6464 | (graphite_trans_bb_strip_mine): Same. | |
6465 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
6466 | (struct scop): Remove field loops_mapping. | |
6467 | ||
6468 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6469 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6470 | ||
6471 | * graphite.c (scop_record_loop): Factor out one level of the | |
6472 | condition by early return. | |
6473 | (build_scop_loop_nests): Format following FSF coding style. | |
6474 | (build_scop_dynamic_schedules): Factor out code. | |
6475 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
6476 | ||
6477 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6478 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6479 | ||
6480 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
6481 | assignments that are not handled as simple operands for now. | |
6482 | ||
6483 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6484 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6485 | ||
6486 | * graphite.c (build_scop_bbs): Factor up code. | |
6487 | ||
6488 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6489 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6490 | ||
6491 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
6492 | of the loop. | |
6493 | (enum gbb_type): New. Group all the GBB_* types under it. | |
6494 | (is_loop_exit): Moved... | |
6495 | (end_scop): Enable BB spliting. | |
6496 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
6497 | * cfgloop.h (is_loop_exit): Declared. | |
6498 | ||
6499 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6500 | ||
6501 | * doc/invoke.texi: Remove strides from examples containing | |
6502 | DO loops when the strides are equal to 1. | |
6503 | ||
6504 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
6505 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6506 | ||
6507 | * graphite.c (graphite_trans_scop_block): Or the result with | |
6508 | the result from graphite_trans_loop_block. | |
45489e99 SP |
6509 | * gcc.dg/graphite/block-1.c: New. |
6510 | * gfortran.dg/graphite/block-1.f90: New. | |
6511 | * gfortran.dg/graphite/block-2.f: New. | |
2abae5f1 SP |
6512 | |
6513 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6514 | ||
6515 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
6516 | and cloog_finalize. | |
6517 | ||
6518 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6519 | ||
6520 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
6521 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
6522 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
6523 | (is_simple_operand): Call stmt_simple_memref_p. | |
6524 | ||
45489e99 | 6525 | * gcc.dg/graphite/scop-matmult.c: Updated for not |
2abae5f1 SP |
6526 | using pointer arithmetic, as this is optimized by PRE and |
6527 | makes the code too difficult to analyze. | |
6528 | ||
45489e99 | 6529 | * gcc.dg/graphite/scop-18.c: Same. |
2abae5f1 SP |
6530 | |
6531 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6532 | ||
6533 | * gdbinit.in (pgg): New. | |
6534 | ||
6535 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6536 | ||
6537 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
6538 | ||
6539 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6540 | ||
6541 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
6542 | ||
6543 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6544 | ||
6545 | * graphite.c (graphite_trans_bb_block): Remove check for | |
6546 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
6547 | Check if loop blocking is profitable for every loop, before applying | |
6548 | the changes. | |
6549 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
6550 | if flag_loop_block is set. | |
6551 | ||
6552 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6553 | ||
6554 | * graphite.c: Add some more documentation for the loop | |
6555 | mapping. | |
6556 | ||
6557 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6558 | ||
6559 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
6560 | * graphite.c: Format on less than 80 columns. | |
6561 | * graphite.h: Same. | |
6562 | ||
6563 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6564 | ||
6565 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
6566 | ||
6567 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6568 | ||
6569 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
6570 | floop-interchange): Update documentation with examples. | |
6571 | ||
6572 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6573 | ||
6574 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
6575 | add_referenced_var. | |
6576 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
6577 | ||
6578 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6579 | ||
6580 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
6581 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
6582 | * tree-scalar-evolution.c: Revert useless changes. | |
6583 | * tree-phinodes.c: Same. | |
6584 | * cfghooks.c: Same. | |
6585 | * vec.h: Same. | |
6586 | * tree-vectorizer.h: Same. | |
6587 | * tree-flow.h: Same. | |
6588 | * tree-cfg.c: Same. | |
6589 | * common.opt (fgraphite): Update documentation. | |
6590 | ||
6591 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
6592 | ||
6593 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
6594 | -floop-interchange): Add more text for explaining what each of these | |
6595 | flags is doing. | |
6596 | * tree-into-ssa.c (gimple_vec): Moved to... | |
6597 | * graphite.c: Include gimple.h. | |
6598 | (gimple_vec): Moved to... | |
6599 | (del_loop_to_cloog_loop): Removed. | |
6600 | (loop_affine_expr): Do not call create_data_ref when the | |
6601 | operand is a constant. | |
6602 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
6603 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
6604 | * gimple.h (gimple_vec): ... here. | |
6605 | ||
6606 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6607 | ||
6608 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
6609 | latch executions. | |
6610 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
6611 | ||
6612 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6613 | ||
6614 | * graphite.c (add_conditions_to_domain): New. | |
6615 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
6616 | (set_cloog_options): Allow to disable optimizations. | |
6617 | ||
6618 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6619 | ||
6620 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
6621 | Do not use walk_dominator_tree. | |
6622 | (find_scop_parameters): Do not use walk_dominator_tree. | |
6623 | ||
6624 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6625 | ||
6626 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
6627 | (idx_record_params): Adapt. | |
6628 | * graphite.h (scop_gimple_loop_depth): New. | |
6629 | ||
6630 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6631 | ||
6632 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
6633 | (scan_tree_for_params): Remove value_init. | |
6634 | (build_scop_context): Remove value_init. | |
6635 | (build_loop_iteration_domains): Remove value_init. | |
6636 | (schedule_to_scattering): Remove value_init. | |
6637 | (graphite_trans_bb_strip_mine): Remove value_init. | |
6638 | ||
6639 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6640 | ||
6641 | * gcc/graphite.c (limit_scops): New. | |
6642 | (graphite_transform_loops): Add limit SCoPs. | |
45489e99 SP |
6643 | * gcc.dg/graphite/scop-0.c: Update number of SCoPs. |
6644 | * gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
6645 | * gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
6646 | * gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
6647 | * gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
6648 | * gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
6649 | * gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
6650 | * gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
6651 | * gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
2abae5f1 | 6652 | Change loop numbers. |
45489e99 | 6653 | * gcc.dg/graphite/scop-17.c: Update number of SCoPs. |
2abae5f1 | 6654 | Change loop numbers. |
45489e99 SP |
6655 | * gcc.dg/graphite/scop-18.c: Update number of SCoPs. |
6656 | * gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
6657 | * gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
6658 | * gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
6659 | * gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
6660 | * gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
6661 | * gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
6662 | * gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
6663 | * gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
6664 | * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
2abae5f1 SP |
6665 | |
6666 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6667 | ||
6668 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
6669 | ||
6670 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
6671 | ||
6672 | * graphite.c (free_loops_mapping): New. | |
6673 | (stmt_simple_for_scop_p): Fix typo. | |
6674 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
6675 | broke polyhedron. | |
6676 | (free_graphite_bb): Fix some memleaks. | |
6677 | (free_scop): Fix some memleaks. | |
6678 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
6679 | (find_params_in_bb): Fix some memleaks. | |
6680 | (clast_to_gcc_expression): Fix warning. | |
6681 | ||
6682 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
6683 | ||
45489e99 SP |
6684 | * gcc.dg/graphite/scop-16.c: Fix for 32bit. |
6685 | * gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
2abae5f1 SP |
6686 | |
6687 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6688 | ||
6689 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
6690 | Move code ifdef-ed HAVE_cloog... | |
6691 | * graphite.c: Include toplev.h. | |
6692 | ... here. | |
6693 | * Makefile.in (OBJS-common): Always build graphite.o. | |
6694 | (BACKEND): Remove @GRAPHITE@. | |
6695 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
6696 | (graphite.o): Depend on TOPLEV_H. | |
6697 | ||
6698 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6699 | ||
6700 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
6701 | Remove typo left from polylib to ppl conversion. | |
6702 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
6703 | ||
6704 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6705 | ||
6706 | * toplev.c (process_options): Move the graphite loop optimization | |
6707 | flags... | |
6708 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
6709 | When not configured with CLooG, print to dump_file that | |
6710 | Graphite transforms were not performed. | |
45489e99 | 6711 | * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): |
2abae5f1 | 6712 | New. |
45489e99 | 6713 | * gcc.dg/graphite/*.c: Updated all testcases to use |
2abae5f1 SP |
6714 | scan-graphite-dump-times. |
6715 | ||
6716 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6717 | ||
6718 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
6719 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
6720 | ||
6721 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
6722 | Jan Sjodin <jan.sjodin@amd.com> | |
6723 | ||
6724 | * configure: Regenerated. | |
6725 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
6726 | * config.in (HAVE_polylib): Removed. | |
6727 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
6728 | (PPLLIBS, PPLINC): Added. | |
6729 | * graphite.c: Replace unsigned with int wherever possible. | |
6730 | Don't access Cloog's data structures, but use accessor functions. | |
6731 | Clast's stmt->type is now implemented as a vtable: change the | |
6732 | switches of stmt->type into ifs. | |
6733 | (polylib/polylibgmp.h): Don't include. | |
6734 | (initialize_dependence_polyhedron, | |
6735 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
6736 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
6737 | dump_dependence_graph): Removed until this code is cleaned up | |
6738 | or ported to Cloog. | |
6739 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
6740 | (POLYLIBINC): Renamed PPLINC. | |
6741 | ||
6742 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
6743 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6744 | Jan Sjodin <jan.sjodin@amd.com> | |
6745 | ||
6746 | Finish the merge and tuplification of graphite. | |
6747 | ||
6748 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
6749 | Jan Sjodin <jan.sjodin@amd.com> | |
6750 | ||
6751 | Partial merge from mainline (138072:138275). | |
6752 | * graphite.c still has to be tuplified. | |
6753 | ||
6754 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
6755 | ||
6756 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
6757 | (create_num_from_index): New. | |
6758 | (get_num_from_index): Also pass in the graphite BB. | |
6759 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
6760 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
6761 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
6762 | (is_interchange_valid): Return false when failing. | |
6763 | * graphite.h (struct num_map): New. | |
6764 | (struct graphite_bb): New field num_map. | |
6765 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
6766 | ||
6767 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6768 | ||
6769 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
6770 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
6771 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
6772 | {<, <=, >, >=}. | |
6773 | ||
6774 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6775 | ||
6776 | * graphite.h (struct scop): Removed new_ivs field. | |
6777 | (SCOP_NEWIVS): Deleted. | |
6778 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
6779 | clast_to_gcc_expression, graphite_create_new_loop): | |
6780 | Removed use of new_ivs. | |
6781 | ||
6782 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6783 | ||
6784 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
6785 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
6786 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
6787 | (get_loop_mapping_for_num, | |
6788 | graphite_loops_mapping_add_child, | |
6789 | graphite_loops_mapping_add_child_num, | |
6790 | graphite_loops_mapping_insert_child, | |
6791 | graphite_loops_mapping_parent, | |
6792 | split_loop_mapped_depth_for_num, | |
6793 | loop_mapped_depth_split_loop): New. | |
6794 | (increment_loop_mapped_depths): Removed. | |
6795 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
6796 | (new_scop): Call create_loops_mapping. | |
6797 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
6798 | (translate_clast): Pass the old loop father in parameter, and pass | |
6799 | it to get_old_iv_from_ssa_name. | |
6800 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
6801 | can_generate_code, can_generate_for_scop): New. | |
6802 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
6803 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
6804 | ||
6805 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6806 | ||
6807 | Reverted all the changes related to the streamization and | |
6808 | loop fusion. | |
6809 | These changes are now tracked in the streamization branch. | |
6810 | ||
6811 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6812 | Jan Sjodin <jan.sjodin@amd.com> | |
6813 | ||
6814 | * graphite.c (gbb_compare): Correctly constify. | |
6815 | (gbb_can_be_ignored): Indent. | |
6816 | (graphite_trans_scop_swap_1and2): Add legality check. | |
6817 | Remove dead FIXMEs. | |
6818 | ||
6819 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6820 | ||
6821 | Remove fallouts from "Reverted the Condate changes". | |
6822 | * tree.h: Remove unused decl. | |
45489e99 | 6823 | * gcc.dg/tree-checker: Same. |
2abae5f1 SP |
6824 | * timevar.def: Remove counter. |
6825 | ||
6826 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
6827 | ||
6828 | * Merge from mainline (135673:138072). | |
6829 | ||
6830 | Reverted the MIRO changes (from 2008-04-05) that are now | |
6831 | tracked in the miro branch. | |
6832 | * tree-bounds.c: Removed. | |
6833 | * tree-bounds.h: Removed. | |
6834 | ||
6835 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
6836 | are now tracked in the condate branch. | |
6837 | * tree-check.c: Removed. | |
6838 | * tree-match.c: Removed. | |
6839 | * condate.y: Removed. | |
6840 | ||
6841 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6842 | ||
6843 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
6844 | and -floop-interchange. | |
6845 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
6846 | graphite loop optimization flags is turned on. | |
6847 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
6848 | flag_loop_strip_mine and flag_loop_interchange checks before | |
6849 | optimizations. | |
6850 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
6851 | -floop-strip-mine and -floop-interchange. | |
45489e99 | 6852 | * gcc.dg/graphite/block-0.c: Add -floop-block and remove |
2abae5f1 | 6853 | -fgraphite. |
45489e99 SP |
6854 | * gcc.dg/graphite/scop-16.c: Ditto. |
6855 | * gcc.dg/graphite/scop-17.c: Ditto. | |
6856 | * gcc.dg/graphite/scop-18.c: Ditto. | |
2abae5f1 SP |
6857 | |
6858 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
6859 | Sebastian Pop <sebastian.pop@amd.com> | |
6860 | ||
6861 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
6862 | (create_empty_loop_on_edge): More fixes. | |
6863 | * tree-phinodes.c (resize_phi_node): Extern. | |
6864 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
6865 | * cfghooks.c (update_dominator_information): New split from | |
6866 | split_edge. | |
6867 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
6868 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
6869 | successor of the function entry block. | |
6870 | ||
6871 | * graphite.c: Include pointer-set.h. | |
6872 | (debug_loop_mapping, increment_loop_mapped_depths, | |
6873 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
6874 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
6875 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
6876 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
6877 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
6878 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
6879 | get_old_iv_from_ssa_name): New. | |
6880 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
6881 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
6882 | (scop_record_loop): Record old ivs. | |
6883 | (create_var_name): Removed. | |
6884 | (initialize_cloog_names): Allocate double space in case strip mine | |
6885 | applies to all loops once. | |
6886 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
6887 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
6888 | translation. | |
6889 | (graphite_create_new_loop): Pass in ivstack. | |
6890 | (remove_all_edges): Pass in the construction_edge. | |
6891 | (graphite_remove_iv): Removed. | |
6892 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
6893 | remove_cond_exprs): Rewritten. | |
6894 | (move_phi_nodes): New. | |
6895 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
6896 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
6897 | (set_cloog_options, debug_clast_stmt): New. | |
6898 | (find_transform): Use set_cloog_options. | |
6899 | (outermost_loop_layer): Removed. | |
6900 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
6901 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
6902 | mark_old_loops, remove_dead_loops): New. | |
6903 | (gloog): Rewritten. | |
6904 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
6905 | (const_column_index, get_first_matching_sign_row_index, | |
6906 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
6907 | get_upper_bound): New. | |
6908 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
6909 | ||
6910 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
6911 | (struct name_tree): Add a loop field. | |
6912 | (struct scop): Add a graphite_loops_mapping field. | |
6913 | (SCOP_LOOPS_MAPPING): New. | |
6914 | (debug_clast_stmt): Declare. | |
6915 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
6916 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
6917 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
6918 | (create_empty_loop_on_edge): Updated. | |
6919 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
6920 | rename_variables_in_bb): Declare. | |
6921 | * tree-cfg.c (remove_bb): Extern. | |
6922 | ||
45489e99 | 6923 | * gcc.dg/graphite/block-0.c: New. |
2abae5f1 SP |
6924 | |
6925 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6926 | Sebastian Pop <sebastian.pop@amd.com> | |
6927 | ||
6928 | * graphite.c (strip_mine_profitable_p): New. | |
6929 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
6930 | ||
45489e99 SP |
6931 | * gcc.dg/graphite/scop-18.c: New. |
6932 | * gcc.dg/graphite/scop-17.c: Fixed. | |
6933 | * gcc.dg/graphite/scop-16.c: Fixed. | |
2abae5f1 SP |
6934 | |
6935 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
6936 | Jan Sjodin <jan.sjodin@amd.com> | |
6937 | Sebastian Pop <sebastian.pop@amd.com> | |
6938 | ||
6939 | * graphite.c (is_interchange_valid): New. | |
6940 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
6941 | of interchange. | |
6942 | ||
6943 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
6944 | outer_most_loop, gbb_outer_most_loop_index): New. | |
6945 | ||
6946 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
6947 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
45489e99 SP |
6948 | * gcc.dg/graphite/scop-16.c: New. |
6949 | * gcc.dg/graphite/scop-17.c: New. | |
2abae5f1 SP |
6950 | |
6951 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6952 | ||
6953 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
6954 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
6955 | ||
6956 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6957 | ||
6958 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
6959 | (scopdet_info): Add. | |
6960 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
6961 | (build_scops_1): Cleanup, bugfixes. | |
6962 | (build_scops): Cleanup. | |
6963 | ||
45489e99 SP |
6964 | * gcc.dg/graphite/scop-matmult.c: Remove duplicated code. |
6965 | * gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
2abae5f1 SP |
6966 | |
6967 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
6968 | ||
45489e99 | 6969 | * gfortran.dg/graphite/scop-1.f: Update to reduced test case. |
2abae5f1 | 6970 | |
45489e99 | 6971 | * gfortran.dg/graphite/graphite.exp: Use |
2abae5f1 SP |
6972 | DEFAULT_GRAPHITE_FLAGS. |
6973 | ||
45489e99 | 6974 | * gcc.dg/graphite/scop-15.c: Update to reduced test case. |
2abae5f1 SP |
6975 | |
6976 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
6977 | ||
6978 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
6979 | MULT_EXPR parameter is negative. | |
6980 | ||
45489e99 | 6981 | * gfortran.dg/graphite/scop-1.f: New. |
2abae5f1 | 6982 | |
45489e99 | 6983 | * gfortran.dg/graphite/graphite.exp: New. |
2abae5f1 | 6984 | |
45489e99 | 6985 | * gcc.dg/graphite/scop-15.c: New. |
2abae5f1 SP |
6986 | |
6987 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
6988 | ||
6989 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
6990 | ||
6991 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
6992 | ||
6993 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
6994 | graphite_swap_loops. | |
6995 | (graphite_trans_bb_move_loop): New. | |
6996 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
6997 | (graphite_trans_bb_block): New. | |
6998 | (graphite_trans_loop_block): New. | |
6999 | (graphite_trans_scop_swap_1and2): Rename from | |
7000 | graphite_trans_swap_1and2. | |
7001 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
7002 | (graphite_trans_scop_block): New. | |
7003 | (graphite_apply_transformations): Rename from | |
7004 | graphite_transformations. | |
7005 | ||
45489e99 | 7006 | * gcc.dg/graphite/scop-matmult.c: New. |
2abae5f1 SP |
7007 | |
7008 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7009 | ||
7010 | * graphite.c (gbb_compare): New. | |
7011 | (graphite_sort_gbbs): New. | |
7012 | (gbb_can_be_ignored): New. | |
7013 | (scop_remove_ignoreable_gbbs): New. | |
7014 | (graphite_transformations): Cleanup and add | |
7015 | scop_remove_ignoreable_gbbs. | |
7016 | * lambda.h (lambda_vector_compare): New. | |
7017 | ||
7018 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
7019 | ||
7020 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
7021 | (graphite_swap_loops): int -> unsigned | |
7022 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
7023 | (graphite_transformations): New. | |
7024 | (graphite_transform_loops): Move to graphite_transformations. | |
7025 | * graphite.h (gbb_nb_loops): Return unsigned. | |
7026 | ||
7027 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7028 | ||
7029 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
7030 | the domain matrix. This makes scop-0.c work again. | |
7031 | ||
7032 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
7033 | ||
7034 | * graphite.h: Adjust copyright to GPLv3. | |
7035 | * graphite.c: Likewise. | |
7036 | (stmt_simple_memref_for_scop_p): Split out from ... | |
7037 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
7038 | and simplify. | |
7039 | (get_bb_type): Optimize. | |
7040 | (is_pred): Remove. | |
7041 | (is_bb_addable): Fix memleak, replace is_pred call with | |
7042 | single_pred. | |
7043 | (build_scops): Use current_loops. | |
7044 | (param_index): Fix memleak. | |
7045 | ||
7046 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7047 | ||
7048 | * graphite.c: Fix formatting. | |
7049 | ||
7050 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7051 | ||
7052 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
7053 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
7054 | (create_var_name, save_var_name): Newly defined functions. | |
7055 | (initialize_cloog_names): Part of the code factored out to | |
7056 | save_var_name. | |
7057 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
7058 | in clast_reduction statement. | |
7059 | (graphite_create_new_loop): Now takes a new parameter | |
7060 | for outer_loop. | |
7061 | (translate_clast): Now also takes the context_loop and bb_exit | |
7062 | parameters. Rewritten the code so that it creates a gimple code | |
7063 | inside the given context. | |
7064 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
7065 | remove_cond_expr, disconnect_cond_expr, | |
7066 | disconnect_virtual_phi_nodes): Newly defined functions. | |
7067 | * graphite.h (struct scop): added old_ivs vector. | |
7068 | SCOP_OLDIVS: New macro. | |
7069 | ||
7070 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
7071 | ||
7072 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
7073 | ||
7074 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7075 | ||
7076 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
7077 | (create_empty_loop_on_edge): Defined. | |
7078 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
7079 | instead of void. | |
7080 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
7081 | (update_dominators_in_loop): Declared as extern | |
7082 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
7083 | ||
7084 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
7085 | ||
7086 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
7087 | in SCoP domain. | |
7088 | (initialize_cloog_names): Allow changing number of loops. | |
7089 | (build_cloog_prog): Simplify. | |
7090 | (find_transform): Enable cloog option --strides. | |
7091 | (graphite_swap_loops): New. | |
7092 | (graphite_strip_mine_loop): New. | |
7093 | (graphite_trans_swap_1and2): New. | |
7094 | (graphite_trans_strip): New. | |
7095 | (graphite_transform_loops): Add graphite_trans_strip. | |
7096 | * graphite.h (scop_max_loop_depth): New. | |
7097 | ||
7098 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7099 | ||
7100 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
7101 | line. (Fixes compile) | |
7102 | ||
7103 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7104 | ||
7105 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
7106 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
7107 | (build_bb_loops): New. | |
7108 | (graphite_transform_loops): Add build_bb_loops. | |
7109 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
7110 | numbers. | |
7111 | * graphite.h (graphite_bb): Add loops. | |
7112 | (gbb_nb_loops): New. | |
7113 | (gbb_loop_at_index): New. | |
7114 | (gbb_loop_index): New. | |
7115 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
7116 | using nb_params_in_scop. | |
7117 | ||
7118 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7119 | ||
7120 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
7121 | (build_scop_canonical_schedules): Build minimized schedule. | |
7122 | (schedule_to_scattering): Adapt to minimized schedule. | |
7123 | * graphite.h (graphite_bb): Add/Update descriptions. | |
7124 | ||
7125 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
7126 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7127 | ||
7128 | * graphite.c (print_graphite_bb): Add condition printing. | |
7129 | (dump_value): New. | |
7130 | (dump_gbb_conditions): New. | |
7131 | (build_scop_conditions_1): New. | |
7132 | (build_scop_conditions): New. | |
7133 | * graphite.h (graphite_bb): Add conditions. | |
7134 | ||
7135 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7136 | ||
7137 | * graphite.c (print_graphite_bb): | |
7138 | (free_graphite_bb): New. | |
7139 | (free_scop): Free bbs. | |
7140 | (get_bb_type): Free doms. | |
7141 | (build_scop_context): Free context matrix. | |
7142 | (build_loop_iteration_domains): Remove unused code. | |
7143 | (build_cloog_prog): Free scattering function and blocklist. | |
7144 | (find_transform): Free options. | |
7145 | ||
7146 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
7147 | ||
7148 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
7149 | Remove unnecessery cloog data structures. Make a copy of the domain | |
7150 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
7151 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
7152 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
7153 | used. | |
7154 | (build_scop_iteration_domain): Remove unnecessary cloog | |
7155 | data structures. Fix memory leaks. | |
7156 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
7157 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
7158 | ||
7159 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7160 | ||
7161 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
7162 | ||
7163 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7164 | ||
7165 | * graphite.c (end_scop): Style fix. | |
7166 | (schedule_to_scattering): Style and comment fix. | |
7167 | ||
7168 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7169 | * graphite.c (print_graphite_bb): Fix definiton of | |
7170 | schedule_to_scattering. | |
7171 | (initialize_cloog_names): Change nb_scattdims to max loop | |
7172 | depth in SCoP. | |
7173 | (schedule_to_scattering): Take parameter for number of scattering | |
7174 | dimensions. | |
7175 | (build_cloog_prog): Only build as much scattering dimensions as | |
7176 | necessary. | |
7177 | ||
7178 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7179 | ||
7180 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
7181 | in polyhedron/aermod.f90. | |
7182 | ||
7183 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7184 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7185 | Harsha Jagasia <harsha.jagasia@amd.com> | |
7186 | ||
7187 | * graphite.c (is_bb_addable): Fix segfault. | |
7188 | ||
7189 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7190 | ||
7191 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
7192 | with multiple exits and conditional handling in edge cases. | |
7193 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
7194 | ||
45489e99 | 7195 | * gcc.dg/graphite/scop-14.c: New. |
2abae5f1 SP |
7196 | |
7197 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7198 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
7199 | ||
7200 | * graphite.c (is_bb_addable): Add more comments and enhance | |
7201 | readablity of the source code. Fix memory leak. | |
7202 | (is_loop_exit): Fix memory leak. | |
7203 | ||
7204 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7205 | ||
7206 | * graphite.c (first_loop_in_scop): Deleted. | |
7207 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
7208 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
7209 | all loops in the first layer. | |
7210 | ||
7211 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7212 | ||
7213 | * graphite.c (scan_tree_for_params): Change the way params are | |
7214 | added to be indepenent of the number of loops. | |
7215 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
7216 | handling. | |
7217 | (build_cloog_prog): Revert to short matrix format. | |
7218 | ||
7219 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7220 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7221 | ||
7222 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
7223 | warning. | |
7224 | ||
7225 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7226 | ||
7227 | * graphite.c (nb_data_refs_in_scop): New. | |
7228 | (graphite_transform_loops): Print more stats: number of | |
7229 | loops, basic blocks and data references per scop. | |
7230 | ||
7231 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7232 | Jan Sjodin <jan.sjodin@amd.com> | |
7233 | ||
7234 | * graphite.c (loop_affine_expr, idx_record_params, | |
7235 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
7236 | instead of instantiate_parameters. | |
7237 | ||
7238 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7239 | ||
7240 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
7241 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
7242 | cleanup. | |
7243 | ||
7244 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7245 | ||
7246 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
7247 | are contained completely in the SCoP. | |
7248 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
7249 | and the domains are fixed. | |
7250 | (build_scop_canonical_schedules): Add support for bbs not contained | |
7251 | in any SCoP. | |
7252 | ||
7253 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7254 | ||
7255 | * graphite.h (scop_contains_loop): Update comments to match | |
7256 | the actual behavior. | |
7257 | (scop_contains_loop): New. | |
7258 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
7259 | ||
7260 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7261 | ||
7262 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
7263 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
7264 | as GBB_COND_HEADER. | |
7265 | ||
7266 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7267 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7268 | ||
7269 | * graphite.c (graphite_transform_loops): Early return when | |
7270 | there are no loops in the function. | |
7271 | ||
7272 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7273 | Jan Sjodin <jan.sjodin@amd.com> | |
7274 | ||
7275 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
7276 | offset of the last loop. | |
7277 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
7278 | ||
7279 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7280 | Jan Sjodin <jan.sjodin@amd.com> | |
7281 | ||
7282 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
7283 | invariant_in_scop_p): Removed. | |
7284 | (scan_tree_for_params): Can be used with no constraint | |
7285 | matrix for gathering parameters. | |
7286 | (idx_record_params): Don't use idx_record_param, instead use | |
7287 | scan_tree_for_params. | |
7288 | (find_scop_parameters): Same. | |
7289 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
7290 | Fix the size of loop domains. | |
7291 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
7292 | (find_transform): Enable build_cloog_prog. | |
7293 | ||
7294 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7295 | Jan Sjodin <jan.sjodin@amd.com> | |
7296 | ||
7297 | * graphite.c (schedule_to_scattering): Make scattering domains | |
7298 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
7299 | ||
7300 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7301 | Jan Sjodin <jan.sjodin@amd.com> | |
7302 | ||
7303 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
7304 | translation of the scheduling function to scattering. | |
7305 | (build_cloog_prog): Call schedule_to_scattering only once. | |
7306 | * graphite.h (scop_loop_index): Do not fail for loops not | |
7307 | in the scop: return -1. | |
7308 | ||
7309 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
7310 | ||
7311 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
7312 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
7313 | (setup_cloog_loop): Export GBB_DOMAIN. | |
7314 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
7315 | able to rebuild the original control flow. | |
7316 | * graphite.h (graphite_bb): Add domain field and access macro. | |
7317 | (GBB_DOMAIN): New. | |
7318 | ||
7319 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7320 | ||
7321 | * graphite.c (debug_gbb): New. | |
7322 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
7323 | (build_scop_bbs): Reimplemented. | |
7324 | (dfs_bb_in_scop_p): Removed. | |
7325 | (build_scop_loop_nests): Reorder loops inserted in | |
7326 | SCOP_LOOP_NEST: outer loops should come first. | |
7327 | (build_scop_canonical_schedules): Reinitialize at zero | |
7328 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
7329 | that have already been parsed. | |
7330 | ||
7331 | * graphite.h (debug_gbb): Declared. | |
7332 | ||
7333 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7334 | Jan Sjodin <jan.sjodin@amd.com> | |
7335 | ||
7336 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
7337 | (graphite_loop_to_gcc_loop): Removed. | |
7338 | (remove_all_edges): New. | |
7339 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
7340 | (gloog): Remove useless code. | |
7341 | ||
7342 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7343 | ||
7344 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
7345 | loops with one or multiple exits. | |
7346 | (is_loop_exit): New. | |
7347 | (is_pred): New. | |
7348 | (is_bb_addable): Rework condition handling, now support for case | |
7349 | case statements and loops with multiple exits. | |
7350 | ||
45489e99 SP |
7351 | * gcc.dg/graphite/scop-11.c: New. |
7352 | * gcc.dg/graphite/scop-12.c: New. | |
7353 | * gcc.dg/graphite/scop-13.c: New. | |
2abae5f1 SP |
7354 | |
7355 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7356 | ||
7357 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
7358 | we have too many colors. | |
7359 | ||
7360 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
7361 | ||
7362 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
7363 | * tree-pass.h (pass_loop_fusion): Declared. | |
7364 | * tree-loop-fusion.c: New. | |
7365 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
7366 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
7367 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
7368 | * common.opt (ftree-loop-fusion): Declared. | |
7369 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
7370 | ||
7371 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
7372 | ||
7373 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
7374 | ||
7375 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
7376 | ||
7377 | * Merge from mainline (130800:135673). | |
7378 | ||
7379 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7380 | ||
7381 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
7382 | Update dominators after splitting. | |
7383 | ||
7384 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7385 | ||
7386 | * graphite.c (is_bb_addable): Return the harmful statement. | |
7387 | Factor up some code. | |
7388 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
7389 | (build_scops_1): Call end_scop. | |
7390 | ||
7391 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7392 | ||
7393 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
7394 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
7395 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
7396 | build_scops_1): Removed. | |
7397 | (build_scops_2): Renamed build_scops_1. | |
7398 | ||
7399 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7400 | ||
7401 | * graphite.c: Fix formatting. | |
7402 | ||
7403 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7404 | ||
7405 | * graphite.c (get_bb_type): New. | |
7406 | (move_scops): New. | |
7407 | (build_scops_2): New. | |
7408 | (is_bb_addable): New. | |
7409 | (build_scops): Switch the scop detection. | |
7410 | (build_scop_bbs): Add entry bb to scop. | |
7411 | * graphite.h (struct scop): Update comment. | |
7412 | ||
7413 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7414 | ||
7415 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
7416 | more colors. | |
7417 | ||
7418 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7419 | ||
45489e99 SP |
7420 | * gcc.dg/graphite/scop-1.c: Update. |
7421 | * gcc.dg/graphite/scop-2.c: Update. | |
7422 | * gcc.dg/graphite/scop-4.c: Update. | |
7423 | * gcc.dg/graphite/scop-5.c: Add. | |
7424 | * gcc.dg/graphite/scop-6.c: Add. | |
2abae5f1 SP |
7425 | |
7426 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7427 | ||
45489e99 SP |
7428 | * gcc.dg/graphite/scop-0.c: Add. |
7429 | * gcc.dg/graphite/scop-7.c: Add. | |
7430 | * gcc.dg/graphite/scop-8.c: Add. | |
7431 | * gcc.dg/graphite/scop-9.c: Add. | |
7432 | * gcc.dg/graphite/scop-10.c: Add. | |
2abae5f1 SP |
7433 | |
7434 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7435 | ||
7436 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
7437 | Check affine expressions depending on the outermost loop | |
7438 | instead of a scop. | |
7439 | (stmt_simple_for_scop_p): Same. | |
7440 | (harmfule_stmt_in_scop): Same. | |
7441 | ||
7442 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
7443 | ||
7444 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
7445 | mark entry and exit, that are not part of the SCoP and update HTML | |
7446 | formatting. | |
7447 | ||
7448 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
7449 | ||
7450 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
7451 | harmful_stmt_in_bb. | |
7452 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
7453 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
7454 | (all_preds_visited_p, all_succs_visited_p, | |
7455 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
7456 | scop_end_loop): New. | |
7457 | (build_scops): Do not use dfs_enumerate_from. | |
7458 | ||
45489e99 | 7459 | * gcc.dg/graphite/scop-{1,2,4}.c: Updated. |
2abae5f1 SP |
7460 | |
7461 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7462 | ||
7463 | * graphite.c: Add comments to functions that are missing a | |
7464 | description. | |
7465 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
7466 | ||
7467 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7468 | ||
7469 | * graphite.c (nb_params_in_scop): Moved... | |
7470 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
7471 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
7472 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
7473 | (graphite_create_iv): Return the new name of the IV. | |
7474 | (find_transform): Set options->esp and options->cpp. | |
7475 | (gloog): Comment out the invalidation of the old loop code. | |
7476 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
7477 | nb_params_in_scop. | |
7478 | ||
7479 | * graphite.h (nb_params_in_scop): ... here. | |
7480 | (scop_nb_params): Removed. | |
7481 | (loop_domain_dim): Return something even when the loop was not | |
7482 | found in the hash table: avoid ICEing on all the graphite.exp | |
7483 | testcases. | |
7484 | ||
7485 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7486 | ||
7487 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
7488 | ||
7489 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
7490 | according to nesting level. | |
7491 | (find_scop_parameters): Call instantiate_parameters. | |
7492 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
7493 | Inner loop bound can depend on outer loop induction variable. | |
7494 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
7495 | instantiate_parameters with respect to outermost_loop_in_scop. | |
7496 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
7497 | graphite.h. | |
7498 | (create_empty_loop): Function loopify should be given edge | |
7499 | probability, instead of edge frequency. Dominance relation from | |
7500 | switch_bb to loop_header. | |
7501 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
7502 | (gloog): New functionality for removing old loop. | |
7503 | (test_dependence): Factored out from build_rdg_all_levels. | |
7504 | (build_rdg_all_levels): Dependence testing factored out to | |
7505 | test_dependence function. | |
7506 | ||
7507 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
7508 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
7509 | from graphite.c | |
7510 | ||
7511 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
7512 | ||
7513 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
7514 | nb_params_in_scop): Use name_tree map instead of just a tree | |
7515 | for keeping track of the variable name associated to that tree. | |
7516 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
7517 | clast_to_gcc_expression, graphite_create_iv, | |
7518 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
7519 | graphite_stmt_to_gcc_stmt): New. | |
7520 | (gloog): Call these. | |
7521 | * graphite.h (struct name_tree): New. | |
7522 | (struct scop): Use name_tree instead of tree for params. | |
7523 | Store a vector of name_tree for new_ivs. | |
7524 | (SCOP_NEWIVS): New. | |
7525 | (scop_nb_params): Use name_tree instead of tree. | |
7526 | ||
7527 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
7528 | Sebastian Pop <sebastian.pop@amd.com> | |
7529 | ||
7530 | * tree-bounds.c: New. | |
7531 | * tree-bounds.h: New. | |
7532 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
7533 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
7534 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
7535 | flag_mudflap. | |
7536 | * gcc.c: Same. | |
7537 | * toplev.c: Same. | |
7538 | * c-cppbuiltin.c: Same. | |
7539 | * c-pragma.c: Same. | |
7540 | * common.opt: Same. | |
7541 | * varasm.c: Same. | |
7542 | * tree-outof-ssa.c: Same. | |
7543 | * c-common.c: Same. | |
7544 | * Makefile.in: Same. | |
7545 | ||
7546 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
7547 | Sebastian Pop <sebastian.pop@amd.com> | |
7548 | ||
7549 | * tree-loop-distribution.c (remaining_stmts, | |
7550 | upstream_mem_writes): Removed static variables. | |
7551 | (copy_loop_before, create_bb_after_loop, | |
7552 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
7553 | rdg_build_components, rdg_build_partitions, | |
7554 | dump_rdg_partitions): Extern. | |
7555 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
7556 | return a bool. | |
7557 | (already_processed_vertex_p, predecessor_has_mem_write, | |
7558 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
7559 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
7560 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
7561 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
7562 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
7563 | (rdg_component): Moved... | |
7564 | (build_rdg_partition_for_component): Do not aggregate components when | |
7565 | flag_streamize_loops is set. | |
7566 | (gen_sequential_loops): New. | |
7567 | (ldist_gen): Call gen_sequential_loops. | |
7568 | ||
7569 | * tree-pass.h (pass_loop_streamization): Declared. | |
7570 | ||
7571 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
7572 | basic blocks when loops structures exist. | |
7573 | ||
7574 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
7575 | ||
7576 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
7577 | ||
7578 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
7579 | eliminate_local_variables_stmt, eliminate_local_variables, | |
7580 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
7581 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
7582 | of code delimited by two edges in the CFG. | |
7583 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
7584 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
7585 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
7586 | the case of parallelisation of reductions. | |
7587 | (create_loop_fn): Extern. | |
7588 | (create_omp_parallel_region): New. | |
7589 | ||
7590 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
7591 | dump_data_reference for printing dra and drb. | |
7592 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
7593 | RDGE_RELATION. | |
7594 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
7595 | we attach dependence relations on each edge of the RDG. | |
7596 | To be fixed later. | |
7597 | ||
7598 | * tree-data-ref.h (rdg_component): ...here. | |
7599 | (struct rdg_edge): New field ddr_p relation. | |
7600 | (RDGE_RELATION): New. | |
7601 | (create_bb_after_loop, copy_loop_before, | |
7602 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
7603 | rdg_build_partitions, dump_rdg_partitions, | |
7604 | free_rdg_components): Declared. | |
7605 | ||
7606 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
7607 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
7608 | ||
7609 | * tree-loop-streamization.c: New. | |
7610 | ||
7611 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
7612 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
7613 | ||
7614 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
7615 | ||
7616 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
7617 | ||
7618 | * passes.c: Schedule pass_loop_streamization. | |
7619 | ||
7620 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7621 | ||
7622 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
7623 | update comment. | |
7624 | ||
7625 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
7626 | ||
7627 | * graphite.c (dot_all_scops): Update formatting. | |
7628 | Bbs can now be part of more than one SCoP. | |
7629 | ||
7630 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
7631 | ||
7632 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
7633 | malloc problems. | |
7634 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
7635 | * graphite.h (loop_to_cloog_loop): New. | |
7636 | ||
7637 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7638 | ||
7639 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
7640 | loop_iteration_vector_dim): New. | |
7641 | (build_access_matrix_with_af, build_access_matrix, | |
7642 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
7643 | No longer assume that all iteration domains are of the same | |
7644 | dimensionality. | |
7645 | ||
7646 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
7647 | ||
7648 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
7649 | defined in a loop at depth 0 is invariant. | |
7650 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
7651 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
7652 | be called at loop depth 0. | |
7653 | ||
7654 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
7655 | a parameter. | |
7656 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
7657 | (down_open_scop): Removed. | |
7658 | (loop_in_scop_p): Redefined. | |
7659 | (scop_affine_expr): New argument: scop. | |
7660 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
7661 | a harmful statement ending a scop. | |
7662 | (basic_block_simple_for_scop_p): New argument: scop. | |
7663 | (get_loop_start): Removed. | |
7664 | (new_scop): Initialize SCOP_LOOPS. | |
7665 | (free_scop): Free SCOP_LOOPS. | |
7666 | (succs_at_same_depth, preds_at_same_depth): New. | |
7667 | (end_scop): Test the validity of a scop. | |
7668 | (add_dominators_to_open_scops): New. | |
7669 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
7670 | Add cases for opening and closing multiple scops. | |
7671 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
7672 | depth first order. | |
7673 | (build_graphite_bb): Pass scop directly. | |
7674 | (dfs_bb_in_scop_p): New. | |
7675 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
7676 | several times. | |
7677 | (nb_loops_around_gb): Use loop_in_scop_p. | |
7678 | (schedule_to_scattering): Disabled for the moment the code computing | |
7679 | the "textual order for outer loop". | |
7680 | ||
7681 | * graphite.h (struct scop): New field loops. | |
7682 | (SCOP_LOOPS): New. | |
7683 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
7684 | ||
45489e99 | 7685 | * gcc.dg/graphite/scop-{1,...,7}.c: Updated. |
2abae5f1 SP |
7686 | |
7687 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
7688 | Sebastian Pop <sebastian.pop@amd.com> | |
7689 | ||
7690 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
7691 | * common.opt (fstreamize-loops): New. | |
7692 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
7693 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
7694 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
7695 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
7696 | ||
7697 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7698 | ||
7699 | * tree-data-ref.c (build_empty_rdg): New. | |
7700 | (build_rdg): Use it. | |
7701 | * tree-data-ref.h (build_empty_rdg): Declared. | |
7702 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
7703 | (find_vertex_for_stmt): Removed. | |
7704 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
7705 | ||
7706 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
7707 | ||
7708 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
7709 | loop tree, also delete basic blocks. | |
7710 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
7711 | processed. | |
7712 | ||
7713 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7714 | ||
7715 | * graphite.c (build_scop_alpha): Removed. | |
7716 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
7717 | and dump_dependence_graph to avoid compiler warnings. | |
7718 | ||
7719 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7720 | ||
7721 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
7722 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
7723 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
7724 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
7725 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
7726 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
7727 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
7728 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
7729 | dump_dependence_graph): New. | |
7730 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
7731 | (GBB_ALPHA): New. | |
7732 | (struct scop): New field loop2cloog_loop. | |
7733 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
7734 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
7735 | ||
7736 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7737 | ||
7738 | * graphite.c (build_graphite_bb): Fix initialization | |
7739 | of the graphite basic block. | |
7740 | ||
7741 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
7742 | ||
7743 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
7744 | loop domain matrix. Pass in the number of loops contained in the | |
7745 | constraint matrix. | |
7746 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
7747 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
7748 | loops that are not surrounding the current loop are not represented | |
7749 | in the domain constraint matrix. | |
7750 | (build_scop_iteration_domain): Initial domain constraint matrix | |
7751 | contains only the eq/ineq, cst, and scop parameters columns. | |
7752 | ||
7753 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7754 | ||
7755 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
7756 | (print_graphite_bb): Print scattering. | |
7757 | ||
7758 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7759 | ||
7760 | * graphite.c (initialize_cloog_names): Initialize names of | |
7761 | scattering variables. | |
7762 | ||
7763 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7764 | ||
7765 | * graphite.c (dot_all_scops_1): Disable debug output while | |
7766 | printing graph. | |
7767 | ||
7768 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7769 | ||
7770 | * graphite.c (find_transform): Change cloog output language to C. | |
7771 | ||
7772 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
7773 | ||
7774 | * tree-loop-distribution.c (generate_memset_zero, | |
7775 | generate_builtin, generate_code_for_partition, | |
7776 | rdg_flag_all_uses): New. | |
7777 | (rdg_flag_uses): Gather in the same partition the statements defining | |
7778 | the VUSES of the current statement. | |
7779 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
7780 | Gather in the same partition not only the stores to the same memory | |
7781 | access, but also the reads. | |
7782 | (ldist_generate_loops): Renamed ldist_gen. | |
7783 | ||
7784 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
7785 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
7786 | ||
7787 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
7788 | next pointer, don't use the inner pointer. | |
7789 | ||
7790 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7791 | ||
7792 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
7793 | (find_transform): Call dot_all_1. | |
7794 | * graphite.h (dot_all_scops): Declared. | |
7795 | ||
7796 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
7797 | ||
7798 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
7799 | (create_bb_after_loop): New. | |
7800 | (generate_loops_for_partition): Use it. | |
45489e99 | 7801 | * gfortran.dg/ldist-1.f90: New. |
2abae5f1 SP |
7802 | |
7803 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
7804 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
7805 | ||
7806 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7807 | ||
7808 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
7809 | ||
7810 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7811 | ||
7812 | * graphite.c (initialize_cloog_names): Initialize cloog | |
7813 | iterator names. | |
7814 | ||
7815 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7816 | ||
7817 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
7818 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
7819 | ||
7820 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
7821 | ||
7822 | * Fix merge problems. | |
7823 | ||
7824 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
7825 | ||
7826 | * graphite.c (setup_cloog_loop): Fix typo. | |
7827 | ||
7828 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
7829 | ||
7830 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
7831 | * tree-loop-distribution.c: Reimplemented. | |
7832 | * tree-pass.h (pass_loop_distribution): New. | |
7833 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
7834 | print_loops. | |
7835 | * graphds.h (struct graph): New field indexes. | |
7836 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
7837 | ||
7838 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
7839 | needed. | |
7840 | * tree-vectorizer.c: Same. | |
7841 | (rename_variables_in_loop): Now extern. | |
7842 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
7843 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
7844 | calling redirect_edge_and_branch_force. | |
7845 | ||
7846 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
7847 | ||
7848 | * tree-data-ref.c: Don't include tree-chrec.h. | |
7849 | (debug_data_dependence_relations): New. | |
7850 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
7851 | in the relation. | |
7852 | (same_access_functions): Moved... | |
7853 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
7854 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
7855 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
7856 | struct rdg_vertex_info, ): New. | |
7857 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
7858 | at DDR_REVERSED_P. | |
7859 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
7860 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
7861 | (stmts_from_loop): Don't save LABEL_EXPR. | |
7862 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
7863 | hash_stmt_vertex_del): New. | |
7864 | (build_rdg): Initialize rdg->indexes. | |
7865 | (free_rdg, stores_from_loop, ref_base_address, | |
7866 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
7867 | have_similar_memory_accesses_1, ref_base_address_1, | |
7868 | remove_similar_memory_refs): New. | |
7869 | ||
7870 | * tree-data-ref.h: Include tree-chrec.h. | |
7871 | (debug_data_dependence_relations): Declared. | |
7872 | (same_access_functions): ...here. Now static inline. | |
7873 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
7874 | ddr_dependence_level): New. | |
7875 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
7876 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
7877 | RDG_MEM_READS_STMT): New. | |
7878 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
7879 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
7880 | rdg_vertex_for_stmt): Declared. | |
7881 | (struct rdg_edge): New field level. | |
7882 | (RDGE_LEVEL, free_rdg): New. | |
7883 | (stores_from_loop, remove_similar_memory_refs, | |
7884 | rdg_defs_used_in_other_loops_p, | |
7885 | have_similar_memory_accesses): Declared. | |
7886 | (rdg_has_similar_memory_accesses): New. | |
7887 | ||
7888 | * lambda.h (dependence_level): New. | |
7889 | * common.opt (ftree-loop-distribution): New. | |
7890 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
7891 | (print_loop_ir): Renamed print_loops. | |
7892 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
7893 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
7894 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
7895 | (tree-loop-distribution.o): Added. | |
7896 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
7897 | (mark_virtual_ops_in_bb): New. | |
7898 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
7899 | * passes.c: Scheduled pass_loop_distribution. | |
7900 | ||
7901 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7902 | ||
7903 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
7904 | for polylib format. | |
7905 | (nb_flat_iterator): New. | |
7906 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
7907 | (build_scop_iteration_domain): Correct the number of columns for | |
7908 | polylib format. | |
7909 | ||
7910 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
7911 | ||
7912 | * Merge from mainline (129697:130800). | |
7913 | ||
7914 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
7915 | ||
7916 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
7917 | dominated by SCoP's exit. | |
7918 | (graphite_transform_loops): Compute post dominators. | |
7919 | ||
7920 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
7921 | ||
7922 | * Merge from mainline (127169:129697). | |
7923 | ||
7924 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
7925 | ||
7926 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
7927 | parameter for the basic block that contains the expression. Use | |
7928 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
7929 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
7930 | the expression. | |
7931 | * graphite.h (gbb_loop): New. | |
7932 | (GBB_LOOP): Removed. | |
7933 | ||
7934 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
7935 | ||
7936 | * Makefile.in: Fix merge problem. | |
7937 | ||
7938 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
7939 | ||
7940 | * Merge from mainline (125309:127169). | |
7941 | * tree-loop-distribution.c: Disabled. | |
7942 | ||
7943 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
7944 | ||
7945 | * Merge from mainline (r123693:125309). | |
7946 | ||
7947 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
7948 | ||
7949 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
7950 | correct_modify_p | |
7951 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
7952 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
7953 | instead of MODIFY_EXPR. | |
7954 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
7955 | and push new edges. | |
7956 | ||
7957 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
7958 | ||
7959 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
7960 | VECs for edges and vertices. | |
7961 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
7962 | (RDGV_NB_PARTITIONS): New. | |
7963 | (PRDG_NBV, PRDG_NBE): Removed. | |
7964 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
7965 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
7966 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
7967 | ||
7968 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
7969 | Sebastian Pop <sebpop@gmail.com> | |
7970 | ||
7971 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
7972 | * tree-loop-distribution.c: New file. | |
7973 | * tree-pass.h (pass_loop_distribution): Declared. | |
7974 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
7975 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
7976 | and set reversed_p. | |
7977 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
7978 | (DDR_REVERSED_P): New. | |
7979 | * common.opt (-ftree-loop-distribution): New. | |
7980 | * tree-flow.h (distribute_loops): Declared. | |
7981 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
7982 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
7983 | ||
7984 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
7985 | ||
7986 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
7987 | (print_scop): Don't print when scop is NULL. | |
7988 | (build_scop_context, find_transform): Don't output to stderr. | |
7989 | ||
7990 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
7991 | ||
7992 | * tree-data-ref.c: Don't include graphite.h. | |
7993 | Comment out the code for printing data reference's scop. | |
7994 | (build_access_matrix_with_af): Moved... | |
7995 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
7996 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
7997 | (print_graphite_bb): Print basic block's schedule. | |
7998 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
7999 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
8000 | dominated and postdominated by the scop's entry and exit basic blocks. | |
8001 | (function_parameter_p): New. | |
8002 | (invariant_in_scop_p): Use function_parameter_p. | |
8003 | (new_scop, save_scop): New. | |
8004 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
8005 | save_scop. | |
8006 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
8007 | (loop_in_scop_p): New. | |
8008 | (scop_record_loop): Use loop_in_scop_p. | |
8009 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
8010 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
8011 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
8012 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
8013 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
8014 | (struct scop): Add a pointer to cloog's representation of a program. | |
8015 | ||
8016 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8017 | ||
8018 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
8019 | -ftree-checks-verbose. | |
8020 | * common.opt (flag_tree_check_verbose): Renamed | |
8021 | flag_tree_checks_verbose. | |
8022 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
8023 | ||
8024 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8025 | ||
8026 | * configure: Regenerated. | |
8027 | * config.in: Regenerated. | |
8028 | * tree-ssa-loop.c (graphite_transforms): Execute | |
8029 | graphite_transform_loops only when HAVE_cloog. | |
8030 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
8031 | * graphite.c: Include polylibgmp.h and cloog.h. | |
8032 | (graphite_transform_loops): Removed loops parameter. | |
8033 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
8034 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
8035 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
8036 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
8037 | (OBJS-common): Remove dependence on graphite.o. | |
8038 | (BACKEND): Depend on @GRAPHITE@. | |
8039 | ||
8040 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
8041 | ||
8042 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
45489e99 SP |
8043 | * gcc.dg/tree-checker/tree-checks-1.c: New. |
8044 | * gcc.dg/tree-checker/tree-checks-2.c: New. | |
8045 | * gcc.dg/tree-checker/tree-checks-3.c: New. | |
8046 | * gcc.dg/tree-checker/tree-checks-4.c: New. | |
8047 | * gcc.dg/tree-checker/tree-checks.exp: New. | |
8048 | * gcc.dg/tree-checker/condates.crp: New. | |
2abae5f1 SP |
8049 | * common.opt (ftree-checks-verbose): New. |
8050 | * tree-check.c (tree_check_warning): Move extra stderr output | |
8051 | under control of flag_tree_check_verbose. | |
8052 | ||
8053 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8054 | ||
8055 | * tree-match.c: Fix comments formatting. | |
8056 | * tree-match.h: Fix comments formatting. | |
8057 | * tree-check.c: Fix comments formatting. | |
8058 | (tree_check_init): Restructure. | |
8059 | ||
8060 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
8061 | ||
8062 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
8063 | ||
8064 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
8065 | ||
8066 | * Merge from mainline (r120733:123693). | |
8067 | ||
8068 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
8069 | ||
8070 | * condate.y: New file. | |
8071 | * tree-match.h (struct patt_info_s): New field sign. | |
8072 | (struct condate_s): New field msg. | |
8073 | (normalize_condate, name_condate, add_condate): New. | |
8074 | (conds[], condate_parse): Made extern. | |
8075 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
8076 | warning reformatted. | |
8077 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
8078 | (tree_scan): New. | |
8079 | (tree_check): Process trivial condates. | |
8080 | (read_delimited_string): Removed. | |
8081 | (print_cond): Print name and msg. | |
8082 | (conds[]): Made extern. | |
8083 | (parse_tree_check_file_once): Rewritten to use the parser in | |
8084 | condate.y. | |
8085 | Processing of option --tree_check_string moved to tree_scan(). | |
8086 | * Makefile.in: Added condate.y | |
8087 | ||
8088 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8089 | ||
8090 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
8091 | Use VECs instead of varrays. | |
8092 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
8093 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
8094 | * pretty-print.c: Include tree.h and vec.h. | |
8095 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
8096 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
8097 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
8098 | pp_free_list): Use VECs instead of varrays. | |
8099 | * pretty-print.h: Do not include varray.h. | |
8100 | (struct tree_chunk_s): Declaration moved before its use. | |
8101 | (output_buffer): Rename varray field to chunks. | |
8102 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
8103 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
8104 | save_global_holes): Use VECs instead of varrays. | |
8105 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
8106 | * tree-check.c (scan_cfg_stmts, push_node, | |
8107 | print_matching_stmt): Removed. | |
8108 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
8109 | execute_tree_check): Use VECs instead of varrays. | |
8110 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
8111 | is not available. | |
8112 | ||
8113 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8114 | ||
8115 | * Merge from mainline (r115016:120733). | |
8116 | ||
8117 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8118 | ||
8119 | * Merge from mainline (r117632:117661). | |
8120 | ||
8121 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8122 | ||
8123 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
8124 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
8125 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
8126 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
8127 | get_loop_exit_condition, analyze_evolution_in_loop, | |
8128 | analyze_initial_condition, analyze_scalar_evolution, | |
8129 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
8130 | * tree-chrec.c (chrec_apply): Use debug_p. | |
8131 | * tree-data-ref.c: Include graphite.h. | |
8132 | (dump_data_reference): Print also the access matrix. | |
8133 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
8134 | analyze_offset_expr, address_analysis, object_analysis, | |
8135 | create_data_ref, finalize_ddr_dependent, | |
8136 | non_affine_dependence_relation, analyze_ziv_subscript, | |
8137 | analyze_siv_subscript_cst_affine, | |
8138 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
8139 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
8140 | analyze_miv_subscript, analyze_overlapping_iterations, | |
8141 | build_classic_dist_vector, subscript_dependence_tester, | |
8142 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
8143 | (build_access_matrix_with_af): No longer static. | |
8144 | * tree-data-ref.h (scop_p): ... declaration here. | |
8145 | (data_reference.scop): New field. | |
8146 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
8147 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
8148 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
8149 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
8150 | (test_for_scop_bound): Use debug_p. | |
8151 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
8152 | scop_nb_params. | |
8153 | (scop_loop_index): Moved... | |
8154 | (scop_record_loop): New. | |
8155 | (build_scop_loop_nests): Use scop_record_loop. | |
8156 | (build_scop_domain): Use scop_dim_domain. | |
8157 | (build_access_matrix): Implemented. | |
8158 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
8159 | (build_graphite_bb): Initialize GBB_SCOP. | |
8160 | * graphite.h (scop_p): Moved... | |
8161 | (graphite_bb.scop): New field. | |
8162 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
8163 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
8164 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
8165 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
8166 | scop_loop_index): New. | |
8167 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
8168 | ||
8169 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
8170 | ||
8171 | * Merge from mainline (r117661:120450). | |
8172 | ||
8173 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8174 | ||
8175 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
8176 | at the first declaration outside the varying loop, instantiate as | |
8177 | far as possible. | |
8178 | * tree-chrec.c (for_each_scev_op): New. | |
8179 | * tree-chrec.h (for_each_scev_op): Declared. | |
8180 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
8181 | * tree-data-ref.c (get_references_in_stmt, | |
8182 | find_data_references_in_stmt): New, from trunk. | |
8183 | (find_data_references_in_loop): Use get_references_in_stmt | |
8184 | and find_data_references_in_loop, modified as in trunk. | |
8185 | (build_access_matrix_with_af): New. | |
8186 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
8187 | (data_ref_loc): New, as in trunk. | |
8188 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
8189 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
8190 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
8191 | idx_record_param, idx_record_params, build_access_matrix, | |
8192 | build_scop_data_accesses, build_scop_canonical_schedules, | |
8193 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
8194 | build_scop_params): New. | |
8195 | * graphite.h (graphite_bb): New. | |
8196 | (scop): Add fields static_schedule, params, loop_nest, | |
8197 | iteration_domain. | |
8198 | * lambda.h: Declare vecs of lambda_matrix. | |
8199 | * tree-flow.h (print_loop_ir_bb): Declared. | |
8200 | * tree-cfg.c (print_loop_ir_bb): New. | |
8201 | (print_loop): Use print_loop_ir_bb. | |
8202 | ||
8203 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
8204 | ||
8205 | * Merge from mainline (r115016:117632). | |
8206 | ||
8207 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
8208 | ||
8209 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
8210 | break due to a warning. | |
8211 | ||
8212 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
8213 | ||
8214 | * graphite.c (print_scops, debug_scops): New. | |
8215 | (graphite_transform): Renamed graphite_find_transform. | |
8216 | * graphite.h (debug_scops): Declared. | |
8217 | ||
8218 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
8219 | ||
8220 | * tree-match.c: Reformat following the GNU style. | |
8221 | * tree-match.h: Reformat following the GNU style. | |
8222 | * tree-pattern.h: Removed empty file. | |
8223 | * Makefile.in: Remove references to tree-pattern.h. | |
8224 | * tree-check.c: Reformat following the GNU style. | |
8225 | (execute_tree_check): Move gate condition code to... | |
8226 | (gate_tree_check): ...here. New function. | |
8227 | (pass_check): Use the gate function. | |
8228 | ||
8229 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
8230 | ||
8231 | * tree-pattern.h: New. Tree pattern matching and checking using | |
8232 | concrete syntax. | |
8233 | * tree-check.c: New. Tree/CFG checking pass. | |
8234 | * tree-match.c: New. Library for tree pattern matching. | |
8235 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
8236 | * toplev.c, flags.h: Add globals for tree-check pass. | |
8237 | * Makefile.in: Integrate the files in tree-check pass. | |
8238 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
8239 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
8240 | Introduce a "lazy" pretty-print mode. | |
8241 | * tree.c, tree.h: Add tree_name. | |
8242 | ||
8243 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
8244 | ||
8245 | * doc/invoke.texi (-fgraphite): Correct typo. | |
8246 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
8247 | use of print_loop_ir. | |
45489e99 SP |
8248 | * gcc.dg/graphite/scop-1.c: New. |
8249 | * gcc.dg/graphite/scop-2.c: New. | |
8250 | * gcc.dg/graphite/graphite.exp: New. | |
2abae5f1 SP |
8251 | * graphite.c: Include domwalk.h. |
8252 | (print_scop): Print only the entry and exit blocks. | |
8253 | (debug_scop): No longer static. | |
8254 | (affine_expr): Fix formating. Return also true when the expression is | |
8255 | constant. | |
8256 | (stmt_simple_for_scop_p): Fix formating. | |
8257 | (build_scops): Use domwalk. | |
8258 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
8259 | (graphite_transform_loops): Avoid printing on stderr. | |
8260 | * graphite.h (debug_scop): Declared. | |
8261 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
8262 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
8263 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
8264 | declarations for static functions. | |
8265 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
8266 | controlling output verbosity. | |
8267 | ||
8268 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
8269 | Plesco Alexandru <shurikx@gmail.com> | |
8270 | ||
8271 | * doc/invoke.texi (-fgraphite): Document. | |
8272 | * tree-pass.h (pass_graphite_transforms): Declared. | |
8273 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
8274 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
8275 | (pass_graphite_transforms): Defined. | |
8276 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
8277 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
8278 | * graphite.c, graphite.h: New. | |
8279 | * common.opt (fgraphite): Declared. | |
8280 | * tree-flow.h (graphite_transform_loops): Declared. | |
8281 | * Makefile.in (OBJS-common): Add graphite.o. | |
8282 | (graphite.o): New rule. | |
8283 | * passes.c (pass_graphite_transforms): Scheduled. | |
8284 |