]>
Commit | Line | Data |
---|---|---|
b4c8119f SP |
1 | 2010-08-17 Sebastian Pop <sebastian.pop@amd.com> |
2 | ||
3 | PR middle-end/45229 | |
4 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not | |
5 | handle GIMPLE_CALLs with no LHS. | |
6 | ||
91989b60 RB |
7 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
8 | Sebastian Pop <sebastian.pop@amd.com> | |
9 | ||
10 | * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write. | |
11 | Call remove-build-file to clean up the generated *.graphite files. | |
12 | ||
13 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> | |
d3feeef9 RB |
14 | |
15 | * doc/invoke.texi (debugging options): Update documentation. | |
16 | (-floop-interchange): Same. | |
17 | (-flopp-strip-mine): Same. | |
18 | (-floop-block): Same. | |
19 | (-fgraphite-read): Add documentation. | |
20 | (-fgraphite-write): Same. | |
21 | ||
91989b60 | 22 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
a73c5323 RB |
23 | |
24 | * toplev.c (process_options): Disable graphite loop optimization | |
25 | options when -fgraphite-read flag is used. | |
26 | ||
f06ecc4b RB |
27 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
28 | ||
29 | * graphite-poly.c (init_graphite_out_file): New. | |
30 | (init_graphite_in_file): New. | |
31 | (apply_poly_transforms): Updated to enable reading and writing of | |
32 | multiple scop files. | |
33 | * toplev.c (init_asm_output): Remove graphite in/out file initialization. | |
34 | ||
d9ae7906 SP |
35 | 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de> |
36 | ||
37 | * graphite-scop-detection.c (graphite_can_represent_scev): Remove | |
38 | redundant checks. | |
39 | ||
02315365 SP |
40 | 2010-08-12 Sebastian Pop <sebastian.pop@amd.com> |
41 | ||
42 | * graphite-clast-to-gimple.c (precision_for_value): Adjust | |
43 | computation of precision by 1. | |
44 | ||
721c8b1e RB |
45 | 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
46 | ||
47 | * graphite-cloog-util.c (openscop_read_cloog_matrix): New. | |
48 | (openscop_read_polyhedron_matrix): New. | |
49 | * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared. | |
50 | (openscop_read_N_int): Same. | |
51 | * graphite-poly.c (openscop_read_N_int): New. | |
52 | (openscop_read_one_int): New. | |
53 | (openscop_read_N_string): New. | |
54 | (openscop_read_one_string): New. | |
55 | (openscop_read_powerset_matrix): New. | |
56 | (graphite_read_transforms): Remove. | |
57 | (graphite_read_scatt): New. | |
58 | (graphite_read_scop_file): New. | |
59 | (apply_poly_transforms): Updated to call graphite_read_scop_file. | |
60 | ||
fd8bb591 AS |
61 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
62 | ||
63 | * graphite-poly.c: Change include order. | |
64 | ||
562c1b02 AS |
65 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
66 | ||
67 | * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. | |
68 | (cloog_matrix_nrows): New. | |
69 | ||
7241f8c5 RB |
70 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
71 | ||
72 | * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces | |
73 | from matrix lines. | |
74 | * graphite-poly.c (openscop_print_scattering_function_1): Same. | |
75 | (print_scattering_function_1): Same. | |
76 | (openscop_print_pbb_domain): Same. | |
77 | (openscop_print_scop_context): Same. | |
78 | (print_scop_context): Same. | |
79 | ||
d72f5037 RB |
80 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
81 | ||
82 | * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation. | |
83 | (openscop_print_pdr_polyhedron): Print pph. | |
84 | ||
9e054f1b SP |
85 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
86 | ||
87 | * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files. | |
88 | * gfortran.dg/graphite/graphite.exp: Same. | |
89 | * gcc.dg/graphite/vect-pr43423.c: New. | |
90 | ||
c6060639 SP |
91 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
92 | ||
93 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in | |
94 | priority signed types. | |
95 | ||
2c2aceeb SP |
96 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
97 | ||
98 | * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call | |
99 | to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type. | |
100 | ||
ae403f5a RB |
101 | 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
102 | ||
103 | * graphite-cloog-util.c (openscop_print_cloog_matrix): New. | |
104 | (openscop_print_polyhedron_matrix): New. | |
105 | * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared. | |
106 | * graphite-poly.c (openscop_print_pdr_polyhedron): Same. | |
107 | (openscop_print_pdr_powerset): New. | |
108 | (openscop_print_powerset_matrix): New. | |
109 | (openscop_print_scattering_function_1): New. | |
110 | (print_scattering_function): Add support for scattering names and | |
111 | OpenScop format. | |
112 | (graphite_write_transforms): Remove. | |
113 | (apply_poly_transforms): Updated to call print_scop. | |
114 | (print_pdr_access_layout): Updated to support OpenScop format. | |
115 | (print_pdr): Same. | |
116 | (openscop_print_pbb_domain): New. | |
117 | (print_pbb_body): Added a parameter to allow indicating that pbb_body is | |
118 | not provided. | |
119 | (print_pbb): Updated to call the new print_pbb_body. | |
120 | (openscop_print_scop_context): New. | |
121 | (print_scop_header): New. | |
122 | (print_scop): Updated to call print_scop_header. | |
123 | * graphite-poly.h: Document OpenScop format. | |
124 | ||
9707eeb0 SP |
125 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
126 | ||
127 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back | |
128 | the case removed in the previous patch, when the only phi argument | |
129 | is defined in the same loop as the phi node itself. Handle it | |
130 | separately from the invariant case by both propagating it outside | |
131 | the region and replacing the phi node with an assign. | |
132 | ||
974335d6 SP |
133 | 2010-07-28 Sebastian Pop <sebastian.pop@amd.com> |
134 | ||
135 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only | |
136 | constant phi nodes with one argument are is_gimple_min_invariant | |
137 | and SSA_NAME_IS_DEFAULT_DEF. | |
138 | ||
139 | * gfortran.dg/graphite/id-22.f: New. | |
140 | ||
1461761b AS |
141 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
142 | ||
85437633 AS |
143 | * graphite.c (graphite_initialize): Do not initialize |
144 | CLooG and initialize the Parma Polyhedra Library | |
145 | manually when using CLOOG_ORG. | |
146 | (graphite_finalize): Do not finalize CLooG and finalize | |
147 | the Parma Polyhedra Library manually when using CLOOG_ORG. | |
148 | * graphite-cloog-compat.h (cloog_initialize): Hide function | |
149 | when using CLOOG_ORG. | |
150 | (cloog_finalize): Same. | |
151 | ||
aa91c4cc | 152 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
85437633 | 153 | |
1461761b AS |
154 | * graphite-clast-to-gimple.c (free_scattering): Change |
155 | CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering | |
156 | (CLOOG_ORG). | |
157 | (build_cloog_prog): Same. | |
158 | * graphite-cloog-compat.h (cloog_domain): Removed. | |
159 | (cloog_scattering): New. | |
160 | (cloog_set_domain): Removed. | |
161 | (cloog_set_scattering): New. | |
162 | (cloog_next_domain): Removed. | |
163 | (cloog_next_scattering): New. | |
164 | (cloog_set_next_domain): Removed. | |
165 | (cloog_set_next_scattering): New. | |
166 | (CloogScatteringList): New. | |
167 | (CloogScattering): New. | |
168 | (cloog_scattering_free): New. | |
169 | (new_Cloog_Scattering_from_ppl_Polyhedron): New. | |
170 | * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron): | |
171 | New. | |
172 | ||
60f87855 AS |
173 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
174 | ||
175 | * graphite-clast-to-gimple.c (build_cloog_prog): Extend with | |
176 | CloogState. | |
177 | (set_cloog_options): Same. | |
178 | (print_clast_stmt): Same. | |
179 | (scop_to_clast): Same. | |
180 | (print_generated_program): Same. | |
181 | (gloog): Same. | |
182 | * graphite-clast-to-gimple.h: Include graphite-cloog-util.h. | |
183 | (scop_to_clast): Extend with CloogState. | |
184 | * graphite-cloog-util.c: Include graphite-cloog-compat.h | |
185 | (new_Cloog_Domain_from_ppl_Polyhedron): | |
186 | Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG). | |
187 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState. | |
188 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
189 | * graphite-cloog-util.h (build_cloog_prog): Same. | |
190 | * graphite-cloog-copat.h (build_cloog_prog): New. | |
191 | (CloogState): New. | |
192 | (cloog_state_malloc): New. | |
193 | (cloog_state_free): New. | |
194 | (cloog_loop_malloc): New. | |
195 | (cloog_options_malloc): New. | |
196 | (cloog_statement_alloc): New. | |
197 | (cloog_domain_from_cloog_matrix): New. | |
198 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
199 | (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
200 | ||
4431102b AS |
201 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
202 | ||
203 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter | |
204 | type of NAME now depends on used CLooG version. | |
205 | (clast_to_gcc_expression): Replace expr_* with clast_expr_*. | |
206 | (gcc_type_for_clast_expr): Same. | |
207 | (print_clast_stmt): Replace pprint with clast_pprint. | |
208 | * graphite-cloog-compat.h: Provide compatibility macros for | |
209 | CLooG Legacy. | |
210 | (clast_name_p): New. | |
211 | (clast_expr_term): New. | |
212 | (clast_expr_red): New. | |
213 | (clast_expr_bin): New. | |
214 | (clast_pprint): New. | |
215 | ||
ac3b070a AS |
216 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
217 | ||
218 | * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options | |
219 | compatible to newer CLooG releases (CLOOG_ORG). | |
220 | (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG). | |
221 | (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG). | |
222 | * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy. | |
223 | (build_cloog_prog) : New. | |
224 | (cloog_program_extract_scalars): New. | |
225 | (cloog_program_scatter): New. | |
226 | ||
2bbb190a AS |
227 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
228 | ||
229 | * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h | |
230 | conditionally (CLOOG_ORG). | |
231 | * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h. | |
232 | (cloog_statement_usr): New. | |
233 | (cloog_domain): Same. | |
234 | (cloog_set_domain): Same. | |
235 | (cloog_next_domain): Same. | |
236 | (cloog_set_next_domain): Same. | |
237 | (cloog_program_nb_scattdims): Same. | |
238 | (cloog_program_set_nb_scattdims): Same. | |
239 | (cloog_program_names): Same. | |
240 | (cloog_program_set_names): Same. | |
241 | (cloog_program_set_context): Same. | |
242 | (cloog_program_set_loop): Same. | |
243 | (cloog_program_blocklist): Same. | |
244 | (cloog_program_set_blocklist): Same. | |
245 | (cloog_program_scaldims): Same. | |
246 | (cloog_program_set_scaldims): Same. | |
247 | (cloog_names_nb_parameters): Same. | |
248 | (cloog_names_set_nb_parameters): Same. | |
249 | (cloog_names_parameters): Same. | |
250 | (cloog_names_set_parameters): Same. | |
251 | (cloog_names_set_nb_iterators): Same. | |
252 | (cloog_names_set_iterators): Same. | |
253 | (cloog_names_set_nb_scattering): Same. | |
254 | (cloog_names_set_scattering): Same. | |
255 | (cloog_statement_set_usr): Same. | |
256 | (cloog_loop_set_next): Same. | |
257 | (cloog_loop_set_domain): Same. | |
258 | (cloog_loop_set_block): Same. | |
259 | (cloog_block_list_next): Same. | |
260 | (cloog_block_list_set_next): | |
261 | (cloog_block_list_set_block): Same. | |
262 | ||
5d737345 SP |
263 | 2010-07-27 Sebastian Pop <sebastian.pop@amd.com> |
264 | ||
265 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns | |
266 | a bool. | |
267 | (rewrite_commutative_reductions_out_of_ssa_close_phi): Same. | |
268 | (rewrite_commutative_reductions_out_of_ssa_loop): Same. | |
269 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab | |
270 | when something has been changed. | |
271 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
272 | ||
273 | * gcc.dg/graphite/id-26.c: New. | |
274 | ||
ab756588 SP |
275 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
276 | ||
277 | * graphite-sese-to-poly.c (propagate_expr_outside_region): Also | |
278 | handle the case when def is in the sese region. | |
279 | (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region | |
280 | for invariant expressions. | |
281 | (rewrite_cross_bb_phi_deps): Removed. | |
282 | (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes. | |
283 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call | |
284 | rewrite_cross_bb_phi_deps. | |
285 | ||
4ee23fa8 SP |
286 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
287 | ||
288 | * graphite-sese-to-poly.c | |
289 | (rewrite_commutative_reductions_out_of_ssa_loop): Call | |
290 | scev_analyzable_p only on is_gimple_reg | |
291 | ||
292 | * gcc.dg/graphite/id-25.c: New. | |
293 | ||
1c2a7491 SP |
294 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
295 | ||
296 | * graphite-sese-to-poly.c (propagate_expr_outside_region): New. | |
297 | (rewrite_close_phi_out_of_ssa): Propagate constant values or | |
298 | parametric expressions outside the scop region. | |
299 | (rewrite_cross_bb_scalar_deps): Same. | |
300 | * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees. | |
301 | ||
302 | * gcc.dg/graphite/run-id-5.c: New. | |
303 | * gcc.dg/graphite/run-id-6.c: New. | |
304 | * gfortran.dg/graphite/id-21.f: New. | |
305 | ||
320532a8 SP |
306 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
307 | ||
308 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use | |
309 | SSA_NAME_DEF_STMT only on SSA_NAMEs. | |
310 | ||
311 | * gcc.dg/graphite/id-24.c: New. | |
312 | ||
2847388e SP |
313 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
314 | ||
315 | * tree-scalar-evolution.c (instantiate_scev_name): Do not | |
316 | instantiate default definitions. | |
317 | ||
ed941c41 VK |
318 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
319 | ||
320 | * graphite-scop-detection.c (is_valid_stmt_p): New. | |
321 | (is_valid_bb_p): New. | |
322 | ||
f4ce375d VK |
323 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
324 | Sebastian Pop <sebastian.pop@amd.com> | |
325 | ||
326 | * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p. | |
327 | (loop_exits_from_bb_p): New. | |
328 | * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p. | |
329 | (loop_exits_from_bb_p): Declared. | |
330 | * graphite-scop-detection.c (scopdet_basic_block_info): Call | |
331 | loop_exits_to_bb_p. | |
332 | ||
15d17127 VK |
333 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
334 | ||
335 | * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and | |
336 | tree-data-ref.h. | |
337 | (dot_regions_1): New. | |
338 | (dot_regions): New. | |
339 | * refined-regions.h (dot_regions): Declared. | |
340 | * Makefile.in (refined-regions.o): Update dependences. | |
341 | ||
a7d00e71 SP |
342 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
343 | ||
344 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an | |
345 | extra parameter for the region. Call scev_analyzable_p. | |
346 | (rewrite_reductions_out_of_ssa): Update call to | |
347 | rewrite_close_phi_out_of_ssa. | |
348 | (rewrite_cross_bb_phi_deps): Same. | |
349 | (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra | |
350 | parameter for the region. Call scev_analyzable_p. | |
351 | (rewrite_commutative_reductions_out_of_ssa): Update call to | |
352 | rewrite_commutative_reductions_out_of_ssa_loop. | |
353 | ||
5df5f257 SP |
354 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
355 | ||
356 | * gcc.dg/tree-ssa/pr20742.c: New. | |
357 | ||
6f23dd91 SP |
358 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
359 | ||
360 | * sese.c (rename_uses): Call unshare_expr before force_gimple_operand. | |
361 | ||
362 | * gcc.dg/graphite/id-23.c: New. | |
363 | ||
87b28340 SP |
364 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
365 | ||
366 | * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of | |
367 | SSA scalar phi nodes that can be scev_analyzable_p. | |
368 | ||
369 | * gfortran.dg/graphite/id-20.f: Adjust testcase. | |
370 | ||
3dd2dd57 SP |
371 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
372 | ||
373 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly | |
374 | handle SSA_NAME_IS_DEFAULT_DEF. | |
375 | ||
a0dd1502 SP |
376 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
377 | ||
378 | * sese.c (rename_uses): Handl unconditionally gimple_debug statements. | |
379 | ||
380 | * gcc.dg/graphite/pr42729.c: New. | |
381 | ||
8af6d9cd SP |
382 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
383 | ||
384 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special | |
385 | case non close-phi nodes with one argument. | |
386 | ||
f36fc876 SP |
387 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
388 | ||
389 | * sese.h (scev_analyzable_p): Scevs could be expressions without | |
390 | chrecs and still be scev_analyzable_p. | |
391 | ||
57fe3c87 SP |
392 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
393 | ||
394 | * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100. | |
395 | ||
a0d1afb3 SP |
396 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
397 | ||
398 | * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv. | |
399 | * cfgloop.h (struct loop): Remove single_iv field. | |
400 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed. | |
401 | (scop_canonicalize_loops): Removed. | |
402 | (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate | |
403 | over all the loop phi nodes in loop->header. | |
404 | (build_poly_scop): Remove use of scop_canonicalize_loops. | |
405 | ||
dba9acfa SP |
406 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
407 | ||
408 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also | |
409 | handle GIMPLE_CALL. | |
410 | ||
8b059232 SP |
411 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
412 | ||
413 | * tree-chrec.c (chrec_apply): Should only apply to the specified | |
414 | variable. Also handle multivariate chains of recurrences that | |
415 | satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT. | |
416 | ||
2e286fd2 SP |
417 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
418 | ||
419 | * graphite-clast-to-gimple.c (debug_clast_name_index): Removed. | |
420 | (debug_clast_name_indexes_1): Removed. | |
421 | (debug_clast_name_indexes): Removed. | |
422 | (pbb_to_depth_to_oldiv): Removed. | |
423 | (build_iv_mapping): Replace the use of rename_map with iv_map. | |
424 | (translate_clast_user): Remove uses of rename_map. Allocate and | |
425 | free iv_map. | |
426 | (translate_clast_for_loop): Remove uses of rename_map. | |
427 | (translate_clast_for): Same. | |
428 | (translate_clast_guard): Same. | |
429 | (translate_clast): Same. | |
430 | (gloog): Same. | |
431 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed. | |
432 | * graphite-sese-to-poly.c (scev_analyzable_p): Moved... | |
433 | * sese.c (set_rename): Now static. | |
434 | (rename_variables_in_stmt): Removed. | |
435 | (rename_uses): New. | |
436 | (is_parameter): Removed. | |
437 | (is_iv): Removed. | |
438 | (expand_scalar_variables_call): Removed. | |
439 | (expand_scalar_variables_ssa_name): Removed. | |
440 | (expand_scalar_variables_expr): Removed. | |
441 | (expand_scalar_variables_stmt): Removed. | |
442 | (expand_scalar_variables): Removed. | |
443 | (rename_variables): Removed. | |
444 | (remove_condition): Removed. | |
445 | (get_true_edge_from_guard_bb): Removed. | |
446 | (get_false_edge_from_guard_bb): Removed. | |
447 | (struct igp): Removed. | |
448 | (default_before_guard): Removed. | |
449 | (convert_for_phi_arg): Removed. | |
450 | (add_guard_exit_phis): Removed. | |
451 | (insert_guard_phis): Removed. | |
452 | (graphite_copy_stmts_from_block): Now also uses iv_map and a | |
453 | region. Do not copy conditions. Do not copy induction variables. | |
454 | Call rename_uses. | |
455 | (copy_bb_and_scalar_dependences): Allocate a local rename_map for | |
456 | the translated statement. Use the iv_map for the induction | |
457 | variable renaming. | |
458 | * sese.h (copy_bb_and_scalar_dependences): Update declaration. | |
459 | (set_rename): Removed declaration. | |
460 | (scev_analyzable_p): ...here. | |
461 | * tree-chrec.c (chrec_apply_map): New. | |
462 | * tree-chrec.h (chrec_apply_map): Declared. | |
463 | ||
e11d25e0 SP |
464 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
465 | ||
466 | * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call | |
467 | insert_loop_close_phis. | |
468 | * sese.c (name_defined_in_loop_p): Removed. | |
469 | (expr_defined_in_loop_p): Removed. | |
470 | (alive_after_loop): Removed. | |
471 | (close_phi_not_yet_inserted_p): Removed. | |
472 | (struct alep): Removed. | |
473 | (add_loop_exit_phis): Removed. | |
474 | (insert_loop_close_phis): Removed. | |
475 | ||
61298f69 AS |
476 | 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
477 | ||
e11d25e0 SP |
478 | * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped |
479 | condition. | |
480 | * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same. | |
61298f69 | 481 | |
7ff28cc2 SP |
482 | 2010-07-07 Sebastian Pop <sebastian.pop@amd.com> |
483 | ||
484 | * gfortran.dg/graphite/id-20.f: New. | |
485 | ||
a9c2ba8f AS |
486 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
487 | ||
488 | * graphite-cloog-util.h: Added cloog.h. | |
489 | * graphite-blocking.c: Removed cloog.h. | |
490 | * graphite-dependences.c: Same. | |
491 | * graphite-interchange.c: Same. | |
492 | * graphite-poly.c: Same. | |
493 | * graphite-ppl.c: Same. | |
494 | * graphite-scop-detection.c: Same. | |
495 | * graphite-sese-to-poly.c: | |
496 | Removed cloog.h. | |
497 | Removed graphite-clast-to-gimple.h. | |
498 | (check_poly_representation): Removed (unused). | |
499 | * graphite-sese-to-poly.h | |
500 | (check_poly_representation): Removed (unused). | |
501 | ||
0647324a AS |
502 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
503 | ||
504 | * Makefile.in | |
505 | (OBJS-common): Added graphite-cloog-util.o. | |
506 | (graphite-clast-to-gimple.o): Added graphite-cloog-util.h. | |
507 | (graphite-cloog-util.o): New. | |
508 | (graphite-ppl.o): Added graphite-cloog-util.h. | |
509 | * graphite-clast-to-gimple.c: | |
510 | Added graphite-cloog-util.h to include statements. | |
511 | * graphite-cloog-util.c: New. | |
512 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c. | |
513 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
514 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
515 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
516 | (ppl_Constrain_System_number_of_constraints): Same. | |
517 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
518 | (oppose_constraint): Same. | |
519 | (cloog_matrix_to_ppl_constraint): Same. | |
520 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
521 | (insert_constraint_into_matrix): Same. Declared static. | |
522 | * graphite-cloog-util.h: New. | |
523 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h. | |
524 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
525 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
526 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
527 | (insert_constraint_into_matrix): Same. | |
528 | * graphite-ppl.c: | |
529 | Added graphite-cloog-util.h to include statements. | |
530 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c. | |
531 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
532 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
533 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
534 | (insert_constraint_into_matrix): Same. | |
535 | (ppl_Constrain_System_number_of_constraints): Same. | |
536 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
537 | (oppose_constraint): Same. | |
538 | (cloog_matrix_to_ppl_constraint): Same. | |
539 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
540 | * graphite-ppl.h: | |
541 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to | |
542 | graphite-cloog-util.h. | |
543 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
544 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
545 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
546 | (insert_constraint_into_matrix): Removed. | |
547 | ||
589ac63c AS |
548 | 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
549 | ||
550 | * graphite-clast-to-gimple.c | |
551 | (precision_for_value): Resolve value_* calls to matching mpz_* calls. | |
552 | (precision_for_interval): Same. | |
553 | (gcc_type_for_interval): Same. | |
554 | (compute_type_for_level): Same. | |
555 | * graphite-interchange.c | |
556 | (lst_interchange_profitable_p): Same. | |
557 | * graphite-poly.c | |
558 | (psct_scattering_dim_for_loop_depth): Same. | |
559 | * graphite-ppl.c | |
560 | (ppl_max_for_le_pointset): Same. | |
561 | (ppl_min_for_le_pointset): Same. | |
562 | ||
3e40cb77 VK |
563 | 2010-06-25 Vladimir Kargov <kargov@gmail.com> |
564 | ||
565 | * refined-regions.c (bb_index_compare): New. | |
566 | (get_bbs_in_region): New. | |
567 | (print_bbs_in_region): New. | |
568 | (print_refined_region): Add an argument that allows to print | |
569 | all basic blocks contained in regions. | |
570 | (debug_refined_region): Update call to print_refined_region. | |
571 | * refined-regions.h (print_refined_region): Update declaration. | |
572 | (get_bbs_in_region): Declared. | |
573 | * graphite-scop-detection.c (build_scops_new): Print the refined | |
574 | region tree into the Grahite dump file. | |
575 | ||
d3e7b889 SP |
576 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
577 | ||
578 | * graphite-sese-to-poly.c (rewrite_degenerate_phi): New. | |
579 | (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result. | |
580 | ||
aedede66 SP |
581 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
582 | ||
583 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call | |
584 | rewrite_close_phi_out_of_ssa. | |
585 | ||
586 | * gcc.dg/graphite/id-22.c: New. | |
587 | ||
f2c51113 SP |
588 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
589 | ||
590 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code. | |
591 | ||
32e68db9 SP |
592 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
593 | ||
594 | * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with | |
595 | rename_map. | |
596 | * sese.c (debug_rename_map): Same. | |
597 | (get_rename): Same. | |
598 | (set_rename): Same. | |
599 | (rename_variables_in_stmt): Same. | |
600 | (expand_scalar_variables_call): Same. | |
601 | (expand_scalar_variables_ssa_name): Same. | |
602 | (expand_scalar_variables_expr): Same. | |
603 | (expand_scalar_variables_stmt): Same. | |
604 | (expand_scalar_variables): Same. | |
605 | (rename_variables): Same. | |
606 | (graphite_copy_stmts_from_block): Same. | |
607 | (copy_bb_and_scalar_dependences): Same. | |
608 | ||
8b164754 SP |
609 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
610 | ||
611 | * graphite-clast-to-gimple.c (copy_renames): Removed. | |
612 | (translate_clast_for): Do not call copy_renames. | |
613 | (translate_clast_guard): Same. | |
614 | ||
9773d730 SP |
615 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
616 | ||
617 | * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up. | |
618 | (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps. | |
619 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps | |
620 | before rewrite_cross_bb_scalar_deps. | |
621 | ||
cc588970 SP |
622 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
623 | ||
624 | * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa): | |
625 | Early return in when flag_associative_math is not set. | |
626 | ||
3d125479 SP |
627 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
628 | ||
629 | * gcc.dg/graphite/run-id-2.c: Call abort. | |
630 | ||
4aa9a167 SP |
631 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
632 | ||
633 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out | |
634 | of SSA copies on edges except for loop->latch. | |
635 | ||
ee646fc6 SP |
636 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
637 | ||
638 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
639 | Split out of rewrite_reductions_out_of_ssa. | |
640 | * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
641 | Declared. | |
642 | * graphite.c (graphite_transform_loops): Call it. | |
643 | ||
6a7441f5 SP |
644 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
645 | ||
646 | * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. | |
647 | ||
d4332d00 SP |
648 | 2010-06-15 Sebastian Pop <sebastian.pop@amd.com> |
649 | ||
650 | * passes.c (init_optimization_passes): Add pass_graphite. | |
651 | Schedule a pass_copy_prop before pass_graphite_transforms. | |
652 | * timevar.def (TV_GRAPHITE): Declared. | |
653 | * tree-pass.h (pass_graphite): Declared. | |
654 | * tree-ssa-loop.c (pass_graphite): New. | |
655 | ||
656 | * gcc.dg/graphite/id-20.c: New. | |
657 | ||
14d0e129 SP |
658 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
659 | ||
660 | * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter. | |
661 | Remove calls to rename_nb_iterations and rename_sese_parameters. | |
662 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
663 | * graphite.c (graphite_transform_loops): Update call to gloog. | |
664 | * sese.c (rename_variables_in_expr): Removed. | |
665 | (rename_nb_iterations): Removed. | |
666 | (rename_sese_parameters): Removed. | |
667 | * sese.h (rename_nb_iterations): Removed. | |
668 | (rename_sese_parameters): Removed. | |
669 | ||
d1ba0721 SP |
670 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
671 | ||
672 | * graphite-clast-to-gimple.c (gloog): Remove call to | |
673 | sese_adjust_liveout_phis. | |
674 | * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an | |
675 | SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps. | |
676 | (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call | |
677 | rewrite_phi_out_of_ssa. | |
678 | * sese.c (get_vdef_before_sese): Removed. | |
679 | (sese_adjust_vphi): Removed. | |
680 | (sese_adjust_liveout_phis): Removed. | |
681 | * sese.h (sese_adjust_liveout_phis): Removed. | |
682 | ||
5fed5769 SP |
683 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
684 | ||
685 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra | |
686 | argument for the place after which to insert the out of SSA copy. | |
687 | (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy. | |
688 | (rewrite_phi_out_of_ssa): Same. | |
689 | (rewrite_cross_bb_scalar_deps): Same. | |
690 | (insert_copyout): Removed. | |
691 | (insert_copyin): Removed. | |
692 | (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and | |
693 | insert_out_of_ssa_copy_on_edge instead of insert_copyout and | |
694 | insert_copyin. | |
695 | ||
3a7086cc SP |
696 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
697 | ||
698 | * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore. | |
699 | (rewrite_reductions_out_of_ssa): Same. | |
700 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
701 | (build_poly_scop): Do not call these functions. | |
702 | * graphite-sese-to-poly.h (build_poly_scop): Declared. | |
703 | (rewrite_reductions_out_of_ssa): Declared. | |
704 | (rewrite_commutative_reductions_out_of_ssa): Declared. | |
705 | * graphite.c (graphite_transform_loops): Call on every scop | |
706 | rewrite_commutative_reductions_out_of_ssa before calling | |
707 | rewrite_reductions_out_of_ssa and build_scop_bbs. | |
708 | ||
61ca46ce SP |
709 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
710 | ||
711 | * graphite-dependences.c (dot_deps): Make system call to dotty run | |
712 | in background. | |
713 | (dot_deps_stmt): Same. | |
714 | * graphite-poly.c (dot_lst): Same. | |
715 | ||
f5f50480 SP |
716 | 2010-06-11 Sebastian Pop <sebastian.pop@amd.com> |
717 | ||
718 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass | |
719 | old_type in parameter. | |
720 | (gcc_type_for_value): Update call to gcc_type_for_interval. | |
721 | (compute_type_for_level_1): Renamed compute_type_for_level. | |
722 | Update call to gcc_type_for_interval. | |
723 | ||
081970eb SP |
724 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
725 | ||
726 | * tree-scalar-evolution.c (instantiate_scev_name): Do not fail | |
727 | the scev analysis when the variable is not used outside the loop | |
728 | in a close phi node: call compute_overall_effect_of_inner_loop. | |
729 | ||
bb17c851 SP |
730 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
731 | ||
732 | * graphite-sese-to-poly.c (single_pred_cond): Renamed | |
733 | single_pred_cond_non_loop_exit. Return NULL for loop exit edges. | |
734 | (build_sese_conditions_before): Renamed call to single_pred_cond. | |
735 | (build_sese_conditions_after): Same. | |
736 | ||
86e40af7 SP |
737 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
738 | ||
739 | * graphite-poly.h: Fix comments and indentation. | |
740 | * graphite-sese-to-poly.c: Same. | |
741 | (build_sese_conditions_before): Compute stmt and gbb only when needed. | |
742 | * tree-chrec.c: Fix comments and indentation. | |
743 | (tree-ssa-loop-niter.c): Same. | |
744 | ||
5599dea7 TG |
745 | 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de> |
746 | ||
747 | * refined-regions.c (create_region): Only initialize the region. | |
748 | (find_regions_with_entry): Initialize parent relation and bbmap | |
749 | correctly. | |
750 | (build_regions_tree): Set outermost_region to region instead of | |
751 | topmost_region. | |
752 | (calculate_region_tree): Remove unneeded parameters. | |
753 | ||
2a6909ec TG |
754 | 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de> |
755 | ||
756 | * graphite-scop-detection.c (is_scop_p): New. | |
757 | (build_scops_new): New. A skeleton for the new scop detection. | |
758 | (build_scops_old): Renamed from build_scops. | |
759 | (build_scops): New version. Call the new and the old scop | |
760 | detection. | |
761 | ||
25c57e83 TG |
762 | 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de> |
763 | Antoniu Pop <antoniu.pop@gmail.com> | |
764 | ||
765 | * Makefile.in (OBJS-common): Add refined-regions.o. | |
766 | (refined-regions.o): New. | |
767 | (graphite-scop-detection.o): Use refined-regions.h. | |
768 | * graphite-scop-detection.c: Include refined-regions.h | |
769 | (build_scops): Also build the refined region tree. | |
770 | * refined-regions.c: New. Adds an algorithm to detect refined | |
771 | regions. | |
772 | (print_refined_region): New. | |
773 | (debug_refined_region): New. | |
774 | (refined_region_contains_bb_p): New. | |
775 | (refined_region_contains_region_p): New. | |
776 | (is_common_df): New. | |
777 | (struct find_regions_global_data): New. | |
778 | (is_region): New. | |
779 | (typedef struct bb_bb_def): New. | |
780 | (new_bb_bb_def): New. | |
781 | (bb_bb_map_hash): New. | |
782 | (eq_bb_bb_map): New. | |
783 | (find_new_bb): New. | |
784 | (bb_reg_def): New. | |
785 | (new_bb_reg_def): New. | |
786 | (bb_reg_map_hash): New. | |
787 | (eq_bb_reg_map): New. | |
788 | (find_new_region): New. | |
789 | (insert_new_reg): New. | |
790 | (insert_new_bb): New. | |
791 | (insert_shortcut): New. | |
792 | (get_next_postdom): New. | |
793 | (create_region): New. | |
794 | (find_regions_with_entry): New. | |
795 | (find_regions_adc): New. | |
796 | (find_regions): New. | |
797 | (get_topmost_parent): New. | |
798 | (build_regions_tree): New. | |
799 | (calculate_region_tree): New. | |
800 | (free_region_tree): New. | |
801 | * refined-regions.h: New. | |
802 | (struct refined_region): New. | |
803 | (calculate_region_tree): New. | |
804 | (free_region_tree): New. | |
805 | (refined_region_contains_bb_p): New. | |
806 | (refined_region_contains_region_p): New. | |
807 | (print_refined_region): New. | |
808 | (debug_refined_region): New. | |
809 | ||
8c131b3b SP |
810 | 2010-05-26 Sebastian Pop <sebastian.pop@amd.com> |
811 | ||
812 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
813 | size_one_node. | |
814 | ||
d91949fa SP |
815 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
816 | ||
817 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix | |
818 | type of integer_one_node for fold_build of POINTER_PLUS_EXPR. | |
819 | ||
159e4616 SP |
820 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
821 | ||
822 | * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed | |
823 | phi_arg_in_outermost_loop. | |
824 | (remove_simple_copy_phi): Call phi_arg_in_outermost_loop. | |
825 | (remove_invariant_phi): Same. | |
826 | ||
e262fdda AS |
827 | 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
828 | ||
829 | * graphite-blocking.c | |
830 | (pbb_strip_mine_profitable_p): Replace Value with mpz_t. | |
831 | * graphite-clast-to-gimple.c | |
832 | (clast_to_gcc_expression): Same. | |
833 | (precision_for_value): Same. | |
834 | (precision_for_interval): Same. | |
835 | (gcc_type_for_interval): Same. | |
836 | (graphite_create_new_guard): Same. | |
837 | (compute_bounds_for_level): Same. | |
838 | (graphite_create_new_loop_guard): Same. | |
839 | * graphite-interchange.c | |
840 | (build_linearized_memory_access): Same. | |
841 | (pdr_stride_in_loop): Same. | |
842 | (memory_strides_in_loop_1): Same. | |
843 | (memory_strides_in_loop): Same. | |
844 | (extend_scattering): Same. | |
845 | (psct_scattering_dim_for_loop_depth): Same. | |
846 | (pbb_number_of_iterations): Same. | |
847 | * graphite-poly.h | |
848 | (debug_iteration_domains): Same. | |
849 | * graphite-ppl.c | |
850 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
851 | (ppl_set_inhomogeneous_gmp): Same. | |
852 | (ppl_strip_loop): Same. | |
853 | (ppl_lexico_compare_linear_expressions): Same. | |
854 | (ppl_read_polyhedron_matrix): Same. | |
855 | (ppl_max_for_le_pointset): Same. | |
856 | * graphite-ppl.h | |
857 | (ppl_read_polyhedron_matrix): Same. | |
858 | (tree_int_to_gmp): Same. | |
859 | (gmp_cst_to_tree): Same. | |
860 | (ppl_set_inhomogeneous): Same. | |
861 | (ppl_set_inhomogeneous_tree): Same. | |
862 | (ppl_set_coef): Same. | |
863 | (ppl_set_coef_tree): Same. | |
864 | * graphite-sese-to-poly.c | |
865 | (build_pbb_scattering_polyhedrons): Same. | |
866 | (build_scop_scattering): Same. | |
867 | (scan_tree_for_params_right_scev): Same. | |
868 | (scan_tree_for_params): Same. | |
869 | (find_params_in_bb): Same. | |
870 | (find_scop_parameters): Same. | |
871 | (add_upper_bounds_from_estimated_nit): Same. | |
872 | (build_loop_iteration_domains): Same. | |
873 | (add_condition_to_domain): Same. | |
874 | (pdr_add_memory_accesses): Same. | |
875 | ||
a0bb35c7 AS |
876 | 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
877 | ||
aa91c4cc | 878 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve |
a0bb35c7 AS |
879 | CLooG's value_* macros to their respective mpz_* counterparts. |
880 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same. | |
881 | (graphite_create_new_loop_guard): Same. | |
882 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
883 | (pdr_stride_in_loop): Same. | |
884 | (memory_strides_in_loop_1): Same. | |
885 | (1st_interchange_profitable_p): Same. | |
886 | * graphite-poly.c (extend_scattering): Same. | |
887 | (psct_scattering_dim_for_loop_depth): Same. | |
888 | (pbb_number_of_iterations): Same. | |
889 | (pbb_number_of_iterations_at_time): Same. | |
890 | * graphite-poly.h (new_1st_loop): Same. | |
891 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same. | |
892 | (oppose_constraint): Same. | |
893 | (insert_constraint_into_matrix): Same. | |
894 | (ppl_set_inhomogeneous_gmp): Same. | |
895 | (ppl_set_coef_gmp): Same. | |
896 | (ppl_strip_loop): Same. | |
897 | (ppl_lexico_compare_linear_expressions): Same. | |
898 | (ppl_max_for_le_pointset): Same. | |
899 | (ppl_min_for_le_pointset): Same. | |
900 | (ppl_build_realtion): Same. | |
901 | * graphite-ppl.h (gmp_cst_to_tree): Same. | |
902 | (ppl_set_inhomogeneous): Same. | |
903 | (ppl_set_inhomogeneous_tree): Same. | |
904 | (ppl_set_coef): Same. | |
905 | (ppl_set_coef_tree): Same. | |
906 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same. | |
907 | (build_scop_scattering): Same. | |
908 | (add_value_to_dim): Same. | |
909 | (scan_tree_for_params_right_scev): Same. | |
910 | (scan_tree_for_params_int): Same. | |
911 | (scan_tree_for_params): Same. | |
912 | (find_params_in_bb): Same. | |
913 | (find_scop_parameters): Same. | |
914 | (add_upper_bounds_from_estimated_nit): Same. | |
915 | (build_loop_iteration_domains): Same. | |
916 | (create_linear_expr_from_tree): Same. | |
917 | (add_condition_to_domain): Same. | |
918 | (pdr_add_memory_accesses): Same. | |
919 | ||
b8132a7d SP |
920 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> |
921 | ||
922 | PR middle-end/43519 | |
923 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
924 | lang_hooks.types.type_for_size instead of build_nonstandard_integer_type. | |
925 | When converting an unsigned type to signed, double its precision. | |
926 | (gcc_type_for_interval): Use lang_hooks.types.type_for_size. | |
927 | (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type. | |
928 | (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub. | |
929 | ||
930 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
931 | ||
932 | PR middle-end/43519 | |
933 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
934 | build_nonstandard_integer_type. | |
935 | (gcc_type_for_interval): Same. | |
936 | ||
937 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
dbe0d652 SP |
938 | |
939 | PR middle-end/43519 | |
940 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
941 | POINTER_PLUS_EXPR for pointer types. | |
942 | ||
943 | * gcc.dg/graphite/id-19.c: New. | |
944 | ||
bd32f344 SP |
945 | 2010-04-04 Sebastian Pop <sebastian.pop@amd.com> |
946 | ||
947 | PR middle-end/43519 | |
948 | * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h. | |
949 | * graphite-clast-to-gimple.c: Include langhooks.h. | |
950 | (max_signed_precision_type): New. | |
951 | (max_precision_type): Takes two types as arguments. | |
952 | (precision_for_value): New. | |
953 | (precision_for_interval): New. | |
954 | (gcc_type_for_interval): New. | |
955 | (gcc_type_for_value): New. | |
956 | (gcc_type_for_clast_term): New. | |
957 | (gcc_type_for_clast_red): New. | |
958 | (gcc_type_for_clast_bin): New. | |
959 | (gcc_type_for_clast_expr): Split up into several functions. | |
960 | (gcc_type_for_clast_eq): Rewritten. | |
961 | (compute_bounds_for_level): New. | |
962 | (compute_type_for_level_1): New. | |
963 | (compute_type_for_level): New. | |
964 | (gcc_type_for_cloog_iv): Removed. | |
965 | (gcc_type_for_iv_of_clast_loop): Rewritten. | |
966 | (graphite_create_new_loop): Compute the lower and upper bound types | |
967 | with gcc_type_for_clast_expr. | |
968 | (graphite_create_new_loop_guard): Same. | |
969 | (find_cloog_iv_in_expr): Removed. | |
970 | (compute_cloog_iv_types_1): Removed. | |
971 | (compute_cloog_iv_types): Removed. | |
972 | (gloog): Do not call compute_cloog_iv_types. | |
973 | * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize | |
974 | GBB_CLOOG_IV_TYPES. | |
975 | (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES. | |
976 | * sese.h (struct gimple_bb): Removed field cloog_iv_types. | |
977 | (GBB_CLOOG_IV_TYPES): Removed. | |
978 | ||
979 | * gcc.dg/graphite/run-id-pr42644.c: Call abort. | |
980 | ||
79d03cf8 SP |
981 | 2010-04-02 Sebastian Pop <sebastian.pop@amd.com> |
982 | ||
983 | Reverted this commit: as at this point the loop closed SSA form | |
984 | is under a canonical form respecting the single argument condition. | |
985 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
986 | close phi nodes may have more than one argument. | |
987 | ||
988 | 2010-04-01 Sebastian Pop <sebastian.pop@amd.com> | |
989 | ||
990 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that | |
991 | gimple_phi_num_args of the loop close SSA phi node is equal to 1. | |
992 | (detect_commutative_reduction): Same. | |
993 | ||
994 | 2010-03-31 Sebastian Pop <sebastian.pop@amd.com> | |
995 | ||
996 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
997 | close phi nodes may have more than one argument. | |
998 | ||
3cbf7085 RG |
999 | 2010-03-30 Richard Guenther <rguenther@suse.de> |
1000 | Zdenek Dvorak <ook@ucw.cz> | |
1001 | Sebastian Pop <sebastian.pop@amd.com> | |
1002 | ||
1003 | PR middle-end/43464 | |
1004 | * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes | |
1005 | with multiple arguments. | |
1006 | (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa. | |
1007 | ||
40bf935e SP |
1008 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1009 | ||
1010 | * graphite-dependences.c (print_pddr): Call print_pdr with an | |
1011 | extra argument. | |
1012 | * graphite-poly.c (debug_pdr): Add an extra argument for the | |
1013 | verbosity level. | |
1014 | (print_pdr): Same. | |
1015 | (print_pbb_domain): Same. | |
1016 | (print_pbb): Same. | |
1017 | (print_scop_context): Same. | |
1018 | (print_scop): Same. | |
1019 | (print_cloog): Same. | |
1020 | (debug_pbb_domain): Same. | |
1021 | (debug_pbb): Same. | |
1022 | (print_pdrs): Same. | |
1023 | (debug_pdrs): Same. | |
1024 | (debug_scop_context): Same. | |
1025 | (debug_scop): Same. | |
1026 | (debug_cloog): Same. | |
1027 | (print_scop_params): Same. | |
1028 | (debug_scop_params): Same. | |
1029 | (print_iteration_domain): Same. | |
1030 | (print_iteration_domains): Same. | |
1031 | (debug_iteration_domain): Same. | |
1032 | (debug_iteration_domains): Same. | |
1033 | (print_scattering_function): Same. | |
1034 | (print_scattering_functions): Same. | |
1035 | (debug_scattering_function): Same. | |
1036 | (debug_scattering_functions): Same. | |
1037 | * graphite-poly.h (debug_pdr): Update declaration. | |
1038 | (print_pdr): Same. | |
1039 | (print_pbb_domain): Same. | |
1040 | (print_pbb): Same. | |
1041 | (print_scop_context): Same. | |
1042 | (print_scop): Same. | |
1043 | (print_cloog): Same. | |
1044 | (debug_pbb_domain): Same. | |
1045 | (debug_pbb): Same. | |
1046 | (print_pdrs): Same. | |
1047 | (debug_pdrs): Same. | |
1048 | (debug_scop_context): Same. | |
1049 | (debug_scop): Same. | |
1050 | (debug_cloog): Same. | |
1051 | (print_scop_params): Same. | |
1052 | (debug_scop_params): Same. | |
1053 | (print_iteration_domain): Same. | |
1054 | (print_iteration_domains): Same. | |
1055 | (debug_iteration_domain): Same. | |
1056 | (debug_iteration_domains): Same. | |
1057 | (print_scattering_function): Same. | |
1058 | (print_scattering_functions): Same. | |
1059 | (debug_scattering_function): Same. | |
1060 | (debug_scattering_functions): Same. | |
1061 | ||
730a9846 SP |
1062 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1063 | ||
1064 | * graphite-poly.c (print_scattering_function_1): New. | |
1065 | (print_scattering_function): Call it. | |
1066 | (print_scop_params): Remove spaces at the end of lines. | |
1067 | (print_cloog): New. | |
1068 | (debug_cloog): New. | |
1069 | * graphite-poly.h (print_cloog): Declared. | |
1070 | (debug_cloog): Declared. | |
1071 | ||
9c0c34c2 SP |
1072 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1073 | ||
1074 | * tree-ssa-copy.c: Revert this previous change: | |
1075 | (init_copy_prop): Loop closed phi nodes cancontain more than one | |
1076 | argument. | |
1077 | (execute_copy_prop): Revert the previous change: do not call | |
1078 | rewrite_into_loop_closed_ssa. | |
1079 | ||
1080 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1081 | Richard Guenther <rguenther@suse.de> | |
1082 | ||
1083 | PR middle-end/43464 | |
1084 | * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can | |
1085 | contain more than one argument. | |
1086 | (execute_copy_prop): Revert the previous change: do not call | |
1087 | rewrite_into_loop_closed_ssa. | |
1088 | ||
1089 | * gcc.dg/graphite/id-pr43464.c: Remove compile warning. | |
1090 | * gcc.dg/graphite/id-pr43464-1.c: New. | |
1091 | ||
1092 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1093 | ||
1094 | PR middle-end/43464 | |
1095 | * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa | |
1096 | and verify_loop_closed_ssa when copy prop is executed in the LNO. | |
1097 | ||
1098 | * gcc.dg/graphite/id-pr43464.c: New. | |
1099 | ||
c80a5403 SP |
1100 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1101 | ||
1102 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump | |
1103 | in loop->header. | |
1104 | * tree-flow.h (canonicalize_loop_ivs): Updated declaration. | |
1105 | * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch. | |
1106 | * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter | |
1107 | to switch between adding the IV bump in loop->latch or in loop->header. | |
1108 | ||
caaf41d0 SP |
1109 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1110 | ||
1111 | * passes.c (init_optimization_passes): Add pass_copy_prop | |
1112 | after Graphite. | |
1113 | ||
03922af3 SP |
1114 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1115 | ||
1116 | * graphite-poly.c (print_scattering_function): Pretty print following | |
1117 | the scoplib format. | |
1118 | (print_pdr): Same. | |
1119 | (print_pbb_domain): Same. | |
1120 | (dump_gbb_cases): Same. | |
1121 | (dump_gbb_conditions): Same. | |
1122 | (print_pdrs): Same. | |
1123 | (print_pbb): Same. | |
1124 | (print_scop_params): Same. | |
1125 | (print_scop_context): Same. | |
1126 | (print_scop): Same. | |
1127 | (print_pbb_body): New. | |
1128 | (lst_indent_to): New. | |
1129 | (print_lst): Start new lines with a #. | |
1130 | * graphite-poly.h (pbb_bb): New. | |
1131 | (pbb_index): Use pbb_bb. | |
1132 | * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of | |
1133 | disjuncts. | |
1134 | * tree-data-ref.c (dump_data_reference): Start new lines with a #. | |
1135 | ||
7da9e6ed SP |
1136 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1137 | ||
1138 | PR middle-end/43351 | |
1139 | * gcc.dg/graphite/id-pr43351.c | |
1140 | ||
6492b694 SP |
1141 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1142 | ||
1143 | PR middle-end/43354 | |
1144 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not | |
1145 | call insert_out_of_ssa_copy for default definitions. | |
1146 | * gfortran.dg/graphite/id-pr43354.f: New. | |
1147 | ||
1148 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
113081e4 SP |
1149 | |
1150 | PR middle-end/43349 | |
1151 | * gfortran.dg/graphite/pr43349.f: New. | |
1152 | ||
248081bc SP |
1153 | 2010-03-11 Sebastian Pop <sebastian.pop@amd.com> |
1154 | ||
1155 | * graphite-clast-to-gimple.c (my_long_long): Defined. | |
1156 | (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node. | |
1157 | * graphite-sese-to-poly.c (my_long_long): Defined. | |
1158 | (scop_ivs_can_be_represented): Use it. | |
1159 | ||
d97c90ae SP |
1160 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1161 | ||
1162 | * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params, | |
1163 | graphite-max-bbs-per-function, and loop-block-tile-size. | |
1164 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal" | |
1165 | with "maximum". | |
1166 | (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same. | |
1167 | ||
a5a59b11 SP |
1168 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1169 | ||
1170 | * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove | |
1171 | forward declaration. | |
1172 | * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment. | |
1173 | (add_upper_bounds_from_estimated_nit): New. | |
1174 | (build_loop_iteration_domains): Use it. | |
1175 | ||
9d198913 SP |
1176 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1177 | ||
1178 | * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. | |
1179 | ||
1f380314 SP |
1180 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1181 | ||
1182 | PR middle-end/43306 | |
1183 | * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT | |
1184 | should be an INTEGER_CST. Also handle CASE_CONVERT. | |
1185 | * gcc.dg/graphite/pr43306.c: New. | |
1186 | ||
b6bb0094 SP |
1187 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1188 | ||
1189 | * graphite.c (graphite_initialize): To bound the number of bbs per | |
1190 | function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. | |
1191 | * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. | |
1192 | * doc/invoke.texi: Document it. | |
1193 | ||
e84aaa33 SP |
1194 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1195 | ||
1196 | * graphite-sese-to-poly.c (build_poly_scop): Do not return bool. | |
1197 | * graphite-sese-to-poly.h (build_poly_scop): Same. | |
1198 | ||
4e7dd376 SP |
1199 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1200 | ||
1201 | * graphite-sese-to-poly.c (build_poly_scop): Limit scops following | |
1202 | the number of parameters in the scop. Use as an upper bound | |
1203 | PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. | |
1204 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared. | |
1205 | * doc/invoke.texi: Document it. | |
1206 | ||
697f511d SP |
1207 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1208 | ||
1209 | * graphite-sese-to-poly.c (add_param_constraints): Use | |
1210 | lower_bound_in_type and upper_bound_in_type. | |
1211 | ||
456cc718 SP |
1212 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1213 | ||
1214 | * graphite-sese-to-poly.c (add_param_constraints): Use sizetype | |
1215 | instead of unsigned_type_node. | |
1216 | ||
3640d64c SP |
1217 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1218 | Reza Yazdani <reza.yazdani@amd.com> | |
1219 | ||
1220 | PR middle-end/43065 | |
1221 | * graphite-sese-to-poly.c (add_param_constraints): Insert bounds | |
1222 | on pointer type parameters. | |
1223 | ||
1224 | * gcc.dg/graphite/run-id-4.c: New. | |
1225 | ||
1226 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> | |
b75d95c9 SP |
1227 | |
1228 | PR middle-end/43065 | |
1229 | * gcc.dg/graphite/run-id-3.c: New. | |
1230 | ||
73102986 TG |
1231 | 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de> |
1232 | Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1233 | ||
1234 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also | |
1235 | handle conversions from pointer to integers. | |
1236 | (gcc_type_for_cloog_iv): Choose the smalles signed integer as an | |
1237 | induction variable, to be able to work with code generated by CLooG. | |
1238 | * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New. | |
1239 | (build_poly_scop): Bail out if we cannot codegen a loop. | |
1240 | ||
e3f81db1 TG |
1241 | 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de> |
1242 | ||
1243 | * graphite-clast-to-gimple.c (translate_clast): Do not short-cut | |
1244 | code generation with gloog_error. | |
1245 | ||
c7631a71 SP |
1246 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1247 | ||
1248 | * sese.c (expand_scalar_variables_ssa_name): Add new argument for type. | |
1249 | Call fold_convert on all the returned values. | |
1250 | (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name | |
1251 | the type of the resulting expression. | |
1252 | ||
b0602cc8 SP |
1253 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1254 | ||
1255 | * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed | |
1256 | ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. | |
1257 | * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. | |
1258 | ||
b188bb7c SP |
1259 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1260 | ||
1261 | * graphite-dependences.c (map_into_dep_poly): Removed. | |
1262 | (dependence_polyhedron_1): Use combine_context_id_scat. | |
1263 | ||
aa52513e SP |
1264 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1265 | ||
1266 | * graphite-poly.h (struct poly_scattering): Add layout documentation. | |
1267 | (struct poly_bb): Same. | |
1268 | (combine_context_id_scat): New. | |
1269 | ||
392c0ce1 SP |
1270 | 2010-03-02 Sebastian Pop <sebastian.pop@amd.com> |
1271 | ||
1272 | PR middle-end/42326 | |
1273 | * sese.c (name_defined_in_loop_p): Return false for default | |
1274 | definitions. | |
1275 | ||
1276 | * gcc.dg/graphite/pr42326.c: New. | |
1277 | ||
bd7742f8 SP |
1278 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1279 | ||
1280 | * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify | |
1281 | and clean up the logic. | |
1282 | ||
733ff09d SP |
1283 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1284 | ||
1285 | * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove | |
1286 | early return. | |
1287 | ||
4caa8e21 SP |
1288 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1289 | ||
1290 | PR middle-end/43083 | |
1291 | * graphite-scop-detection.c (create_single_exit_edge): Move | |
1292 | the call to find_single_exit_edge to.... | |
1293 | (create_sese_edges): ...here. Don't handle multiple edges | |
1294 | exiting the function. | |
1295 | (build_graphite_scops): Don't handle multiple edges | |
1296 | exiting the function. | |
1297 | ||
1298 | * gcc.dg/graphite/pr43083.c: New. | |
1299 | ||
c3382979 SP |
1300 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1301 | ||
b8df8b8b | 1302 | PR middle-end/43097 |
c3382979 SP |
1303 | * sese.c (get_rename): Assert that old_name is an SSA_NAME. |
1304 | (rename_variables_in_stmt): Continue when the use is not an SSA_NAME. | |
1305 | ||
1306 | * gfortran.dg/graphite/pr43097.f: New. | |
1307 | ||
13cd10a2 SP |
1308 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1309 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1310 | ||
1311 | PR middle-end/43140 | |
1312 | * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null. | |
1313 | ||
1314 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> | |
143b72a9 SP |
1315 | |
1316 | PR middle-end/43026 | |
1317 | * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF. | |
1318 | ||
1319 | * g++.dg/graphite/pr43026.C: New. | |
1320 | ||
4e722673 SP |
1321 | 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de> |
1322 | ||
1323 | * Merge from mainline (154736:156693). | |
1324 | ||
c2814aab SP |
1325 | 2010-02-11 Sebastian Pop <sebastian.pop@amd.com> |
1326 | ||
1327 | PR middle-end/43012 | |
1328 | * gcc.dg/graphite/pr43012.c: New. | |
be1c3b28 | 1329 | |
c2814aab | 1330 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
be1c3b28 | 1331 | |
c2814aab | 1332 | * graphite.c (graphite_transform_loops): Re-enable dbg_cnt. |
be1c3b28 SP |
1333 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
1334 | ||
1335 | * g++.dg/graphite/pr42930.C: New. | |
1336 | ||
141ecc24 | 1337 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
c4c4983e SP |
1338 | |
1339 | PR middle-end/42930 | |
1340 | * graphite-scop-detection.c (graphite_can_represent_scev): Call | |
1341 | graphite_can_represent_init for MULT_EXPR. | |
1342 | ||
141ecc24 | 1343 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a4681954 SP |
1344 | |
1345 | PR middle-end/42914 | |
1346 | PR middle-end/42530 | |
1347 | * graphite-sese-to-poly.c (remove_phi): New. | |
1348 | (translate_scalar_reduction_to_array): Call remove_phi. | |
1349 | ||
1350 | * gcc.dg/graphite/pr42530.c: New. | |
1351 | * gcc.dg/graphite/pr42914.c: New. | |
1352 | ||
141ecc24 | 1353 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
a1954f72 SP |
1354 | |
1355 | PR middle-end/42771 | |
1356 | * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters. | |
1357 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
1358 | * graphite-poly.c (new_scop): Clear POLY_SCOP_P. | |
1359 | * graphite-poly.h (struct poly_bb): Add missing comments. | |
1360 | (struct scop): Add poly_scop_p field. | |
1361 | (POLY_SCOP_P): New. | |
1362 | * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P. | |
1363 | * graphite.c (graphite_transform_loops): Build the polyhedral | |
1364 | representation for each scop before code generation. | |
1365 | * sese.c (rename_variables_in_operand): Removed. | |
1366 | (rename_variables_in_expr): Return the renamed expression. | |
1367 | (rename_sese_parameters): New. | |
1368 | * sese.h (rename_sese_parameters): Declared. | |
1369 | ||
1370 | * gcc.dg/graphite/pr42771.c: New. | |
1371 | ||
0be957dc SP |
1372 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1373 | ||
1374 | * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always | |
1375 | return 0 from main. | |
1376 | * gcc.dg/graphite/block-1.c: Same. | |
1377 | * gcc.dg/graphite/block-3.c: Same. | |
1378 | * gcc.dg/graphite/block-4.c: Same. | |
1379 | * gcc.dg/graphite/block-5.c: Same. | |
1380 | * gcc.dg/graphite/block-6.c: Same. | |
1381 | * gcc.dg/graphite/block-7.c: Same. | |
1382 | * gcc.dg/graphite/interchange-0.c: Same. | |
1383 | * gcc.dg/graphite/interchange-1.c: Same. | |
1384 | * gcc.dg/graphite/interchange-10.c: Same. | |
1385 | * gcc.dg/graphite/interchange-11.c: Same. | |
1386 | * gcc.dg/graphite/interchange-12.c: Same. | |
1387 | * gcc.dg/graphite/interchange-2.c: Same. | |
1388 | * gcc.dg/graphite/interchange-3.c: Same. | |
1389 | * gcc.dg/graphite/interchange-4.c: Same. | |
1390 | * gcc.dg/graphite/interchange-5.c: Same. | |
1391 | * gcc.dg/graphite/interchange-6.c: Same. | |
1392 | * gcc.dg/graphite/interchange-7.c: Same. | |
1393 | * gcc.dg/graphite/interchange-8.c: Same. | |
1394 | * gcc.dg/graphite/interchange-9.c: Same. | |
1395 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1396 | ||
4d48441c SP |
1397 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1398 | ||
1399 | * gfortran.dg/graphite/id-19.f: New. | |
1400 | * gfortran.dg/graphite/pr14741.f90: New. | |
1401 | * gfortran.dg/graphite/pr41924.f90: New. | |
1402 | * gfortran.dg/graphite/run-id-2.f90: New. | |
1403 | ||
8d2220b2 SP |
1404 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1405 | ||
1406 | PR middle-end/42988 | |
1407 | * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND | |
1408 | to unknown_dependence. | |
1409 | (graphite_legal_transform_dr): Handle the unknown_dependence. | |
1410 | (graphite_carried_dependence_level_k): Same. | |
1411 | ||
45489e99 SP |
1412 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1413 | ||
1414 | * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/. | |
1415 | ||
28f9f145 SP |
1416 | 2010-02-05 Sebastian Pop <sebastian.pop@amd.com> |
1417 | Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
1418 | ||
1419 | PR middle-end/42637 | |
1420 | * graphite-dependences.c (build_lexicographical_constraint): Return | |
1421 | a union of dependence polyhedra. | |
1422 | (dependence_polyhedron_1): Adapt for build_lexicographical_constraint. | |
1423 | ||
45489e99 SP |
1424 | * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed. |
1425 | * gcc.dg/graphite/block-4.c: Same. | |
1426 | * gcc.dg/graphite/block-7.c: Same. | |
1427 | * gcc.dg/graphite/interchange-12.c: Same. | |
1428 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1429 | * gfortran.dg/graphite/interchange-1.f: XFAILed. | |
1430 | * gfortran.dg/graphite/interchange-3.f90: XFAILed. | |
1431 | * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637. | |
28f9f145 | 1432 | |
4d0bf08b SP |
1433 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1434 | ||
45489e99 | 1435 | * gcc.dg/graphite/interchange-12.c: Return 0 to avoid |
4d0bf08b SP |
1436 | the execution check to FAIL. This testcase is miscompiled by Graphite |
1437 | and the check should be re-enabled. | |
45489e99 SP |
1438 | * gcc.dg/graphite/interchange-mvt.c: Same. |
1439 | * gcc.dg/graphite/block-0.c: Same. | |
1440 | * gcc.dg/graphite/block-4.c: Same. | |
1441 | * gcc.dg/graphite/block-7.c: Same. | |
4d0bf08b | 1442 | |
54cf8879 SP |
1443 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1444 | ||
45489e99 SP |
1445 | * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. |
1446 | * gcc.dg/graphite/scop-0.c: Fix spaces. | |
1447 | * gfortran.dg/graphite/block-1.f90: Rewrite expected output. | |
1448 | * gfortran.dg/graphite/block-2.f: Same. | |
1449 | * gfortran.dg/graphite/block-3.f90: Same. | |
1450 | * gfortran.dg/graphite/block-4.f90: Same. | |
1451 | * gfortran.dg/graphite/interchange-1.f: Un-XFAILed. | |
1452 | * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
54cf8879 | 1453 | |
b5eb099f SP |
1454 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1455 | ||
1456 | * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and | |
1457 | PDDR_ORIGINAL_SCATTERING_P. | |
1458 | (pddr_is_empty): Rewritten. | |
1459 | (print_dependence_polyhedron_layout): New. | |
1460 | (print_pddr): New. | |
1461 | (debug_pddr): New. | |
1462 | (build_alias_set_powerset): Moved up. | |
1463 | (poly_drs_may_alias_p): Moved up. | |
1464 | (lexicographically_gt_p): Removed. | |
1465 | (build_lexicographically_gt_constraint): Renamed | |
1466 | build_lexicographical_constraint, reimplemented. | |
1467 | (dependence_polyhedron_1): Simplified parameters. | |
1468 | (dependence_polyhedron): Same. Keep along empty PDDRs | |
1469 | to make efficient use of the cache. | |
1470 | (reduction_dr_p): Compute the PBBs don't pass them as parameters. | |
1471 | (graphite_legal_transform_dr): Rewritten. | |
1472 | (graphite_legal_transform_bb): Pass fewer arguments to | |
1473 | graphite_legal_transform_dr. | |
1474 | (graphite_carried_dependence_level_k): Simplified implementation. | |
1475 | (dot_original_deps_stmt_1): Call dependence_polyhedron. | |
1476 | (dot_transformed_deps_stmt_1): Same. | |
1477 | (dot_original_deps): Same. | |
1478 | (dot_transformed_deps): Same. | |
1479 | * graphite-dependences.h (struct poly_ddr): Added a new field | |
1480 | original_scattering_p. | |
1481 | (PDDR_ORIGINAL_SCATTERING_P): New. | |
1482 | (print_pddr): Declared. | |
1483 | (debug_pddr): Declared. | |
1484 | * graphite-ppl.c: Clarify comment. | |
1485 | * sese.h (print_gimple_bb): Removed unused declaration. | |
1486 | (debug_gbb): Same. | |
1487 | ||
64630e61 SP |
1488 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1489 | ||
45489e99 SP |
1490 | * g++.dg/graphite/graphite.exp: Rewritten. |
1491 | * gcc.dg/graphite/graphite.exp: Rewritten. | |
1492 | * gfortran.dg/graphite/graphite.exp: Rewritten. | |
1493 | * gcc.dg/graphite/block-0.c: Added runtime test. | |
1494 | * gcc.dg/graphite/block-1.c: Same. | |
1495 | * gcc.dg/graphite/block-3.c: Same. | |
1496 | * gcc.dg/graphite/block-4.c: Same. | |
1497 | * gcc.dg/graphite/block-5.c: Same. | |
1498 | * gcc.dg/graphite/block-6.c: Same. | |
1499 | * gcc.dg/graphite/block-7.c: Same. | |
1500 | * gcc.dg/graphite/interchange-0.c: Same. | |
1501 | * gcc.dg/graphite/interchange-1.c: Same. | |
1502 | * gcc.dg/graphite/interchange-10.c: Same. | |
1503 | * gcc.dg/graphite/interchange-11.c: Same. | |
1504 | * gcc.dg/graphite/interchange-12.c: Same. | |
1505 | * gcc.dg/graphite/interchange-2.c: Same. | |
1506 | * gcc.dg/graphite/interchange-3.c: Same. | |
1507 | * gcc.dg/graphite/interchange-4.c: Same. | |
1508 | * gcc.dg/graphite/interchange-5.c: Same. | |
1509 | * gcc.dg/graphite/interchange-6.c: Same. | |
1510 | * gcc.dg/graphite/interchange-7.c: Same. | |
1511 | * gcc.dg/graphite/interchange-8.c: Same. | |
1512 | * gcc.dg/graphite/interchange-9.c: Same. | |
1513 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1514 | * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run. | |
64630e61 | 1515 | |
4c8f3c48 RU |
1516 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
1517 | ||
1518 | * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in | |
1519 | background. | |
1520 | ||
1521 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1522 | ||
1523 | * common.opt: Add -fgraphite-cloog-opts. | |
1524 | * graphite-clast-to-gimple.c (set_cloog_options): Same. | |
1525 | * opts.c (decode_options): Same. | |
1526 | ||
86e4d552 SP |
1527 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1528 | ||
45489e99 SP |
1529 | * gcc.dg/graphite/id-17.c: New. |
1530 | * gcc.dg/graphite/pr41888.c: New. | |
1531 | * gcc.dg/graphite/scop-22.c: New. | |
1532 | * gfortran.dg/graphite/pr40982.f90: New. | |
86e4d552 | 1533 | |
3070ac15 SP |
1534 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1535 | ||
1536 | * graphite-dependences.c: Clarify comments. | |
1537 | (build_pddr): Add an extra parameter direction. | |
1538 | (graphite_legal_transform_dr): Use build_pddr. | |
1539 | (dot_original_deps_stmt_1): Update use of build_pddr. | |
1540 | (dot_transformed_deps_stmt_1): Same. | |
1541 | (dot_original_deps): Same. | |
1542 | (dot_transformed_deps): Same. | |
1543 | ||
45489e99 SP |
1544 | * gcc.dg/graphite/interchange-12.c: New. |
1545 | * gcc.dg/graphite/block-7.c: New. | |
3070ac15 | 1546 | |
a7ed6c90 SP |
1547 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1548 | ||
1549 | * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr. | |
1550 | (pddr_transformed_scattering): Removed. | |
1551 | (graphite_legal_transform_dr): Use build_pddr. | |
1552 | (dot_original_deps_stmt_1): Same. | |
1553 | (dot_transformed_deps_stmt_1): Same. | |
1554 | (dot_original_deps): Same. | |
1555 | (dot_transformed_deps): Same. | |
1556 | ||
e65a7579 SP |
1557 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1558 | ||
1559 | * graphite-dependences.c (lexicographically_gt_p): Add comments. | |
1560 | (build_lexicographically_gt_constraint): Same. | |
1561 | (dependence_polyhedron_1): Same. | |
1562 | (dependence_polyhedron): Same. | |
1563 | ||
7cbd4c5e SP |
1564 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1565 | ||
1566 | * graphite-dependences.c (build_pairwise_scheduling_equality): Removed. | |
1567 | (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling. | |
1568 | (lexicographically_gt_p): Change type of direction to int. | |
1569 | (build_lexicographically_gt_constraint): Same. | |
1570 | (dependence_polyhedron_1): Same. | |
1571 | (dependence_polyhedron): Same. | |
1572 | (pddr_original_scattering): Use integers for direction. | |
1573 | (pddr_transformed_scattering): Same. | |
1574 | (graphite_legal_transform_dr): Same. | |
1575 | (graphite_carried_dependence_level_k): Same. | |
1576 | ||
429ba740 SP |
1577 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1578 | ||
1579 | * graphite-dependences.c (build_pairwise_constraint): Renamed | |
1580 | ppl_build_relation. Moved... | |
1581 | (dr_equality_constraints): Use ppl_build_relation. | |
1582 | (build_pairwise_scheduling_equality): Same. | |
1583 | (build_pairwise_scheduling_inequality): Same. | |
1584 | * graphite-ppl.c (ppl_build_relation): ...here. | |
1585 | * graphite-ppl.h (ppl_build_relation): Declared. | |
1586 | ||
3c7c0158 SP |
1587 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1588 | ||
1589 | PR middle-end/42681 | |
1590 | * graphite-clast-to-gimple.c (gloog_error): New static variable. | |
1591 | (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P. | |
1592 | Set gloog_error when such an expression failed to be built. | |
1593 | (translate_clast): Early return when gloog_error is set. | |
1594 | (gloog): Clear gloog_error. When gloog_error is set, call | |
1595 | set_ifsese_condition to enable the original code. Return the status | |
1596 | of the code generation based on gloog_error. | |
1597 | * sese.c (set_ifsese_condition): New. | |
1598 | * sese.h (set_ifsese_condition): Declared. | |
1599 | ||
45489e99 | 1600 | * g++.dg/graphite/pr42681.C: New. |
3c7c0158 | 1601 | |
a7bf45de SP |
1602 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1603 | ||
1604 | PR middle-end/42732 | |
1605 | * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and | |
1606 | rename_nb_iterations. | |
1607 | * sese.c (rename_variables_in_operand): New. | |
1608 | (rename_variables_in_expr): New. | |
1609 | (rename_nb_iterations): New. | |
1610 | (sese_adjust_liveout_phis): Update the rename_map. | |
1611 | * sese.h (rename_nb_iterations): Declared. | |
1612 | * tree-scalar-evolution.c (scev_reset_htab): New. | |
1613 | (scev_reset): Call scev_reset_htab. | |
1614 | * tree-scalar-evolution.h (scev_reset_htab): Declared. | |
1615 | ||
45489e99 | 1616 | * gfortran.dg/graphite/pr42732.f: New. |
a7bf45de | 1617 | |
e1496917 SP |
1618 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1619 | ||
1620 | PR middle-end/42393 | |
1621 | * graphite-clast-to-gimple.c: Fix formatting. | |
1622 | * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p. | |
1623 | (expr_defined_in_loop_p): New. | |
1624 | (add_loop_exit_phis): Also handle full expressions: remove from | |
1625 | the rename_map the expressions defined in the loop that we're closing. | |
1626 | ||
45489e99 SP |
1627 | * gfortran.dg/graphite/pr42393-1.f90: New. |
1628 | * gfortran.dg/graphite/pr42393.f90: Add new flags | |
e1496917 SP |
1629 | -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also |
1630 | make this testcase useful in the Graphite branch. | |
1631 | ||
c8ae0613 SP |
1632 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1633 | ||
1634 | * graphite-scop-detection.c (exclude_component_ref): Removed. | |
1635 | (is_simple_operand): Removed. | |
1636 | (stmt_simple_for_scop_p): Remove use of is_simple_operand. | |
1637 | ||
4e98c66c SP |
1638 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1639 | ||
1640 | PR middle-end/42221 | |
1641 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1642 | the array indexing of ADDR_EXPRs. | |
1643 | ||
45489e99 | 1644 | * gcc.dg/graphite/pr42221.c: New. |
4e98c66c | 1645 | |
fd4a56ff SP |
1646 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1647 | ||
1648 | PR middle-end/42521 | |
1649 | * graphite.c (graphite_finalize): Call scev_reset. | |
1650 | (graphite_transform_loops): Do not call scev_reset between the code | |
1651 | generation of scops. | |
1652 | ||
45489e99 | 1653 | * gcc.dg/graphite/pr42521.c: New. |
fd4a56ff | 1654 | |
eaffa762 SP |
1655 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1656 | ||
1657 | * graphite-interchange.c (memory_stride_in_loop): Renamed | |
1658 | pdr_stride_in_loop. | |
1659 | (memory_strides_in_loop): Renamed memory_strides_in_loop_1. | |
1660 | (memory_strides_in_loop): Memoize the memory strides per loop. | |
1661 | (lst_interchange_profitable_p): Do not initialize to zero the memory | |
1662 | strides. | |
1663 | * graphite-poly.h (struct lst): Add a field memory_strides. | |
1664 | (LST_LOOP_MEMORY_STRIDES): New. | |
1665 | (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1. | |
1666 | (free_lst): Clear LST_LOOP_MEMORY_STRIDES. | |
1667 | ||
bf69e754 SP |
1668 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1669 | ||
1670 | * graphite-interchange.c (memory_strides_in_loop_depth): Renamed | |
1671 | memory_strides_in_loop. Gather memory strides on a whole loop. | |
1672 | (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p. | |
1673 | (lst_interchange_profitable_p): Removed. | |
1674 | (lst_try_interchange_loops): Call lst_interchange_profitable_p. | |
1675 | ||
9fa29a09 SP |
1676 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1677 | ||
1678 | Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
1679 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
1680 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
1681 | Remove context_loop and level. | |
1682 | ||
11d6ea5e SP |
1683 | 2010-01-07 Richard Guenther <rguenther@suse.de> |
1684 | ||
1685 | PR tree-optimization/42641 | |
1686 | * sese.c (rename_map_elt_info): Use the SSA name version, do | |
1687 | not hash pointers. | |
1688 | ||
1689 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> | |
1690 | ||
1691 | * graphite-blocking.c (scop_do_block): Print "SCoP will be loop | |
1692 | blocked" only when both the strip mine and the interchange have | |
1693 | been applied. | |
1694 | ||
45489e99 SP |
1695 | * gcc.dg/graphite/block-2.c: Removed. |
1696 | * gcc.dg/graphite/block-3.c: Add scan pattern. | |
1697 | * gcc.dg/graphite/block-4.c: Same. | |
1698 | * gcc.dg/graphite/block-5.c: Same. | |
1699 | * gcc.dg/graphite/block-6.c: Same. | |
11d6ea5e | 1700 | |
556afcdc SP |
1701 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> |
1702 | ||
1703 | * graphite-clast-to-gimple.c (save_clast_name_index): Free slot | |
1704 | before allocating a new one. | |
1705 | (copy_renames): Check that slot is not NULL. | |
1706 | (mark_bb_with_pbb): Same. | |
1707 | (compute_cloog_iv_types_1): Same. | |
1708 | * graphite-interchange.c (lst_perfect_nestify): Free the before, | |
1709 | nest, and after LSTs. | |
1710 | (lst_try_interchange_loops): Same. | |
1711 | ||
e68c3c6c SP |
1712 | 2010-01-05 Sebastian Pop <sebastian.pop@amd.com> |
1713 | ||
1714 | PR middle-end/42178 | |
1715 | * graphite-interchange.c (lst_try_interchange_loops): Do not return | |
1716 | the before, nest, and after LSTs. | |
1717 | (lst_try_interchange): Removed. | |
1718 | (lst_interchange_select_inner): Do not iterate over the LSTs if they | |
1719 | were modified. | |
1720 | (lst_interchange_select_outer): Apply interchange on the outer loop | |
1721 | until there are no more changes in the inner loops. | |
1722 | ||
a84a556d SP |
1723 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1724 | ||
1725 | Revert patch fixing PR middle-end/42221. | |
1726 | ||
1727 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> | |
1728 | ||
1729 | PR middle-end/42180 | |
1730 | * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle | |
1731 | GIMPLE_CALL. | |
1732 | ||
45489e99 | 1733 | * gfortran.dg/graphite/pr42180.f90: Add compile flags. |
a84a556d | 1734 | |
b147df0b SP |
1735 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1736 | ||
1737 | PR middle-end/42180 | |
1738 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks | |
1739 | that contain only one statement. | |
1740 | ||
45489e99 | 1741 | * gfortran.dg/graphite/pr42180.f90: New. |
a84a556d | 1742 | |
ce20f9d6 SP |
1743 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1744 | ||
1745 | PR middle-end/42393 | |
45489e99 | 1746 | * gfortran.dg/graphite/pr42393.f90: New. |
ce20f9d6 | 1747 | |
d2a271ac SP |
1748 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1749 | ||
1750 | PR middle-end/42186 | |
45489e99 | 1751 | * gfortran.dg/graphite/pr42186.f90: New. |
d2a271ac | 1752 | |
403ebc7e SP |
1753 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1754 | ||
1755 | PR middle-end/42205 | |
1756 | * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt): | |
1757 | Insert the reduction copy in the same block as the phi node. | |
1758 | (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs. | |
1759 | ||
45489e99 SP |
1760 | * gcc.dg/graphite/pr42205-1.c: New. |
1761 | * gcc.dg/graphite/pr42205-2.c: New. | |
403ebc7e SP |
1762 | |
1763 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> | |
1764 | ||
1765 | PR middle-end/42221 | |
1766 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1767 | the array indexing of ADDR_EXPRs. | |
1768 | ||
45489e99 | 1769 | * gcc.dg/graphite/pr42221.c: New. |
403ebc7e | 1770 | |
070ba483 SP |
1771 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1772 | ||
1773 | PR middle-end/42178 | |
1774 | PR middle-end/42334 | |
1775 | * graphite-interchange.c (lst_try_interchange): Do not modify OUTER | |
1776 | index. Call lst_interchange_select_inner only once. | |
1777 | (lst_interchange_select_inner): Update use of lst_try_interchange. | |
1778 | (lst_interchange_select_outer): Update. | |
1779 | ||
1780 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1781 | ||
1782 | PR middle-end/42178 | |
1783 | PR middle-end/42334 | |
1784 | * graphite-interchange.c (lst_try_interchange): Do not increment the | |
1785 | the OUTER index when there is no AFTER kernel. Do not increment the | |
1786 | OUTER index for after processing the AFTER kernel. | |
1787 | (lst_interchange_select_inner): Call lst_try_interchange only on loops. | |
1788 | (lst_interchange_select_outer): Do not pass in a pointer to the OUTER | |
1789 | index. Do not pass to lst_interchange_select_inner the OUTER index. | |
1790 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1791 | ||
45489e99 | 1792 | * gfortran.dg/graphite/graphite.exp |
070ba483 | 1793 | (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all. |
45489e99 | 1794 | * gfortran.dg/graphite/interchange-1.f: Add comment. Clean |
070ba483 | 1795 | the graphite dump file. |
45489e99 SP |
1796 | * gfortran.dg/graphite/interchange-2.f: Same. |
1797 | * gfortran.dg/graphite/pr42334-1.f: New. | |
070ba483 SP |
1798 | |
1799 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1800 | ||
1801 | PR middle-end/42178 | |
1802 | PR middle-end/42334 | |
1803 | * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs | |
1804 | that are empty. | |
1805 | (lst_do_interchange_1): Renamed lst_interchange_select_inner. | |
1806 | (lst_try_interchange): Reimplemented. | |
1807 | (lst_interchange_select_inner): Same. | |
1808 | (lst_do_interchange): Renamed lst_interchange_select_outer. | |
1809 | Reimplemented. | |
1810 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1811 | ||
45489e99 SP |
1812 | * g++.dg/graphite/pr42130.C: Add -fgraphite-identity. |
1813 | * gcc.dg/graphite/block-0.c: Un-XFAILed. | |
1814 | * gcc.dg/graphite/pr42211.c: New. | |
1815 | * gfortran.dg/graphite/pr42334.f90: New. | |
070ba483 | 1816 | |
4b216ab0 SP |
1817 | 2009-12-14 Sebastian Pop <sebastian.pop@amd.com> |
1818 | ||
1819 | PR middle-end/42181 | |
1820 | * graphite-scop-detection.c (graphite_can_represent_scev): Handle more | |
1821 | carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR. | |
1822 | ||
45489e99 | 1823 | * gfortran.dg/graphite/pr42181.f90: New. |
4b216ab0 | 1824 | |
c880097d SP |
1825 | 2009-12-12 Sebastian Pop <sebpop@gmail.com> |
1826 | ||
1827 | PR middle-end/42284 | |
1828 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call | |
1829 | insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs. | |
1830 | (detect_commutative_reduction_arg): Simplified. | |
1831 | (detect_commutative_reduction): Early return when the argument of | |
1832 | the close phi is not of an SSA_NAME. | |
1833 | ||
45489e99 | 1834 | * gcc.dg/graphite/pr42284.c: New. |
c880097d SP |
1835 | |
1836 | 2009-12-11 Alexander Monakov <amonakov@ispras.ru> | |
1837 | ||
1838 | * dbgcnt.def (graphite_scop): New counter. | |
1839 | * graphite.c: Include dbgcnt.h | |
1840 | (graphite_transform_loops): Use new counter to limit transformations. | |
1841 | ||
d505015a SP |
1842 | 2009-12-08 Sebastian Pop <sebpop@gmail.com> |
1843 | ||
1844 | PR middle-end/42285 | |
1845 | * graphite-scop-detection.c (graphite_can_represent_init): Also | |
1846 | handle more complex MULT_EXPRs containing parameters by recursion | |
1847 | on the structure. | |
1848 | ||
45489e99 | 1849 | * gfortran.dg/graphite/pr42285.f90: New. |
d505015a SP |
1850 | |
1851 | 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
1852 | ||
45489e99 | 1853 | * g++.dg/graphite/pr42130.C: Fix type. |
d505015a | 1854 | |
ed807d06 AM |
1855 | 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org> |
1856 | ||
45489e99 SP |
1857 | * g++.dg/graphite/pr42130.C: Correct testcase. |
1858 | ||
1859 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
1860 | ||
1861 | * Merge from mainline (154493:154734). | |
1862 | ||
1863 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
1864 | ||
1865 | * Merge from mainline (151362:154491). | |
ed807d06 | 1866 | |
7c246f5e TG |
1867 | 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de> |
1868 | ||
1869 | * graphite-clast-to-gimple.c (try_mark_loop_parallel, | |
1870 | graphite_create_new_loop_guard, translate_clast_for): Fix comments. | |
1871 | ||
0dd91484 TG |
1872 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1873 | ||
1874 | PR middle-end/42130 | |
1875 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard, | |
1876 | translate_clast_for_loop): New. | |
1877 | (translate_clast_for): Add a condition around the loop, to do not | |
1878 | execute loops with zero iterations. | |
45489e99 SP |
1879 | * g++.dg/graphite/pr42130.C: New. |
1880 | * gcc.dg/graphite/pr35356-2.c: Adapt. | |
0dd91484 | 1881 | |
fd2d813d TG |
1882 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1883 | ||
1884 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
1885 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
1886 | Remove context_loop and level. | |
1887 | ||
9016166f TG |
1888 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1889 | ||
1890 | * graphite-clast-to-gimple.c (translate_clast_user, | |
1891 | translate_clast_for, translate_clast_guard): Simplify and move common | |
1892 | elements to translate_clast(). | |
1893 | (translate_clast): Simplify and get common elements. | |
1894 | ||
e1f9c1cd TG |
1895 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
1896 | ||
1897 | * graphite-clast-to-gimple.c (translate_clast_user, | |
1898 | translate_clast_for, translate_clast_guard): Split out of | |
1899 | translate_clast. | |
1900 | ||
7a521ff2 TG |
1901 | 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de> |
1902 | ||
1903 | * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index, | |
1904 | clast_name_to_index, save_clast_name_index, debug_clast_name_index, | |
1905 | debug_clast_name_indexes_1, debug_clast_name_indexes, | |
1906 | clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h. | |
1907 | (clast_name_to_gcc, clast_to_gcc_expression, | |
1908 | clast_to_gcc_expression_red, gcc_type_for_clast_expr, | |
1909 | gcc_type_for_clast_eq, graphite_translate_clast_equation, | |
1910 | graphite_create_guard_cond_expr, graphite_create_new_loop, | |
1911 | translate_clast): Add params_index. | |
1912 | (initialize_cloog_names): Create parameter strings from scratch, do | |
1913 | not reference other strings. | |
1914 | (create_params_index): New. | |
1915 | (gloog): Initialize params_index. | |
1916 | * graphite-scop-detection (free_scops_1): Removed. | |
1917 | (limit_scops): Use normal free_scops. | |
1918 | * graphite-sese-to-poly.c (save_var_names): Removed. | |
1919 | (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES | |
1920 | and SESE_PARAMS_INDEX. | |
1921 | * sese.c (new_sese, free_sese): Dito. | |
1922 | * sese.h (struct sese): Remove params_index, params_names. | |
1923 | (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed. | |
1924 | ||
ca11b093 SP |
1925 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
1926 | ||
1927 | Revert the following patch from 2009-09-14: | |
1928 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
1929 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
1930 | * graphite-clast-to-gimple.c: Same. | |
1931 | * graphite-dependences.c: Same. | |
1932 | * graphite-interchange.c: Same. | |
1933 | * graphite-poly.c: Same. | |
1934 | * graphite-scop-detection.c: Same. | |
1935 | * graphite-sese-to-poly.c: Same. | |
1936 | * graphite.c: Same. | |
1937 | * lambda-code.c: Same. | |
1938 | * matrix-reorg.c: Same. | |
1939 | * tree-data-ref.c: Same. | |
1940 | * tree-if-conv.c: Same. | |
1941 | * tree-loop-distribu: Same.: Same. | |
1942 | * tree-loop-linear.c: Same. | |
1943 | * tree-parloops.c: Same. | |
1944 | * tree-predcom.c: Same. | |
1945 | * tree-vect-patterns.c: Same. | |
1946 | ||
8a9e9475 SP |
1947 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
1948 | ||
1949 | Revert patch from 2009-09-14. | |
1950 | * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite | |
1951 | passes at -O1 and below. | |
1952 | ||
4bf4e169 SP |
1953 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1954 | ||
1955 | PR middle-end/40281 | |
45489e99 | 1956 | * gcc.dg/graphite/pr40281.c: New. |
4bf4e169 SP |
1957 | |
1958 | * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride | |
1959 | evolutions should not variate in inner loops. | |
1960 | ||
12aec731 SP |
1961 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1962 | ||
1963 | PR middle-end/42050 | |
45489e99 | 1964 | * gfortran.dg/graphite/pr42050.f90: New. |
12aec731 | 1965 | |
aec12420 SP |
1966 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1967 | ||
1968 | * graphite-interchange.c (memory_strides_in_loop_depth): New. | |
1969 | (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth. | |
1970 | ||
25e20d33 SP |
1971 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1972 | ||
1973 | * graphite-blocking.c (scop_do_block): New. | |
1974 | * graphite-poly.c (apply_poly_transforms): Call scop_do_block. | |
1975 | * graphite-poly.h (scop_do_block): Declared. | |
1976 | ||
e3bde9f4 SP |
1977 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1978 | ||
1979 | * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter | |
1980 | depth is the loop nesting depth in the LST. Call psct_dynamic_dim | |
1981 | to transform depth into the time_depth before calling | |
1982 | pbb_number_of_iterations_at_time. | |
1983 | (lst_do_strip_mine): Use a scalar variable instead of recomputing | |
1984 | lst_depth. | |
1985 | ||
27e432be SP |
1986 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
1987 | ||
1988 | Reverted the patch for "scattering permutations" from 2009-10-28. | |
1989 | ||
1990 | * graphite-poly.c (print_permutation): New. | |
1991 | (debug_permutation): New. | |
1992 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
1993 | (free_poly_bb): Free PBB_PERMUTATION. | |
1994 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
1995 | (struct pbb_permutation_elt): New. | |
1996 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
1997 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
1998 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
1999 | (new_pbb_permutation_elt): New. | |
2000 | (pbb_permutation_elt_free): New. | |
2001 | (struct poly_bb): Add field permutation. | |
2002 | (PBB_PERMUTATION): New. | |
2003 | (print_permutation): Declared. | |
2004 | (debug_permutation): Declared. | |
2005 | ||
2bc529bf KT |
2006 | 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> |
2007 | ||
2008 | * graphite-interchange.c (build_partial_difference): New. | |
2009 | (memory_stride_in_loop): Refactored the computation of | |
2010 | equality constraints into build_partial_difference function. | |
2011 | Added support for debugging stride computations. | |
2012 | ||
8c54631d SP |
2013 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2014 | ||
2015 | * graphite-clast-to-gimple.c (gloog): Free if_region, | |
2016 | if_region->true_region, and if_region->region. | |
2017 | * sese.c (if_region_set_false_region): Free if_region->false_region. | |
2018 | (create_if_region_on_edge): Do not use GGC_NEW. | |
2019 | (move_sese_in_condition): Remove useless initialization. | |
2020 | ||
7b7f2ca7 SP |
2021 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2022 | ||
2023 | * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters | |
2024 | for the loops created by the loop distribution. Do not modify the | |
2025 | input LSTs. | |
2026 | (lst_try_interchange_loops): Same. Use a temporary LST for the | |
2027 | transformed schedule. Call lst_update_scattering before data | |
2028 | dependence analysis. | |
2029 | (lst_try_interchange): Pass an extra parameter INDEX. | |
2030 | (lst_do_interchange_1): New. | |
2031 | (lst_do_interchange): Call lst_do_interchange_1. | |
2032 | (scop_do_interchange): Call lst_update_scattering. | |
2033 | * graphite-poly.c (apply_poly_transforms): Do not call | |
2034 | lst_update_scattering. | |
2035 | * graphite-poly.h (lst_pred): New. | |
2036 | (lst_succ): New. | |
2037 | (lst_find_first_pbb): Return NULL when not found. | |
2038 | (lst_empty_p): New. | |
2039 | (lst_insert_in_sequence): Allow LST1 to be NULL. | |
2040 | (lst_replace): New. | |
2041 | (lst_substitute_3): New. | |
2042 | * gcc.dg/graphite/interchange-1.c: XFail. | |
2043 | * gcc.dg/graphite/interchange-8.c: XFail. | |
2044 | * gcc.dg/graphite/interchange-11.c: XFail. | |
2045 | ||
6119e7d5 SP |
2046 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2047 | ||
2048 | * graphite-interchange.c (lst_perfectly_nested_p): New. | |
2049 | (lst_perfect_nestify): New. | |
2050 | (lst_try_interchange_loops): Call store_lst_schedule, | |
2051 | lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule. | |
2052 | (scop_do_interchange): Avoid redundant legality test. | |
2053 | Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE. | |
2054 | * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering. | |
2055 | * graphite-poly.h (psct_static_dim): New. | |
2056 | (lst_dewey_number_at_depth): New. | |
2057 | (lst_find_pbb): Restructured. | |
2058 | (lst_find_first_pbb): Restructured. | |
2059 | (lst_find_last_pbb): New. | |
2060 | (lst_contains_p): New. | |
2061 | (lst_contains_pbb): New. | |
2062 | (lst_create_nest): New. | |
2063 | (lst_remove_from_sequence): New. | |
2064 | (pbb_update_scattering): New. | |
2065 | (lst_update_scattering_under): New. | |
2066 | (lst_update_scattering_seq): New. | |
2067 | (lst_update_scattering): New. | |
2068 | (lst_insert_in_sequence): New. | |
2069 | (lst_distribute_lst): New. | |
2070 | (lst_remove_all_before_including_pbb): New. | |
2071 | (lst_remove_all_before_excluding_pbb): New. | |
2072 | ||
431f3f22 SP |
2073 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2074 | ||
2075 | * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice | |
2076 | get_loop_exit_edges. | |
2077 | ||
4c768046 SP |
2078 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2079 | ||
2080 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed. | |
2081 | ||
5fa8514e SP |
2082 | 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2083 | ||
2084 | * graphite-poly.c (print_permutation): New. | |
2085 | (debug_permutation): New. | |
2086 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2087 | (free_poly_bb): Free PBB_PERMUTATION. | |
2088 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2089 | (struct pbb_permutation_elt): New. | |
2090 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2091 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2092 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2093 | (new_pbb_permutation_elt): New. | |
2094 | (pbb_permutation_elt_free): New. | |
2095 | (struct poly_bb): Add field permutation. | |
2096 | (PBB_PERMUTATION): New. | |
2097 | (print_permutation): Declared. | |
2098 | (debug_permutation): Declared. | |
2099 | ||
6c6f84d7 SP |
2100 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2101 | ||
2102 | * graphite-clast-to-gimple.c (gloog): Do not call | |
2103 | sese_reset_aux_in_loops. | |
2104 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an | |
2105 | extra argument for domains. Do not use loop->aux. | |
2106 | (build_scop_iteration_domain): Initialize and free domains, pass it | |
2107 | to build_loop_iteration_domains and extract the information from | |
2108 | domains. Do not use loop->aux. | |
2109 | * sese.c (sese_reset_aux_in_loops): Removed. | |
2110 | * sese.h (sese_reset_aux_in_loops): Removed. | |
2111 | ||
585b3e19 SP |
2112 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2113 | ||
2114 | * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. | |
2115 | (dependency_in_loop_p): Same. | |
2116 | (translate_clast): Do not use loop->aux. Initialize | |
2117 | loop->can_be_parallel. | |
2118 | (mark_loops_parallel): Removed. | |
2119 | * graphite-clast-to-gimple.h (mark_loops_parallel): Removed. | |
2120 | * graphite.c (free_aux_in_new_loops): Removed. | |
2121 | (graphite_finalize): Do not call free_aux_in_new_loops. | |
2122 | (graphite_transform_loops): Do not call mark_loops_parallel. | |
2123 | ||
2124 | 2009-10-26 Li Feng <nemokingdom@gmail.com> | |
a7ed27ac LF |
2125 | |
2126 | * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed. | |
2127 | (translate_clast): Pass an extra parameter LEVEL. | |
2128 | Call get_scattering_level. | |
2129 | * graphite-clast-to-gimple.h (get_scattering_level): New. | |
2130 | ||
8e6ef139 SP |
2131 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2132 | ||
2133 | * cfgloop.c (alloc_loop): Initialize loop->single_iv. | |
2134 | * cfgloop.h (struct loop): New field single_iv. | |
2135 | ||
2136 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use | |
2137 | loop->aux anymore: use loop->single_iv. | |
2138 | (graphite_loop_normal_form): Moved... | |
2139 | (build_graphite_loop_normal_form): Removed. | |
2140 | (gloog): Do not call build_graphite_loop_normal_form. | |
2141 | (free_aux_in_new_loops): Moved... | |
2142 | (mark_loops_parallel): Restructure. | |
2143 | * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare. | |
2144 | * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here. | |
2145 | (scop_canonicalize_loops): New. | |
2146 | (build_poly_scop): Call scop_canonicalize_loops. | |
2147 | * graphite.c (free_aux_in_new_loops): ...here. | |
2148 | ||
e6dd91b2 SP |
2149 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2150 | ||
2151 | * g++.dg/graphite/graphite.exp: Add the same rules as in | |
2152 | gcc.dg/graphite/graphite.exp. | |
2153 | ||
47fb473f SP |
2154 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2155 | ||
2156 | * g++.dg/graphite/id-1.C: New. | |
2157 | ||
63858ac6 SP |
2158 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2159 | ||
2160 | * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra | |
2161 | argument base_name. | |
2162 | (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array. | |
2163 | (rewrite_phi_out_of_ssa): Same. | |
2164 | (rewrite_cross_bb_scalar_deps): Same. | |
2165 | (translate_scalar_reduction_to_array): Same. | |
2166 | ||
decfe536 SP |
2167 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2168 | ||
2169 | * graphite-sese-to-poly.c (build_scop_drs): Disable call to | |
2170 | dump_alias_graphs. | |
2171 | ||
0d5ef2a9 SP |
2172 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2173 | ||
2174 | * graphite-sese-to-poly.c (dump_alias_graphs): New. | |
2175 | (build_scop_drs): Call dump_alias_graphs. | |
2176 | ||
f70de156 SP |
2177 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2178 | ||
2179 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE, | |
2180 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2181 | (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE, | |
2182 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2183 | * graphite-poly.h (free_lst): New. | |
2184 | (store_lst_schedule): Free SCOP_SAVED_SCHEDULE. | |
2185 | (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE. | |
2186 | ||
74715a9b SP |
2187 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2188 | ||
2189 | * graphite-poly.h (struct scop): Add a field saved_schedule. | |
2190 | (SCOP_SAVED_SCHEDULE): New. | |
2191 | (store_lst_schedule): New. | |
2192 | (restore_lst_schedule): New. | |
2193 | (store_scattering): Call store_lst_schedule. | |
2194 | (restore_scattering): Call restore_lst_schedule. | |
2195 | ||
fb00d28e SP |
2196 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2197 | ||
2198 | * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting. | |
2199 | (pdr_add_alias_set): Same. | |
2200 | (build_poly_dr): Same. | |
2201 | (build_alias_set_optimal_p): Same. | |
2202 | (build_base_obj_set_for_drs): Same. Do not store the result of | |
2203 | graphds_dfs. | |
2204 | ||
917f481a SP |
2205 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2206 | ||
2207 | * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize | |
2208 | all_components_are_cliques to 1. | |
2209 | ||
2b178a5f LF |
2210 | 2009-10-20 Li Feng <nemokingdom@gmail.com> |
2211 | ||
2212 | * graphite-sese-to-poly.c (free_data_refs_aux): Update to free | |
2213 | the new structure. | |
2214 | (pdr_add_alias_set): Update retrieving alias_set_num. | |
2215 | (build_poly_dr): Update retrieving dr_base_object_set. | |
2216 | (partition_drs_to_sets): Remove. | |
2217 | (build_alias_set_optimal_p): New. | |
2218 | (build_alias_set_for_drs): Rename. | |
2219 | (build_scop_drs): Update. | |
2220 | * graphite-sese-to-poly.h (struct base_alias_pair): New. | |
2221 | (ALIAS_SET_INDEX): Remove. | |
2222 | (BASE_OBJECT_SET_INDEX): Remove. | |
2223 | ||
e8af4842 SP |
2224 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2225 | ||
2226 | * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL. | |
2227 | ||
3899a0b2 SP |
2228 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2229 | ||
2230 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer | |
2231 | loop upper bounds for 1-element arrays at end of structures. | |
2232 | * tree-flow.h (array_at_struct_end_p): Declared. | |
2233 | * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore. | |
2234 | ||
e34e5835 SP |
2235 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2236 | ||
2237 | * g++.dg/graphite/pr41305.C: New. | |
2238 | ||
07b0d0e2 AM |
2239 | 2009-10-20 Alexander Monakov <amonakov@ispras.ru> |
2240 | ||
2241 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize | |
2242 | construction of parameter constraints from loop iteration analysis. | |
2243 | * gcc.dg/graphite/run-id-2.c: New test. | |
2244 | ||
67255edf SP |
2245 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2246 | ||
2247 | * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma | |
2248 | and new_cstr. | |
2249 | ||
14ba996b SP |
2250 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2251 | ||
2252 | * graphite-dependences.c (dependence_polyhedron_1): Remove | |
2253 | unused gdim dimensions from the DDR polyhedron. | |
2254 | ||
4454141a SP |
2255 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2256 | ||
2257 | * graphite-dependences.c (pddr_transformed_scattering): New. | |
2258 | (dot_original_deps_stmt_1): New. | |
2259 | (dot_transformed_deps_stmt_1): New. | |
2260 | (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and | |
2261 | dot_transformed_deps_stmt_1. | |
2262 | (dot_original_deps): New. | |
2263 | (dot_transformed_deps): New. | |
2264 | (dot_deps_1): Call dot_original_deps and dot_transformed_deps. | |
2265 | ||
dd61070d SP |
2266 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2267 | ||
2268 | * graphite-dependences.c (reduction_dr_1): Remove wrong | |
2269 | assert: reduction BBs can have multiple reduction writes | |
4454141a | 2270 | to memory. interchange-3.f90 is an example. |
dd61070d | 2271 | |
65421bcc SP |
2272 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2273 | ||
2274 | * gfortran.dg/graphite/interchange-3.f90: New. | |
2275 | ||
3e9f43ee SP |
2276 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2277 | ||
2278 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
2279 | ||
16bf8ab1 SP |
2280 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2281 | ||
2282 | * graphite-dependences.c (dependence_polyhedron_1): Add the | |
2283 | context to the dependence polyhedron. | |
2284 | ||
d422adfa SP |
2285 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2286 | ||
2287 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize | |
2288 | PBB_PDR_DUPLICATES_REMOVED. | |
2289 | (new_poly_bb): Same. | |
2290 | ||
62e475c5 SP |
2291 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2292 | ||
2293 | * graphite-sese-to-poly.c (find_scop_parameters): Initialize | |
2294 | SCOP_CONTEXT. | |
2295 | (build_loop_iteration_domains): Extract bounds on parameters | |
2296 | based on the data size. | |
2297 | (build_scop_context): Do not initialize SCOP_CONTEXT; | |
2298 | add new constraints. | |
2299 | ||
3ecbce7e SP |
2300 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2301 | ||
2302 | * graphite-ppl.c (ppl_min_for_le_polyhedron): New. | |
2303 | * graphite-ppl.h (graphite-ppl.h): Declared. | |
2304 | ||
04863400 SP |
2305 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2306 | ||
2307 | * graphite-ppl.c (ppl_print_linear_expr): New. | |
2308 | (debug_ppl_linear_expr): New. | |
2309 | * graphite-ppl.h (ppl_print_linear_expr): Declared. | |
2310 | (debug_ppl_linear_expr): Declared. | |
2311 | ||
009150e1 SP |
2312 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2313 | ||
2314 | * graphite-interchange.c: Fix comments. | |
2315 | * gcc.dg/graphite/block-1.c: Fix comments. | |
2316 | ||
9b196c93 SP |
2317 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2318 | ||
2319 | * gcc.dg/graphite/interchange-7.c: Un-XFAILed. | |
2320 | * gcc.dg/graphite/interchange-9.c: Un-XFAILed. | |
2321 | ||
caa675f8 SP |
2322 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2323 | ||
2324 | Reapply the patch from Alexander Monakov that disappeared during | |
2325 | the last merges from trunk. | |
2326 | ||
2327 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> | |
2328 | ||
2329 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2330 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2331 | ||
92d92abb SP |
2332 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2333 | ||
2334 | * graphite-interchange.c (memory_stride_in_loop): The depth | |
2335 | argument corresponds to a dynamic time dimension, so use | |
2336 | psct_dynamic_dim to refer to the transformed scattering dimension. | |
2337 | ||
23159c56 SP |
2338 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2339 | ||
2340 | * graphite-interchange.c (memory_stride_in_loop): Fix comments. | |
2341 | ||
5c6c42c9 SP |
2342 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2343 | ||
2344 | * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the | |
2345 | root of the LST. | |
2346 | * graphite-interchange.c (lst_do_interchange): Avoid interchanging | |
2347 | the root of the LST. | |
2348 | * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost | |
2349 | fake loop. | |
2350 | (print_lst): Print the root of LST in a different format. | |
2351 | * graphite-poly.h (lst_depth): Adjust to include the root of the LST. | |
2352 | ||
f58be90e SP |
2353 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2354 | ||
2355 | * graphite-poly.c (print_scop): Fix pretty printing of a SCoP. | |
2356 | ||
4e4ee197 SP |
2357 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2358 | ||
2359 | * doc/passes.texi: Document the Graphite infrastructure. | |
2360 | ||
6c4499b6 SP |
2361 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2362 | ||
2363 | * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge. | |
2364 | (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts, | |
2365 | and check the SSA representation. | |
2366 | ||
2367 | * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193. | |
2368 | ||
8e49fe91 SP |
2369 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2370 | ||
2371 | * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR. | |
2372 | ||
bb2b2dfc SP |
2373 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2374 | ||
2375 | * gcc.dg/graphite/interchange-11.c: New. | |
2376 | ||
e7ed4a64 SP |
2377 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2378 | ||
2379 | * gcc.dg/graphite/interchange-8.c: Enable loop interchange. | |
2380 | ||
d7f25aa6 SP |
2381 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2382 | ||
2383 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2384 | Add -fno-loop-strip-mine and -fno-loop-interchange. | |
2385 | (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and | |
2386 | -fno-loop-strip-mine. | |
2387 | * gfortran.dg/graphite/graphite.exp: Same. | |
2388 | ||
6231cf49 SP |
2389 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2390 | ||
2391 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2392 | Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK. | |
2393 | (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed | |
2394 | DEFAULT_FLAGS_GRAPHITE_IDENTITY. | |
2395 | (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed | |
2396 | DEFAULT_FLAGS_GRAPHITE_INTERCHANGE. | |
2397 | (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed | |
2398 | DEFAULT_FLAGS_GRAPHITE_SCOP. | |
2399 | (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID. | |
2400 | (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE. | |
2401 | ||
2b7c09a8 SP |
2402 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2403 | ||
2404 | * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments. | |
2405 | ||
b0c7a278 KT |
2406 | 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2407 | Sebastian Pop <sebastian.pop@amd.com> | |
2408 | ||
2409 | * graphite-interchange.c (build_linearized_memory_access): Pass an | |
2410 | offset as parameter. | |
2411 | (memory_stride_in_loop): Include transform scattering in the | |
2412 | access functions to be able to querry the strides in the | |
2413 | transformed loops. | |
2414 | (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim, | |
2415 | not the psct_iterator_dim. | |
2416 | ||
13ae6f91 SP |
2417 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2418 | ||
2419 | * graphite-blocking.c (pbb_do_strip_mine): Removed. | |
2420 | (lst_do_strip_mine_loop): New. | |
2421 | (lst_do_strip_mine): New. | |
2422 | (scop_do_strip_mine): Call lst_do_strip_mine. | |
2423 | * graphite-poly.h (lst_add_loop_under_loop): New. | |
2424 | (lst_find_first_pbb): New. | |
2425 | ||
c0fe753b SP |
2426 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2427 | ||
2428 | * graphite-poly.c (loop_to_lst): Fix LST creation. | |
2429 | ||
8d75ec87 TG |
2430 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> |
2431 | ||
45489e99 | 2432 | * gcc.dg/graphite/id-15.c: (8 * 8) replaced with |
8d75ec87 TG |
2433 | sizeof(unsigned long) to make it run on 32bit systems. |
2434 | ||
2435 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
2436 | ||
45489e99 | 2437 | * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not |
8d75ec87 TG |
2438 | SEGFAULT on 32bit. |
2439 | ||
2e5a7cbf RU |
2440 | 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
2441 | ||
8d75ec87 TG |
2442 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix |
2443 | Comment. | |
2e5a7cbf RU |
2444 | (write_alias_graph_to_ascii_dot): New. |
2445 | (write_alias_graph_to_ascii_ecc): Ditto. | |
8d75ec87 TG |
2446 | (partition_drs_to_sets): Add testing of optimality of current method |
2447 | which assigns alias numbers according to DFS Comopnent number. used | |
2448 | as heuristic for the upcoming ECC algorithm. | |
2e5a7cbf RU |
2449 | (build_scop_drs): Write to file also with the ecc and dot format. |
2450 | ||
1e82de2a SP |
2451 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2452 | ||
2453 | * gfortran.dg/graphite/interchange-1.f: XFail. | |
2454 | ||
9bf13085 SP |
2455 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2456 | ||
2457 | * graphite.c (graphite_initialize): Do not handle functions with | |
2458 | more than 100 basic blocks. | |
2459 | ||
e797c5f2 SP |
2460 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2461 | ||
2462 | * graphite-blocking.c (pbb_do_strip_mine): Use | |
2463 | PARAM_LOOP_BLOCK_TILE_SIZE. | |
2464 | ||
bfa00f48 SP |
2465 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2466 | ||
2467 | * graphite-poly.c (dot_lst_1): New. | |
2468 | (dot_lst): New. | |
2469 | * graphite-poly.h (dot_lst): Declared. | |
2470 | ||
3c7bdeb8 SP |
2471 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2472 | ||
2473 | * graphite-dependences.c (dot_deps_stmt_1): New. | |
2474 | (dot_deps_stmt): New. | |
2475 | * graphite-dependences.h (dot_deps_stmt): Declared. | |
2476 | ||
c7dc2fab SP |
2477 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2478 | ||
2479 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do | |
2480 | not replace cross BB scalar dependences ending on PHI nodes. | |
2481 | (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes. | |
2482 | ||
24c79709 SP |
2483 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2484 | ||
2485 | * graphite-poly.c (apply_poly_transforms): Implement the high | |
2486 | level driver for flag_loop_block. | |
45489e99 | 2487 | * opts.c (decode_options): Enable flag_loop_block at -O2. |
24c79709 SP |
2488 | * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for |
2489 | flag_loop_block. | |
2490 | ||
2491 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add | |
2492 | -floop-block. | |
2493 | * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2494 | Add -floop-block. | |
2495 | ||
a0517b76 SP |
2496 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2497 | ||
2498 | * graphite-poly.h (lst_find_pbb): New. | |
2499 | (find_lst_loop): New. | |
2500 | ||
9d077835 SP |
2501 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2502 | ||
2503 | * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH. | |
2504 | * graphite-poly.h (struct scop): Remove dep_graph field. | |
2505 | (SCOP_DEP_GRAPH): Removed. | |
2506 | ||
75b63a91 SP |
2507 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2508 | ||
2509 | * graphite-poly.h (copy_lst): Do full copy of LST. | |
2510 | ||
7cc4ff8d SP |
2511 | 2009-10-07 Sebastian Pop <sebastian.pop@amd.com> |
2512 | ||
2513 | * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi | |
2514 | when the loop stride is zero. | |
2515 | ||
2516 | * gcc.dg/graphite/id-16.c: New. | |
2517 | ||
60d2a8c3 SP |
2518 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2519 | ||
2520 | * graphite-dependences.c (reduction_dr_1): New. | |
2521 | (reduction_dr_p): New. | |
2522 | (graphite_legal_transform_dr): Call reduction_dr_p. | |
2523 | (reduction_ddr): Renamed reduction_ddr_p. | |
2524 | * graphite-poly.h (same_pdr_p): New. | |
2525 | (number_of_write_pdrs): New. | |
2526 | * graphite-sese-to-poly.c (nb_data_writes_in_bb): New. | |
2527 | (split_reduction_stmt): Do not split reduction statements | |
2528 | when there are no writes to memory. | |
2529 | (translate_scalar_reduction_to_array_for_stmt): Insert the | |
2530 | memory reduction statement just after the scalar reduction statement. | |
2531 | ||
2532 | * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c. | |
2533 | Un-XFAIL-ed. | |
2534 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed. | |
2535 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed. | |
2536 | ||
95baeff8 SP |
2537 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2538 | ||
2539 | * graphite-interchange.c (lst_apply_interchange): New. | |
2540 | (lst_interchange_profitable_p): New. | |
2541 | (lst_try_interchange_loops): New. | |
2542 | (lst_try_interchange): New. | |
2543 | (lst_do_interchange): New. | |
2544 | (pbb_do_interchange): Removed. | |
2545 | (scop_do_interchange): Call lst_do_interchange. | |
2546 | ||
a36d12e2 SP |
2547 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2548 | ||
2549 | * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and | |
2550 | SCOP_TRANSFORMED_SCHEDULE. | |
2551 | (loop_to_lst): New. | |
2552 | (scop_to_lst): New. | |
2553 | (print_lst): New. | |
2554 | (debug_lst): New. | |
2555 | * graphite-poly.h (lst_p): New. | |
2556 | (struct lst): New. | |
2557 | (LST_LOOP_P): New. | |
2558 | (LST_LOOP_FATHER): New. | |
2559 | (LST_PBB): New. | |
2560 | (LST_SEQ): New. | |
2561 | (scop_to_lst): Declared. | |
2562 | (print_lst): Declared. | |
2563 | (debug_lst): Declared. | |
2564 | (new_lst_loop): New. | |
2565 | (new_lst_stmt): New. | |
2566 | (copy_lst): New. | |
2567 | (lst_depth): New. | |
2568 | (lst_dewey_number): New. | |
2569 | (struct scop): Add original_schedule and transformed_schedule fields. | |
2570 | (SCOP_ORIGINAL_SCHEDULE): New. | |
2571 | (SCOP_TRANSFORMED_SCHEDULE): New. | |
2572 | * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst. | |
2573 | ||
a0dd1440 SP |
2574 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2575 | ||
2576 | * graphite-dependences.c (reduction_ddr): New. | |
2577 | (graphite_legal_transform_bb): Call reduction_ddr. | |
2578 | * graphite-poly.c (new_poly_bb): Pass a new bool parameter. | |
2579 | Initialize PBB_IS_REDUCTION. | |
2580 | * graphite-poly.h (struct poly_bb): New bool field is_reduction. | |
2581 | (PBB_IS_REDUCTION): New. | |
2582 | (new_poly_bb): Update declaration. | |
2583 | * graphite-scop-detection.h (build_scop_bbs): Removed. | |
2584 | (nb_reductions_in_loop): Removed. | |
2585 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap | |
2586 | parameter for reductions. | |
2587 | (try_generate_gimple_bb): Update call to new_poly_bb. | |
2588 | (build_scop_bbs_1): Same. | |
2589 | (build_scop_bbs): Same. | |
2590 | (gsi_for_phi_node): New. | |
2591 | (scalar_close_phi_node_p): Remove gcc_assert. | |
2592 | (split_reduction_stmt): New. | |
2593 | (is_reduction_operation_p): New. | |
2594 | (phi_contains_arg): New. | |
2595 | (follow_ssa_with_commutative_ops): New. | |
2596 | (detect_commutative_reduction_arg): New. | |
2597 | (detect_commutative_reduction_assign): New. | |
2598 | (follow_inital_value_to_phi): New. | |
2599 | (edge_initial_value_for_loop_phi): New. | |
2600 | (initial_value_for_loop_phi): New. | |
2601 | (detect_commutative_reduction): New. | |
2602 | (translate_scalar_reduction_to_array_for_stmt): New. | |
2603 | (insert_copyout): New. | |
2604 | (insert_copyin): New. | |
2605 | (translate_scalar_reduction_to_array): New. | |
2606 | (rewrite_commutative_reductions_out_of_ssa_close_phi): New. | |
2607 | (rewrite_commutative_reductions_out_of_ssa_loop): New. | |
2608 | (rewrite_commutative_reductions_out_of_ssa): New. | |
2609 | (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa. | |
2610 | * sese.h (split_region_for_bb): New. | |
2611 | ||
2612 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math. | |
2613 | * gcc.dg/graphite/interchange-1.c: Fix format. | |
2614 | * gcc.dg/graphite/interchange-10.c: New. | |
2615 | ||
db7e9485 SP |
2616 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2617 | ||
2618 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove | |
2619 | buggy assert. | |
2620 | ||
5dcc64d9 SP |
2621 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2622 | ||
2623 | * graphite-sese-to-poly.c (scev_analyzable_p): New. | |
2624 | (rewrite_cross_bb_scalar_dependence): New. | |
2625 | (rewrite_cross_bb_scalar_deps): New. | |
2626 | (rewrite_reductions_out_of_ssa): Use bb_in_sese_p. | |
2627 | Call rewrite_cross_bb_scalar_deps. | |
2628 | ||
947121b8 SP |
2629 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2630 | ||
2631 | * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed. | |
2632 | (insert_out_of_ssa_copy): Directly use gsi_after_labels and | |
2633 | gsi_for_stmt. | |
2634 | ||
d48e288d SP |
2635 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2636 | ||
2637 | * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. | |
2638 | * graphite-interchange.c (pbb_do_interchange): Same. | |
2639 | * graphite-poly.c (print_scattering_function): Same. | |
2640 | (debug_pdrs): Same. | |
2641 | * graphite-poly.h (pbb_loop): New. | |
2642 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. | |
2643 | ||
d17286f6 SP |
2644 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2645 | ||
2646 | * graphite-scop-detection.c (limit_scops): Do not build poly_bbs. | |
2647 | ||
ee03cd20 SP |
2648 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2649 | ||
2650 | * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, | |
2651 | so don't pass a pointer to it. | |
2652 | (build_alias_set_for_drs): Same. | |
2653 | (build_base_obj_set_for_drs): Same. | |
2654 | (build_scop_drs): Same. | |
2655 | ||
888beba1 LF |
2656 | 2009-09-26 Li Feng <nemokingdom@gmail.com> |
2657 | ||
2658 | * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file | |
2659 | the alias graph of data references. | |
2660 | ||
cd43e5d7 LF |
2661 | 2009-09-25 Li Feng <nemokingdom@gmail.com> |
2662 | ||
2663 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. | |
2664 | (build_scop_drs): When debugging, write the alias graph to file, | |
2665 | otherwise, should be disabled. | |
2666 | ||
45489e99 SP |
2667 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2668 | ||
2669 | * Merge from mainline (151310:151361). | |
2670 | ||
2671 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2672 | ||
2673 | * Merge from mainline (151171:151310). | |
2674 | ||
2675 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2676 | ||
2677 | * Merge from mainline (151171:151806). | |
2678 | ||
2679 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2680 | ||
2681 | * Revert the last commit. | |
2682 | ||
2683 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2684 | ||
2685 | * Merge from mainline (151171:151819). | |
2686 | ||
aeda6535 SP |
2687 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2688 | ||
2689 | * graphite-scop-detection.c (stmt_simple_memref_p): Removed. | |
2690 | (is_simple_operand): Remove call to stmt_simple_memref_p. | |
2691 | (stmt_simple_for_scop_p): Update call to is_simple_operand. | |
2692 | ||
8b6b8570 DE |
2693 | 2009-09-17 David Edelsohn <edelsohn@gnu.org> |
2694 | ||
45489e99 SP |
2695 | * gcc.dg/graphite/interchange-mvt.c: New File. |
2696 | * gcc.dg/graphite/scop-dsyrk.c: New File. | |
2697 | * gcc.dg/graphite/scop-dsyr2k.c: New File. | |
2698 | * gcc.dg/graphite/scop-mvt.c: New File. | |
2699 | * gcc.dg/graphite/scop-sor.c: New File. | |
8b6b8570 | 2700 | |
1825f9a2 LF |
2701 | 2009-09-17 Li Feng <nemokingdom@gmail.com> |
2702 | ||
1825f9a2 LF |
2703 | * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. |
2704 | (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. | |
2705 | (graphite_carried_dependence_level_k): Ditto. | |
2706 | * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. | |
2707 | * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. | |
2708 | (new_poly_dr): Adjust declaration. | |
2709 | * graphite-sese-to-poly.c (free_data_refs_aux): New. | |
2710 | (free_gimple_bb): Added free_data_refs_aux. | |
2711 | (build_poly_dr): Add dr_base_object_set. | |
2712 | (partition_drs_to_sets): New. | |
2713 | (dr_same_base_object_p): New. | |
2714 | (build_alias_set_for_drs): New. | |
2715 | (build_base_object_set_for_drs): New. | |
2716 | (build_scop_drs): Add build_base_obj_set_for_drs. | |
2717 | * graphite-sese-to-poly.h: Added #define for alias set number index and | |
2718 | base object set index. | |
2719 | * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. | |
2720 | * libgomp/testsuite/libgomp.graphite/pr4118.c: New. | |
2721 | ||
ac90803f SP |
2722 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> |
2723 | ||
2724 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2725 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2726 | ||
54fc808a SP |
2727 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2728 | ||
2729 | * graphite-sese-to-poly.c (struct irp_data): Removed. | |
2730 | (idx_record_params): Removed. | |
2731 | (find_params_in_bb): Scan for parameters the access functions; don't | |
2732 | parse the tree representation. | |
2733 | ||
e88e021f SP |
2734 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2735 | ||
2736 | * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite | |
2737 | passes at -O1 and below. | |
2738 | ||
3690f8d7 SP |
2739 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2740 | ||
2741 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
2742 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
2743 | * graphite-clast-to-gimple.c: Same. | |
2744 | * graphite-dependences.c: Same. | |
2745 | * graphite-interchange.c: Same. | |
2746 | * graphite-poly.c: Same. | |
2747 | * graphite-scop-detection.c: Same. | |
2748 | * graphite-sese-to-poly.c: Same. | |
2749 | * graphite.c: Same. | |
2750 | * lambda-code.c: Same. | |
2751 | * matrix-reorg.c: Same. | |
2752 | * tree-data-ref.c: Same. | |
2753 | * tree-if-conv.c: Same. | |
2754 | * tree-loop-distribu: Same.: Same. | |
2755 | * tree-loop-linear.c: Same. | |
2756 | * tree-parloops.c: Same. | |
2757 | * tree-predcom.c: Same. | |
2758 | * tree-vect-patterns.c: Same. | |
2759 | ||
2495a183 SP |
2760 | 2009-09-02 Sebastian Pop <sebastian.pop@amd.com> |
2761 | ||
2762 | Partially revert the previous patch, except the following. | |
2763 | * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass | |
2764 | as parameters the operands of the not expression. | |
2765 | ||
20179b0d SP |
2766 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2767 | ||
2768 | * tree-scalar-evolution.c (instantiate_scev_assign): New. | |
2769 | Do not call analyze_scalar_evolution on assignments. | |
2770 | (instantiate_scev_phi): Call analyze_scalar_evolution. | |
2771 | (instantiate_scev_name): Call instantiate_scev_assign and | |
2772 | instantiate_scev_phi. | |
2773 | (instantiate_scev_not): Adapted to pass as parameters the operands | |
2774 | of the not expression. | |
2775 | ||
ffa34f4b SP |
2776 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2777 | ||
2778 | * tree-scalar-evolution.c (instantiate_scev_binary): Adapted | |
2779 | to pass as parameters the operands of the binary expression. | |
2780 | ||
4b9d48a1 SP |
2781 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2782 | ||
2783 | * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed | |
2784 | instantiate_scev_not. Handle NEGATE_EXPR. | |
2785 | (instantiate_scev_r): Handle NEGATE_EXPR. | |
2786 | ||
9e5dc77f SP |
2787 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2788 | ||
2789 | * tree-scalar-evolution.c (instantiate_scev_1): Renamed | |
2790 | instantiate_scev_r. | |
2791 | (instantiate_scev_r): Move code in instantiate_scev_2 | |
2792 | and instantiate_scev_1. | |
2793 | ||
d814176c SP |
2794 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2795 | ||
2796 | * tree-scalar-evolution.c (instantiate_scev_3): New. | |
2797 | (instantiate_scev_1): Move code in instantiate_scev_3. | |
2798 | ||
ec6636eb SP |
2799 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2800 | ||
2801 | * tree-scalar-evolution.c (instantiate_scev_poly): New. | |
2802 | (instantiate_scev_1): Move code in instantiate_scev_poly. | |
2803 | ||
7ec0665d SP |
2804 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2805 | ||
2806 | * tree-scalar-evolution.c (instantiate_scev_bitnot): New. | |
2807 | (instantiate_scev_1): Move code in instantiate_scev_bitnot. | |
2808 | ||
9c382ce9 SP |
2809 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2810 | ||
2811 | * tree-scalar-evolution.c (instantiate_scev_convert): New. | |
2812 | (instantiate_scev_1): Move code in instantiate_scev_convert. | |
2813 | ||
15fda317 SP |
2814 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2815 | ||
2816 | * tree-scalar-evolution.c (instantiate_scev_binary): New. | |
2817 | (instantiate_scev_1): Move code in instantiate_scev_binary. | |
2818 | ||
320f5a78 SP |
2819 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2820 | ||
2821 | * tree-scalar-evolution.c (instantiate_scev_name): New. | |
2822 | (instantiate_scev_1): Move code in instantiate_scev_name. | |
2823 | ||
2824 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> | |
2825 | ||
2826 | * Merge from mainline (150992:151171). | |
2827 | ||
45489e99 SP |
2828 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2829 | ||
2830 | * opts.c (decode_options): Enable flag_loop_interchange at -O2. | |
2831 | ||
211694b6 SP |
2832 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2833 | ||
2834 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
2835 | pbb_remove_duplicate_pdrs. | |
2836 | * graphite-poly.c (can_collapse_pdr): Removed. | |
2837 | (pdr_find_duplicate): Removed. | |
2838 | (can_collapse_pdrs): New. | |
2839 | (pbb_remove_duplicate_pdrs): New. | |
2840 | (new_poly_dr): Do not look for duplicates. | |
2841 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
2842 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
2843 | (pbb_remove_duplicate_pdrs): Declared. | |
2844 | ||
7bd2a8a7 SP |
2845 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2846 | ||
2847 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
2848 | the strides by multiplying by PDR_NB_REFS. | |
2849 | * graphite-poly.c (can_collapse_pdr): New. | |
2850 | (pdr_find_duplicate): New. | |
2851 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
2852 | Initialize PDR_NB_REFS. | |
2853 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
2854 | (PDR_NB_REFS): New. | |
2855 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
2856 | ||
2857 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
2858 | ||
2859 | Revert one of the previous commits: | |
2860 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
2861 | the computation of symmetric data dependence relations. | |
2862 | (dependency_between_pbbs_p): Same. | |
2863 | ||
93b2db87 SP |
2864 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2865 | ||
2866 | PR middle-end/40965 | |
2867 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
2868 | any transform. | |
2869 | ||
d8eeb078 SP |
2870 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2871 | ||
2872 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
2873 | for read-read dependence relations. | |
2874 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
2875 | (pdr_read_p): New. | |
2876 | (pdr_write_p): New. | |
2877 | (pdr_may_write_p): New. | |
2878 | ||
e6dec0fb SP |
2879 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2880 | ||
2881 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
2882 | (struct poly_dr): Same. | |
2883 | (new_poly_dr): Same. | |
2884 | * graphite-poly.c (new_poly_dr): Same. | |
2885 | ||
baf4b881 KT |
2886 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2887 | Sebastian Pop <sebastian.pop@amd.com> | |
2888 | ||
2889 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
2890 | pbb_strip_mine_time_depth. Changed the implementation so that | |
2891 | transformation is expressed as a transformation on | |
2892 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
2893 | scheduling format is preserved. | |
2894 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
2895 | iteration number of a given time (scattering) dimension, | |
2896 | and not on a original loop depth dimension. | |
2897 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
2898 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
2899 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
2900 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
2901 | (pbb_nb_dynamic_scattering_transform): New. | |
2902 | (psct_dynamic_dim): New. | |
2903 | ||
059a5f9f KT |
2904 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2905 | ||
2906 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
2907 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
2908 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
2909 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
2910 | (memory_stride_in_loop): Same. | |
2911 | ||
afae0207 SP |
2912 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
2913 | ||
2914 | * graphite-dependences.c (pddr_original_scattering): New. | |
2915 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
2916 | (dot_deps_1): New. | |
2917 | (dot_deps): New. | |
2918 | * graphite-dependences.h (dot_deps): Declared. | |
2919 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
2920 | (print_pdr): Print PDR_ID. | |
2921 | * graphite-poly.h (struct poly_dr): Add field id. | |
2922 | (PDR_ID): New. | |
2923 | (pbb_index): New. | |
2924 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
2925 | ||
f8e0bb8b SP |
2926 | 2009-08-22 Sebastian Pop <sebastian.pop@amd.com> |
2927 | ||
2928 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
2929 | not delete the original dependence relation. | |
2930 | ||
2931 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
2932 | ||
2933 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
2934 | the computation of symmetric data dependence relations. | |
2935 | (dependency_between_pbbs_p): Same. | |
2936 | ||
e37f165f SP |
2937 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> |
2938 | ||
2939 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
2940 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
2941 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
2942 | (free_poly_ddr): New. | |
2943 | (pddr_is_empty): New. | |
2944 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
2945 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
2946 | Remove fprintfs. | |
2947 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
2948 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
2949 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
2950 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
2951 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
2952 | (PDRP_SINK): Renamed PDDR_SINK. | |
2953 | (PDRP_DDP): Renamed PDDR_DDP. | |
2954 | (PDDR_KIND): New. | |
2955 | (free_poly_ddr): Declared. | |
2956 | * graphite-poly.c (new_scop): Use the new hash function names. | |
2957 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
2958 | into original_pddrs. | |
2959 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
2960 | ||
2961 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
2962 | ||
2963 | * Merge from mainline (150764:150992). | |
2964 | ||
45e76e9f SP |
2965 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
2966 | ||
2967 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
2968 | bounds with LT_EXPR to make niter analysis more precise on code | |
2969 | generated by Graphite. | |
2970 | ||
66b466c3 SP |
2971 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
2972 | ||
2973 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
2974 | (graphite_legal_transform_bb): Same. | |
2975 | (poly_drs_may_alias_p): Same. | |
2976 | ||
f263917c SP |
2977 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
2978 | ||
2979 | PR middle-end/40981 | |
2980 | * graphite-ppl.c (ppl_max_for_le): Correct the use of | |
2981 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
2982 | ||
2983 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2984 | ||
2985 | * graphite-poly.c (print_pbb): Print PBB index. | |
2986 | ||
2987 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2988 | ||
2989 | * Merge from mainline (r150672:150764). | |
2990 | ||
2991 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
2992 | ||
2993 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
2994 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
2995 | * graphite-ppl.c (ppl_max_for_le): ... here. | |
2996 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
2997 | ||
2998 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> | |
2999 | ||
3000 | * Merge from mainline (r150372:150672). | |
3001 | ||
30de1632 SP |
3002 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3003 | ||
3004 | PR middle-end/40980 | |
3005 | * sese.c (convert_for_phi_arg): New. | |
3006 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
3007 | ||
45489e99 | 3008 | * gfortran.dg/graphite/id-17.f: New. |
30de1632 | 3009 | |
8c31ebfa SP |
3010 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3011 | ||
3012 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
3013 | unknown subscript upper bounds. | |
3014 | ||
45489e99 | 3015 | * gcc.dg/graphite/interchange-6.c: Un-XFAIL. |
8c31ebfa | 3016 | |
fb9fb290 SP |
3017 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3018 | Pranav Garg <pranav.garg2107@gmail.com> | |
3019 | ||
3020 | * graphite-interchange.c (gather_access_strides): Removed. | |
3021 | (ppl_max_for_le): New. | |
3022 | (build_linearized_memory_access): New. | |
3023 | (memory_stride_in_loop): New. | |
3024 | (pbb_interchange_profitable_p): Reimplemented. | |
3025 | * graphite-ppl.h (ppl_new_id_map): New. | |
3026 | (ppl_interchange): New. | |
3027 | ||
45489e99 | 3028 | * gcc.dg/graphite/interchange-6.c: XFAILed. |
fb9fb290 | 3029 | |
312aea7f SP |
3030 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3031 | ||
3032 | * graphite-interchange.c (compute_subscript): Removed. | |
3033 | (compute_array_size_cstr): Removed. | |
3034 | (compute_array_size_poly): Removed. | |
3035 | (compute_array_size): Removed. | |
3036 | (gather_access_strides_poly): Removed. | |
3037 | (gather_access_strides): Empty. | |
3038 | ||
25d7cc15 SP |
3039 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3040 | ||
3041 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
3042 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
3043 | (graphite_legal_transform_dr): Same. | |
3044 | (graphite_carried_dependence_level_k): Same. | |
3045 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
3046 | Initialize PDR_NB_SUBSCRIPTS. | |
3047 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
3048 | PDR_NB_SUBSCRIPTS. | |
3049 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
3050 | (PDR_NB_SUBSCRIPTS): New. | |
3051 | (pdr_nb_subscripts): Removed. | |
3052 | (pdr_dim): Simplified. | |
3053 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
3054 | with PDR_NB_SUBSCRIPTS. | |
3055 | ||
66096911 SP |
3056 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3057 | ||
3058 | * graphite-interchange.c (compute_array_size): Remove use of | |
3059 | PDR_DATA_CONTAINER. | |
3060 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
3061 | Do not initialize PDR_DATA_CONTAINER. | |
3062 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
3063 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
3064 | (PDR_DATA_CONTAINER): Removed. | |
3065 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
3066 | PDR_DATA_CONTAINER. | |
3067 | (build_poly_dr): Same. | |
3068 | ||
273c5dd3 SP |
3069 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3070 | ||
45489e99 | 3071 | * gcc.dg/graphite/interchange-9.c: New. |
273c5dd3 | 3072 | |
7491e5f0 KT |
3073 | 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3074 | Sebastian Pop <sebastian.pop@amd.com> | |
3075 | ||
3076 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
3077 | copy of the dependence polyhedron. Free the temporary objects. | |
3078 | (graphite_carried_dependence_level_k): Free unused objects before | |
3079 | returning. | |
3080 | ||
45489e99 SP |
3081 | * gcc.dg/graphite/interchange-1.c: XFAILed. |
3082 | * gcc.dg/graphite/interchange-2.c: XFAILed. | |
3083 | * gcc.dg/graphite/interchange-3.c: XFAILed. | |
3084 | * gcc.dg/graphite/interchange-4.c: XFAILed. | |
3085 | * gcc.dg/graphite/interchange-7.c: XFAILed. | |
7491e5f0 | 3086 | |
f4648ed1 SP |
3087 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3088 | ||
3089 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
3090 | Early return without analyzing the data dependences if no | |
3091 | transform has been done. Call restore_scattering if the transform | |
3092 | is not legal. | |
3093 | (graphite-interchange.c): Same. | |
3094 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
3095 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
3096 | (apply_poly_transforms): Do not gcc_assert that | |
3097 | the transform is legal. | |
3098 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3099 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
3100 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
3101 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3102 | * graphite-poly.h (struct poly_scattering): New. | |
3103 | (struct poly_bb): Add original, transformed, and saved fields. | |
3104 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
3105 | and nb_scattering_transform fields. | |
3106 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
3107 | (poly_scattering_new): New. | |
3108 | (poly_scattering_free): New. | |
3109 | (poly_scattering_copy): New. | |
3110 | (store_scattering_pbb): New. | |
3111 | (store_scattering): New. | |
3112 | (restore_scattering_pbb): New. | |
3113 | (restore_scattering): New. | |
3114 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3115 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
273c5dd3 | 3116 | |
e31a5bd4 SP |
3117 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3118 | ||
3119 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
3120 | (print_scop): Same. | |
3121 | ||
8e88f9fd SP |
3122 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3123 | ||
3124 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
3125 | * graphite.c: Include predict.h. | |
3126 | (graphite_finalize): Call tree_estimate_probability. | |
3127 | * predict.c (predict_loops): Do not call scev_initialize and | |
3128 | scev_finalize. | |
3129 | (tree_estimate_probability_bb): New. | |
3130 | (tree_estimate_probability): Do not initialize loops: move that | |
3131 | code to the driver. Call tree_estimate_probability_bb. | |
3132 | (tree_estimate_probability_driver): New. | |
3133 | (pass_profile): Use tree_estimate_probability_driver. | |
3134 | * predict.h (tree_estimate_probability): Declared. | |
3135 | ||
87d4d0ee SP |
3136 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3137 | ||
3138 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
3139 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
3140 | TV_GRAPHITE_DATA_DEPS. | |
3141 | (dependency_between_pbbs_p): Same. | |
3142 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
3143 | ||
3144 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3145 | ||
3146 | * Merge from mainline (r149952:150372). | |
3147 | ||
2abae5f1 SP |
3148 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
3149 | ||
3150 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
3151 | * graphite-blocking.c: Same. | |
3152 | * graphite-clast-to-gimple.c: Same. | |
3153 | * graphite-dependences.c: Same. | |
3154 | * graphite-poly.c: Same. | |
3155 | * graphite-poly.h: Same. | |
3156 | * graphite-ppl.c: Same. | |
3157 | * graphite-scop-detection.c: Same. | |
3158 | * graphite-sese-to-poly.c: Same. | |
3159 | * graphite.c: Same. | |
3160 | ||
3161 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3162 | ||
3163 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
3164 | (remove_simple_copy_phi): New. | |
3165 | (remove_invariant_phi): New. | |
3166 | (simple_copy_phi_p): New. | |
3167 | (reduction_phi_p): New. | |
3168 | (gsi_for_ssa_name_def): New. | |
3169 | (insert_out_of_ssa_copy): New. | |
3170 | (insert_out_of_ssa_copy_on_edge): New. | |
3171 | (create_zero_dim_array): New. | |
3172 | (scalar_close_phi_node_p): New. | |
3173 | (rewrite_close_phi_out_of_ssa): New. | |
3174 | (rewrite_phi_out_of_ssa): New. | |
3175 | (rewrite_reductions_out_of_ssa): New. | |
3176 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
3177 | ||
45489e99 SP |
3178 | * gcc.dg/graphite/id-11.c: New. |
3179 | * gcc.dg/graphite/id-15.c: New. | |
3180 | * gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
3181 | * gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
3182 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
3183 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
3184 | * gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
3185 | * gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
3186 | * gfortran.dg/graphite/id-13.f: New. | |
3187 | * gfortran.dg/graphite/id-5.f: New. | |
2abae5f1 SP |
3188 | |
3189 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3190 | ||
3191 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
3192 | check that nb_reductions_in_loop is zero. | |
3193 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
3194 | reduction phi nodes. | |
3195 | (nb_reductions_in_loop): Removed. | |
3196 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
3197 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
3198 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
3199 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
3200 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
3201 | ||
3202 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3203 | ||
3204 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
3205 | statements that have an empty iteration domain. | |
45489e99 | 3206 | * gfortran.dg/graphite/id-16.f: New. |
2abae5f1 SP |
3207 | |
3208 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3209 | ||
3210 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
3211 | chrec_dont_know when the result is not above instantiate_below. | |
3212 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
3213 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
3214 | the tree has a known scalar evolution. | |
45489e99 SP |
3215 | * gfortran.dg/graphite/id-14.f: New. |
3216 | * gfortran.dg/graphite/id-15.f: New. | |
2abae5f1 SP |
3217 | |
3218 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3219 | ||
3220 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
3221 | insert_gsi. | |
3222 | (rename_variables): Keep inserting renames after the ones already | |
3223 | inserted. | |
3224 | ||
3225 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3226 | ||
3227 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
3228 | (graphite_sort_dominated_info): New. | |
3229 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
3230 | (build_scop_scattering): Fix comment. | |
3231 | ||
3232 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3233 | ||
3234 | * graphite.c (graphite_finalize): Call print_loops instead of | |
3235 | dump_function_to_file. | |
45489e99 SP |
3236 | * gcc.dg/graphite/graphite.exp: Fix formatting. |
3237 | * gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
2abae5f1 | 3238 | loops generated in the graphite output file. |
45489e99 SP |
3239 | * gcc.dg/graphite/pr35356-2.c: New. |
3240 | * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
3241 | * gfortran.dg/graphite/id-12.f: New. | |
2abae5f1 SP |
3242 | |
3243 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3244 | ||
45489e99 | 3245 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: |
2abae5f1 SP |
3246 | Remove 2 XFAIL. |
3247 | ||
3248 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3249 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3250 | ||
3251 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
3252 | alias set number build alias in ACCESSES polyhedron. | |
3253 | (build_alias_set_for_drs): New. | |
3254 | (build_pbb_drs): Added build_alias_set_for_drs. | |
3255 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
3256 | (graphite_carried_dependence_level_k): Check alias information | |
3257 | before building polyhedron. | |
3258 | ||
3259 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3260 | ||
3261 | * Makefile.in (lambda-code.o): Fix formatting. | |
3262 | ||
3263 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3264 | ||
3265 | * Merge from mainline (r149350-149952) | |
3266 | ||
3267 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3268 | ||
3269 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
3270 | before interchange to prepare for loop blocking. | |
3271 | ||
3272 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3273 | ||
3274 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
3275 | transformation. | |
3276 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
3277 | done in apply_poly_transforms. | |
3278 | ||
3279 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3280 | ||
3281 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
3282 | Replace RES parameter with *RES. | |
3283 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
3284 | instead of value of RES. | |
3285 | ||
3286 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3287 | ||
3288 | * graphite.c (graphite_finalize): Fix comment. | |
3289 | (graphite_transform_loops): Reset scev info after code generation | |
3290 | of each scop. | |
3291 | ||
3292 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3293 | ||
3294 | * graphite.c (graphite_finalize): Call scev_reset. | |
3295 | ||
3296 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3297 | ||
3298 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
3299 | GBB_CLOOG_IV_TYPES hash table twice. | |
3300 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
3301 | (add_condition_to_domain): Clear GMP values. | |
3302 | ||
3303 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3304 | ||
3305 | * graphite-dependences.c: Fix formatting. | |
3306 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
3307 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
3308 | * graphite-sese-to-poly.c: Fix formatting. | |
3309 | * graphite.c (graphite_transform_loops): Create the hash table | |
3310 | after the early return. | |
3311 | ||
3312 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3313 | ||
45489e99 SP |
3314 | * gcc.dg/graphite/id-14.c: New. |
3315 | * gcc.dg/graphite/pr40157.c: New. | |
3316 | * gfortran.dg/graphite/id-11.f: New. | |
2abae5f1 SP |
3317 | |
3318 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3319 | ||
3320 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
3321 | (build_poly_scop): Return false when there are no pbbs within | |
3322 | loops to avoid to pass to cloog scops with no loops. | |
3323 | ||
3324 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3325 | ||
3326 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
3327 | useless test "i % 2". | |
3328 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
3329 | (build_poly_dr): Same. | |
3330 | * graphite.c (graphite_transform_loops): Restructure. | |
3331 | ||
3332 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
3333 | ||
3334 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
3335 | reduction_list parameter. | |
3336 | (rewrite_all_phi_nodes_with_iv): Same. | |
3337 | (canonicalize_loop_ivs): Same. | |
3338 | * tree-parloops.c (struct brli): Removed. | |
3339 | (build_reduction_list_info): Removed. | |
3340 | (build_new_reduction): New. | |
3341 | (analyze_reduction_list): Removed. | |
3342 | (gather_scalar_reductions): Find reductions instead of phi | |
3343 | nodes that can't be canonicalized. | |
3344 | (try_create_reduction_list): Remove reduction_list parameter. | |
3345 | (gen_parallel_loop): Same. | |
3346 | (parallelize_loops): Remove analyze_reductions variable, | |
3347 | initialization and free. | |
3348 | Change reduction_list htab initialization to reduction_info | |
3349 | elements instead of ssa names. | |
3350 | Call try_create_reduction_list and gen_parallel_loop without | |
3351 | analyzed_reduction argument. | |
3352 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
3353 | canonicalize_loop_ivs with one less argument. | |
3354 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
3355 | ||
3356 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3357 | ||
3358 | * graphite-dependences.c (new_poly_dr_pair): New. | |
3359 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
3360 | (new_poly_dr_pair): New. | |
3361 | (eq_poly_dr_pair_p): New. | |
3362 | (hash_poly_dr_pair_p): New. | |
3363 | * graphite-dependences.h (struct poly_dr_pair): New. | |
3364 | (eq_poly_dr_pair_p): Declared. | |
3365 | (hash_poly_dr_pair_p): Declared. | |
3366 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
3367 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
3368 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
3369 | * Makefile.in (graphite-poly.o): Add dependence on | |
3370 | graphite-dependences.h. | |
3371 | ||
3372 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3373 | ||
3374 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
3375 | polynomials of degree > 1 pass to Graphite. | |
3376 | * tree-chrec.c (scev_is_linear_expression): Call | |
3377 | evolution_function_is_affine_multivariate_p. | |
45489e99 | 3378 | * gfortran.dg/graphite/id-10.f90: New. |
2abae5f1 SP |
3379 | |
3380 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3381 | ||
3382 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
3383 | Instantiate scevs varying in outer loops. | |
45489e99 | 3384 | * gfortran.dg/graphite/id-9.f: Correct testcase. |
2abae5f1 SP |
3385 | |
3386 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3387 | ||
3388 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
3389 | redundant constraint. | |
3390 | ||
3391 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3392 | ||
45489e99 SP |
3393 | * gcc.dg/graphite/graphite.exp: Fix comments. |
3394 | * gfortran.dg/graphite/graphite.exp: Trigger actions | |
2abae5f1 | 3395 | based on the file names as in the C testsuite. |
45489e99 SP |
3396 | * gfortran.dg/graphite/block-1.f90: Fix patterns. |
3397 | * gfortran.dg/graphite/block-2.f: Same. | |
3398 | * gfortran.dg/graphite/block-3.f90: Same. | |
3399 | * gfortran.dg/graphite/block-4.f90: Same. | |
3400 | * gfortran.dg/graphite/id-1.f90: Same. | |
3401 | * gfortran.dg/graphite/id-2.f90: Same. | |
3402 | * gfortran.dg/graphite/id-3.f90: Same. | |
3403 | * gfortran.dg/graphite/id-4.f90: Same. | |
3404 | * gfortran.dg/graphite/id-6.f: Same. | |
3405 | * gfortran.dg/graphite/id-9.f: Same. | |
3406 | * gfortran.dg/graphite/interchange-1.f: Same. | |
3407 | * gfortran.dg/graphite/interchange-2.f: Same. | |
3408 | * gfortran.dg/graphite/scop-1.f: Same. | |
2abae5f1 SP |
3409 | |
3410 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3411 | ||
3412 | * sese.c (expand_scalar_variables_call): New. | |
3413 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
3414 | ||
3415 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3416 | ||
45489e99 | 3417 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: |
2abae5f1 | 3418 | Expect to see the pattern twice. |
45489e99 SP |
3419 | * gcc.dg/graphite/interchange-0.c: Un-XFAIL. |
3420 | * gcc.dg/graphite/interchange-5.c: Same. | |
3421 | * gcc.dg/graphite/interchange-6.c: Same. | |
2abae5f1 SP |
3422 | |
3423 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3424 | ||
45489e99 SP |
3425 | * gcc.dg/graphite/id-10.c: New. |
3426 | * gcc.dg/graphite/id-12.c: New. | |
3427 | * gfortran.dg/graphite/id-7.f: New. | |
3428 | * gfortran.dg/graphite/id-8.f: New. | |
2abae5f1 SP |
3429 | |
3430 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3431 | ||
3432 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
3433 | zero. | |
3434 | ||
3435 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3436 | ||
3437 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
3438 | ||
3439 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3440 | ||
3441 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
3442 | ||
3443 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3444 | ||
3445 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
3446 | building PDR subscripts. | |
3447 | ||
3448 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3449 | ||
3450 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
3451 | computation of array sizes. | |
3452 | ||
3453 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3454 | ||
3455 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
3456 | ||
3457 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3458 | ||
3459 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
3460 | build_pairwise_constraint, dr_equality_constraints, | |
3461 | build_pairwise_scheduling_equality, | |
3462 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
3463 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
3464 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
3465 | Move from NNC_Polyhedron to C_Polyhedron. | |
3466 | * graphite-interchange.c (compute_array_size_poly, | |
3467 | gather_access_strides): Dito. | |
3468 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
3469 | free_scop, pbb_number_of_iterations): Dito. | |
3470 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
3471 | pbb_dim_iter_domain, struct scop): Dito. | |
3472 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
3473 | new_Cloog_Domain_from_ppl_Polyhedron, | |
3474 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
3475 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
3476 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
3477 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
3478 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
3479 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
3480 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
3481 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
3482 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
3483 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
3484 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
3485 | build_scop_iteration_domain, build_poly_dr): Dito | |
3486 | ||
3487 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3488 | ||
45489e99 | 3489 | * gcc.dg/graphite/graphite.exp: Added a rule to execute |
2abae5f1 | 3490 | run-id-*.c files. |
45489e99 | 3491 | * gcc.dg/graphite/run-id-1.c: New. |
2abae5f1 SP |
3492 | |
3493 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3494 | ||
3495 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
3496 | positivity constraint on the symbolic number of iterations. | |
3497 | ||
3498 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3499 | ||
3500 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
3501 | ||
3502 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3503 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3504 | ||
3505 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
3506 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
3507 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
3508 | (free_scop): Free SCOP_CONTEXT. | |
3509 | (print_scop_context): New. | |
3510 | (print_scop): Call print_scop_context. | |
3511 | (debug_scop_context): New. | |
3512 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
3513 | (struct scop): Added field context. | |
3514 | (SCOP_CONTEXT): New. | |
3515 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
3516 | (build_scop_context): New. | |
3517 | (build_poly_scop): Call build_scop_context. | |
3518 | ||
3519 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3520 | ||
3521 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
3522 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
3523 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
3524 | * graphite-ppl.h: Include double-int.h and tree.h. | |
3525 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
3526 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
3527 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
3528 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
3529 | ||
3530 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3531 | ||
3532 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
3533 | POINTER_PLUS_EXPR for pointer types. | |
3534 | (clast_to_gcc_expression): Same. | |
3535 | ||
3536 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3537 | ||
3538 | * graphite-poly.c (print_scattering_function): Early return when | |
3539 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
3540 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
3541 | ||
3542 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
3543 | ||
3544 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
3545 | to fix bootstrap. | |
3546 | ||
3547 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
3548 | ||
3549 | * tree-parloops.c (analyze_reduction_list): Change return | |
3550 | value to void. | |
3551 | (try_create_reduction_list): Move the call to | |
3552 | analyze_reduction_list to the beginining. | |
3553 | Call reduction_phi with analyzed_reductions as argument | |
3554 | instead of reduction_list. | |
3555 | ||
3556 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3557 | ||
3558 | * Merge from mainline (r148296:149346) | |
3559 | ||
3560 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3561 | ||
3562 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
3563 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
3564 | check that the initial value does not contain multiplications of | |
3565 | parameters. | |
3566 | (stmt_has_simple_data_refs_p): New. | |
3567 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
3568 | (is_simple_operand): Fix formatting. | |
3569 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
3570 | ||
3571 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3572 | ||
45489e99 | 3573 | * gcc.dg/graphite/id-13.c: New. |
2abae5f1 SP |
3574 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call |
3575 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
3576 | (scan_tree_for_params_right_scev): Add extra assert. | |
3577 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
3578 | (idx_record_params): Use scalar_evolution_in_region. | |
3579 | (find_params_in_bb): Same. | |
3580 | (find_scop_parameters): Same. | |
3581 | (build_loop_iteration_domains): Same. | |
3582 | (create_linear_expr_from_tree): Same. | |
3583 | * sese.c (scalar_evolution_in_region): New. | |
3584 | * sese.h (scalar_evolution_in_region): Declared. | |
3585 | (defined_in_sese_p): New. | |
3586 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
3587 | static anymore. | |
3588 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
3589 | Declared. | |
3590 | ||
3591 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3592 | ||
3593 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
3594 | TREE_DATA_REF_H also implies SCEV_H. | |
3595 | ||
3596 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3597 | ||
3598 | * graphite-poly.c (print_scop_params): New. | |
3599 | (print_scop): Call print_scop_params. | |
3600 | (debug_scop_params): New. | |
3601 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
3602 | ||
3603 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3604 | ||
45489e99 SP |
3605 | * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. |
3606 | * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
3607 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
3608 | * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
3609 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
3610 | * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
2abae5f1 SP |
3611 | |
3612 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3613 | ||
3614 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
3615 | for dependency checking part. | |
45489e99 | 3616 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add |
2abae5f1 | 3617 | tests for dependency checking. |
45489e99 SP |
3618 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3619 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3620 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
2abae5f1 SP |
3621 | flag -fdump-tree-graphite-all for autopar testsuites. |
3622 | ||
3623 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3624 | ||
3625 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
3626 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
3627 | canonicalize_loop_ivs): Moved... | |
3628 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
3629 | ||
3630 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3631 | ||
3632 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
3633 | argument analyzed_reductions. Call analyze_reduction_list. | |
3634 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
3635 | (parallelize_loops): Init and finalize analyzed_reductions. | |
3636 | ||
3637 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
3638 | ||
45489e99 | 3639 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
3640 | Added flag -fno-loop-strip-mine for autopar testcase. |
3641 | ||
3642 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
3643 | ||
3644 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
3645 | transformed scattering dimension instead of unmatch orignal when | |
3646 | calling dependence_polyhedron. | |
3647 | ||
3648 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3649 | ||
3650 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
3651 | ||
3652 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3653 | ||
3654 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
3655 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
3656 | ||
3657 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3658 | ||
3659 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
3660 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
3661 | * graphite-poly.c (pbb_number_of_iterations): New. | |
3662 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
3663 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
3664 | ||
3665 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
3666 | ||
3667 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
3668 | last commit on type of lower and upper bound of loops. | |
3669 | ||
3670 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
3671 | ||
3672 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
3673 | graphite-dependences.h. | |
3674 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
3675 | (mark_bb_with_pbb): New. | |
3676 | (get_stmtfor_depth): New. | |
3677 | (find_pbb_via_hash): New. | |
3678 | (dependency_in_loop_p): New. | |
3679 | (mark_loops_parallel): New. | |
3680 | (free_aux_in_new_loops): New. | |
3681 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
3682 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
3683 | innermost loop parallel without checking. | |
3684 | (gloog): Add parameter BB_PBB_MAPPING. | |
3685 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
3686 | (gloog): Change declaration. | |
3687 | (mark_loop_parallel): Make extern. | |
3688 | (free_aux_in_new_loops): Declare. | |
3689 | (bb_pbb_map_hash): New. | |
3690 | (eq_bb_pbb_map): New. | |
3691 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
3692 | auto parallelization when flag_graphite_force_parallel is set. | |
3693 | (graphite_finalize): Added free_aux_in_new_loops. | |
3694 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
3695 | the innermost loop that marked parallel. Use | |
3696 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
3697 | (loop_parallel_p): Move inner most checking out of function. | |
3698 | ||
3699 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3700 | ||
3701 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
3702 | type of lower and upper bound of loops signed long int. | |
3703 | ||
3704 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3705 | ||
3706 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
3707 | expression outside the loop. | |
3708 | ||
3709 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3710 | ||
3711 | * gcc.dg/graphite/interchange-8.c: New. | |
3712 | ||
3713 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3714 | ||
3715 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
3716 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
3717 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
3718 | ||
3719 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3720 | ||
3721 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
3722 | recursion should return 1. | |
3723 | ||
3724 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3725 | ||
3726 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
3727 | subscript multiplier to be -1. | |
3728 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
3729 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
3730 | data_container. Initializes PDR_DATA_CONTAINER. | |
3731 | (print_pdr_access_layout): New. | |
3732 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
3733 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
3734 | data_container. | |
3735 | (PDR_DATA_CONTAINER): New. | |
3736 | (new_poly_dr): Update declaration. | |
3737 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
3738 | (build_poly_dr): Call pdr_add_data_dimensions. | |
3739 | ||
3740 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3741 | ||
3742 | * graphite-poly.h (struct poly_dr): Fix comment. | |
3743 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
3744 | (pdr_add_memory_accesses): New. | |
3745 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
3746 | ||
3747 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3748 | ||
3749 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
3750 | (print_pbb): Add call to print_pdrs. | |
3751 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
3752 | ||
3753 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3754 | Li Feng <nemokingdom@gmail.com> | |
3755 | ||
3756 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
3757 | (dependency_between_pbbs_p): New. | |
3758 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
3759 | intersection assign. | |
3760 | (build_lexicographically_gt_constraint): Correct lexicographically | |
3761 | judging. | |
3762 | * graphite-dependences.h: New. | |
3763 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
3764 | ||
3765 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3766 | ||
3767 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
3768 | (gloog): Print to dump_file the generated clast. | |
3769 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
3770 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
3771 | ||
3772 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3773 | ||
3774 | * graphite-poly.c (extend_scattering): Increment | |
3775 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
3776 | ||
3777 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3778 | ||
3779 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
3780 | recursion condition. Continue iterating even after the first equality. | |
3781 | (compute_array_size): Same. | |
3782 | ||
3783 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
3784 | ||
45489e99 | 3785 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update |
2abae5f1 | 3786 | -fdump-tree-final_cleanup to -fdump-tree-optimized. |
45489e99 SP |
3787 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3788 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3789 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
2abae5f1 SP |
3790 | |
3791 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3792 | ||
3793 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
3794 | only when the use verifies is_gimple_reg. | |
3795 | ||
3796 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3797 | ||
3798 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
3799 | Allocate scaldims after call to unify_scattering_dimensions. | |
3800 | ||
3801 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3802 | ||
3803 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
3804 | ||
3805 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3806 | Albert Cohen <albert.cohen@inria.fr> | |
3807 | ||
3808 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
3809 | variables for the strip mining. | |
3810 | ||
3811 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3812 | Pranav Garg <pranav.garg2107@gmail.com> | |
3813 | ||
3814 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
3815 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
3816 | (graphite-blocking.o): New rule. | |
3817 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
3818 | * graphite-blocking.c: New. | |
3819 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
3820 | flag_loop_strip_mine. | |
3821 | (psct_scattering_dim_for_loop_depth): New. | |
3822 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
3823 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
3824 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
3825 | flag_loop_strip_mine. | |
3826 | ||
3827 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3828 | ||
3829 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
3830 | a GMP value and a PPL coefficient at each iteration of a loop. | |
3831 | ||
3832 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3833 | ||
3834 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
3835 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
3836 | pbb_nb_scattering_transform. | |
3837 | (graphite_legal_transform_dr): Same. | |
3838 | * graphite-poly.c (extend_scattering): Same. | |
3839 | (unify_scattering_dimensions): Same. | |
3840 | (print_scattering_function): Same. | |
3841 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
3842 | PBB_NB_LOCAL_VARIABLES. | |
3843 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
3844 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
3845 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
3846 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
3847 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
3848 | (pbb_nb_scattering_transform): New. | |
3849 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
3850 | (psco_scattering_dim): Add assert on parameters. | |
3851 | (psct_scattering_dim): Same. | |
3852 | (psct_scattering_dim_for_loop_depth): Declared. | |
3853 | (psct_local_var_dim): New. | |
3854 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
3855 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
3856 | correct layout, call pbb_nb_local_vars. | |
3857 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
3858 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3859 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
3860 | ||
3861 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3862 | ||
3863 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
3864 | (set_coef): Renamed ppl_set_coef. | |
3865 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
3866 | ||
3867 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3868 | ||
3869 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
3870 | test a boolean against 1. | |
3871 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
3872 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
3873 | (pbb_do_interchange): Returns true when a transform has been performed. | |
3874 | (scop_do_interchange): Same. | |
3875 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
3876 | scop_do_interchange. | |
3877 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
3878 | ||
3879 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
3880 | ||
3881 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
3882 | after last use. | |
3883 | * sese.c (sese_reset_aux_in_loops): New. | |
3884 | * sese.h (sese_reset_aux_in_loops): New. | |
3885 | ||
3886 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3887 | ||
3888 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
3889 | multiplier and multiply the constant by the multiplier. | |
3890 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
3891 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
3892 | ||
3893 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3894 | ||
3895 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
3896 | compiler's data reference. Initialize PDR_CDR. | |
3897 | (print_pdr): Call dump_data_reference. | |
3898 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
3899 | Add compiler_dr field. | |
3900 | (PDR_BB): Renamed PDR_PBB. | |
3901 | (PDR_CDR): New. | |
3902 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
3903 | GCC's data reference representation. | |
3904 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
3905 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
3906 | ||
3907 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3908 | ||
3909 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
3910 | * graphite-poly.h (pbb_nb_local_vars): New. | |
3911 | ||
3912 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3913 | ||
3914 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
3915 | ||
3916 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
3917 | ||
3918 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
3919 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
3920 | (PDR_BASE): Removed. | |
3921 | ||
3922 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3923 | ||
45489e99 | 3924 | * gcc.dg/graphite/interchange-{1..7}.c: New avatars of |
2abae5f1 SP |
3925 | ltrans-{1..6,8}.c. |
3926 | ||
3927 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3928 | ||
3929 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
3930 | subscript identification column. | |
3931 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
3932 | interchanged". Rely on that chain of characters in the testcases. | |
3933 | * gcc.dg/graphite/interchange-0.c: New. | |
3934 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
3935 | interchange-*.c files and compile them with -floop-interchange. | |
3936 | ||
3937 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
3938 | ||
3939 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
3940 | pbb_interchange_profitable_p. | |
3941 | ||
3942 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3943 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3944 | Pranav Garg <pranav.garg2107@gmail.com> | |
3945 | ||
3946 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
3947 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
3948 | scop_do_interchange): New. | |
3949 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
3950 | for flag_loop_interchange. | |
3951 | * graphite-poly.h (scop_do_interchange): Declared. | |
3952 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
3953 | flag_loop_interchange is used. | |
3954 | ||
3955 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
3956 | ||
3957 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
3958 | pbb_nb_scattering_dims. | |
3959 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
3960 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
3961 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
3962 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
3963 | ||
3964 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
3965 | ||
3966 | * graphite.c: Cleanup foo. | |
3967 | ||
3968 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
3969 | ||
3970 | * Merge from mainline (r143684:148293). | |
3971 | * Disabled libpcp until it gets fixed. | |
3972 | ||
3973 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
3974 | Harsha Jagasia <harsha.jagasia@amd.com> | |
3975 | ||
3976 | * graphite-interchange.c: New. | |
3977 | * Makefile.in (graphite-interchange.o): New. | |
3978 | * graphite-poly.h (interchange_profitable_p): Declared. | |
3979 | * graphite-ppl.h (value_max): New. | |
3980 | ||
3981 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
3982 | ||
3983 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
3984 | * graphite-poly.h: Fix some comments. | |
3985 | (pdr_dim): New. | |
3986 | (pdr_scop): New. | |
3987 | ||
3988 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
3989 | ||
3990 | * graphite-poly.h | |
3991 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
3992 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
3993 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
3994 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
3995 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
3996 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
3997 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
3998 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
3999 | * graphite-clast-to-gimple.c: Same. | |
4000 | * graphite-dependences.c: Same. | |
4001 | * graphite-poly.c: Same. | |
4002 | * graphite-sese-to-poly.c: Same. | |
4003 | ||
4004 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4005 | ||
4006 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
4007 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
4008 | (copy_renames): Rename new_name to expr. | |
4009 | * sese.c (debug_rename_elt): Same. | |
4010 | (get_rename): Same. | |
4011 | (set_rename): Same. | |
4012 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
4013 | the information from the rename map. | |
4014 | (rename_variables_in_stmt): Same. | |
4015 | (add_loop_exit_phis): Rename new_name to expr. | |
4016 | (insert_loop_close_phis): Same. | |
4017 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
4018 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
4019 | (new_rename_map_elt): Same. | |
4020 | ||
4021 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4022 | ||
4023 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
4024 | * sese.c (set_rename): Make it extern. | |
4025 | * sese.h (set_rename): Declared. | |
4026 | ||
4027 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4028 | ||
4029 | * graphite-poly.c (extend_scattering): Free values. | |
4030 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
4031 | Free iterators. | |
4032 | (ppl_print_powerset_matrix): Same. | |
4033 | * graphite-scop-detection.c (free_scops_1): New. | |
4034 | (limit_scops): Call free_scops_1. | |
4035 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
4036 | (build_poly_dr): Free PPL coefficients. | |
4037 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
4038 | ||
4039 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
4040 | ||
4041 | * graphite-dependences.c: New. | |
4042 | * graphite-data-ref.c: Removed. | |
4043 | * graphite-data-ref.h: Removed. | |
4044 | * Makefile.in (graphite-data-ref.o): Removed. | |
4045 | (graphite-dependences.o): Added. | |
4046 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
4047 | * graphite-poly.c: Same. | |
4048 | Move the data dependence testing to graphite-dependences.c. | |
4049 | ||
4050 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4051 | ||
4052 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
4053 | from graphite_cannot_represent_loop. Code refactored. | |
4054 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
4055 | ||
4056 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
4057 | ||
45489e99 | 4058 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
2abae5f1 SP |
4059 | Cover all the testcases (not only the filtered ones). |
4060 | ||
4061 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4062 | ||
4063 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
4064 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
4065 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
4066 | done in (stmt_simple_for_scop_p). | |
4067 | ||
4068 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4069 | ||
4070 | * graphite.c (print_global_statistics): New. | |
4071 | (print_graphite_scop_statistic): New. | |
4072 | (print_graphite_statistics): New. | |
4073 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
4074 | * graphite-scop-detection (build_scops): Print statistics. | |
4075 | (print_graphite_scop_statistics): New. | |
4076 | (print_graphite_statistics): New. | |
4077 | ||
4078 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4079 | ||
4080 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
4081 | (debug_clast_name_index): Removed. | |
4082 | (debug_clast_name_indexes_1): Removed. | |
4083 | (debug_clast_name_indexes): Removed. | |
4084 | (clast_name_index_elt_info): Removed. | |
4085 | (eq_clast_name_indexes): Removed. | |
4086 | (clast_name_to_index): Removed. | |
4087 | (new_clast_name_index): Removed. | |
4088 | (save_clast_name_index): Removed. | |
4089 | (save_var_name): Moved... | |
4090 | (init_sese_params_index): Removed. | |
4091 | (clast_name_to_gcc): Remove use of name_tree. | |
4092 | (initialize_cloog_names): Same. | |
4093 | (gloog): Do not call init_sese_params_index. | |
4094 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
4095 | (parameter_index_in_region): New. | |
4096 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
4097 | (parameter_index_in_region): Removed. | |
4098 | (is_parameter): Remove use of name_tree. | |
4099 | * sese.h (struct name_tree): Removed. | |
4100 | (struct sese): Remove use of name_tree. New field params_names. | |
4101 | (SESE_PARAMS_NAMES): New. | |
4102 | (SESE_PARAMS): Remove duplicate. | |
4103 | (parameter_index_in_region): Removed. | |
4104 | (sese_nb_params): Remove use of name_tree. | |
4105 | (struct clast_name_index): New. | |
4106 | (new_clast_name_index): New. | |
4107 | (clast_name_to_index): New. | |
4108 | (save_clast_name_index): New. | |
4109 | (debug_clast_name_index): New. | |
4110 | (debug_clast_name_indexes_1): New. | |
4111 | (debug_clast_name_indexes): New. | |
4112 | (clast_name_index_elt_info): New. | |
4113 | (eq_clast_name_indexes): New. | |
4114 | ||
4115 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4116 | ||
4117 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
4118 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
4119 | (graphite_loop_normal_form): Do not pass region. Do not | |
4120 | initialize SESE_OLDIVS. | |
4121 | (build_graphite_loop_normal_form): Update call to | |
4122 | graphite_loop_normal_form. | |
4123 | * sese.c (debug_oldivs): Removed. | |
4124 | (new_sese): Do not initialize SESE_OLDIVS. | |
4125 | (free_sese): Do not free SESE_OLDIVS. | |
4126 | (oldiv_for_loop): Removed. | |
4127 | * sese.h (struct sese): Remove old_ivs. | |
4128 | (SESE_OLDIVS): Removed. | |
4129 | (oldiv_for_loop): Removed. | |
4130 | ||
4131 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4132 | ||
4133 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
4134 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
4135 | replaced by a call to newivs_to_depth_to_newiv. | |
4136 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
4137 | (clast_to_gcc_expression_red): Same. | |
4138 | (gcc_type_for_clast_expr): Same. | |
4139 | (gcc_type_for_clast_eq): Same. | |
4140 | (graphite_translate_clast_equation): Same. | |
4141 | (graphite_create_guard_cond_expr): Same. | |
4142 | (graphite_create_new_guard): Same. | |
4143 | (graphite_create_new_loop): Same. | |
4144 | (build_iv_mapping): Same. | |
4145 | (translate_clast): Same. | |
4146 | (gloog): Same. | |
4147 | (loop_iv_stack_patch_for_consts): Removed. * | |
4148 | sese.c (iv_stack_entry_is_constant): Removed. | |
4149 | (iv_stack_entry_is_iv): Removed. | |
4150 | (loop_iv_stack_push_iv): Removed. | |
4151 | (loop_iv_stack_insert_constant): Removed. | |
4152 | (loop_iv_stack_pop): Removed. | |
4153 | (loop_iv_stack_get_iv): Removed. | |
4154 | (loop_iv_stack_get_iv_from_name): Removed. | |
4155 | (debug_loop_iv_stack): Removed. | |
4156 | (free_loop_iv_stack): Removed. | |
4157 | (loop_iv_stack_remove_constants): Removed. * | |
4158 | sese.h (iv_stack_entry_kind): Removed. | |
4159 | (iv_stack_entry_data_union): Removed. | |
4160 | (iv_stack_entry_struct): Removed. | |
4161 | (iv_stack_entry_p): Removed. | |
4162 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
4163 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
4164 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
4165 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
4166 | (gbb_loop_at_index): Fix indenting. | |
4167 | (gbb_loop_index): Removed. | |
4168 | ||
4169 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4170 | ||
4171 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
4172 | Call clast_name_to_index. | |
4173 | ||
4174 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4175 | ||
4176 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
4177 | do not pass params. Get params from SESE_PARAMS. | |
4178 | (clast_to_gcc_expression): Same. | |
4179 | (clast_to_gcc_expression_red): Same. | |
4180 | (gcc_type_for_clast_eq): Same. | |
4181 | (graphite_translate_clast_equation): Same. | |
4182 | (graphite_create_new_loop): Same. | |
4183 | * sese.c (rename_variables_in_stmt): Fix comment. | |
4184 | ||
4185 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4186 | ||
4187 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
4188 | newivs_index. | |
4189 | Call save_clast_name_index. | |
4190 | (translate_clast): Pass newivs_index. | |
4191 | (gloog): Create and free newivs_index. | |
4192 | ||
4193 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4194 | ||
4195 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
4196 | (clast_name_index_p): New type. | |
4197 | (debug_clast_name_index): New. | |
4198 | (debug_clast_name_indexes_1): New. | |
4199 | (debug_clast_name_indexes): New. | |
4200 | (clast_name_index_elt_info): New. | |
4201 | (eq_clast_name_indexes): New. | |
4202 | (clast_name_to_index): New. | |
4203 | (new_clast_name_index): New. | |
4204 | (save_clast_name_index): New. | |
4205 | (init_sese_params_index): New. | |
4206 | (gloog): Call init_sese_params_index. | |
4207 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
4208 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
4209 | (free_sese): Free SESE_PARAMS_INDEX. | |
4210 | * sese.h (struct sese): Add params_index. | |
4211 | (SESE_PARAMS_INDEX): New. | |
4212 | ||
4213 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4214 | ||
4215 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
4216 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
4217 | newly created IV to newivs. | |
4218 | (translate_clast): Pass the newivs vector. | |
4219 | (gloog): Create and destroy the newivs vector. | |
4220 | ||
4221 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4222 | ||
4223 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
4224 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
4225 | IV that has been created. | |
4226 | ||
4227 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4228 | ||
4229 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
4230 | scev with parameters in the base part. They where forbidden | |
4231 | exidently. | |
4232 | ||
4233 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
4234 | ||
45489e99 | 4235 | * gcc.dg/graphite/graphite.exp: Set different default |
2abae5f1 | 4236 | compile options by file names. |
45489e99 SP |
4237 | * gcc.dg/graphite/block{0-6}.c: Remove dg-option line. |
4238 | * gcc.dg/graphite/id-{1-9}.c: Ditto. | |
4239 | * gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
4240 | * gcc.dg/graphite/scop-matmult.c: Ditto. | |
2abae5f1 SP |
4241 | |
4242 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
4243 | ||
45489e99 SP |
4244 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. |
4245 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
4246 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
4247 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
2abae5f1 SP |
4248 | |
4249 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4250 | ||
4251 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
4252 | by final cleanup. | |
4253 | ||
4254 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4255 | ||
4256 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
4257 | allow integer constant strides. | |
4258 | (graphite_can_represent_expr): Depend on outermost_loop. | |
4259 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
4260 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
4261 | build_scops_1): Same. | |
4262 | (scopdet_basic_block_info): Same and insert layered SCoP | |
4263 | detection. | |
4264 | (try_generate_gimple_bb): Cleanup. | |
4265 | (build_scops): Enable data references. | |
4266 | ||
45489e99 SP |
4267 | * gcc.dg/graphite/id-5.c: New. |
4268 | * gcc.dg/graphite/id-9.c: New. | |
2abae5f1 SP |
4269 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. |
4270 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
4271 | ||
4272 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4273 | ||
4274 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
4275 | that we have not yet built for this SCoP. | |
4276 | ||
4277 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4278 | ||
4279 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
4280 | for complex numbers. | |
4281 | ||
4282 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4283 | ||
4284 | * graphite-ppl.c: Fix build if cloog is not available. | |
4285 | ||
4286 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
4287 | ||
4288 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
4289 | NITER and REDUCTION_LIST. | |
4290 | (try_get_loop_niter): New. | |
4291 | (try_create_reduction_list): New. | |
4292 | (parallelize_loops): Bypass the failed checkings in autopar | |
4293 | when can_be_parallel in loop structure is set to true. | |
4294 | ||
4295 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4296 | ||
45489e99 SP |
4297 | * gcc.dg/graphite/id-6.c: Update testcase. |
4298 | * gcc.dg/graphite/scop-3.c: Dito. | |
2abae5f1 SP |
4299 | |
4300 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4301 | ||
4302 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
4303 | Enable EQ_EXPR and NE_EXPR again. | |
4304 | ||
4305 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4306 | ||
4307 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
4308 | Add check if scev is affine multivariate. | |
4309 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
4310 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
4311 | harmful_stmt_in_bb. | |
45489e99 | 4312 | * gcc.dg/graphite/id-7.c: New. |
2abae5f1 SP |
4313 | |
4314 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4315 | ||
4316 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
4317 | Check all bbs in region, not only the bbs that are represented in | |
4318 | GRAPHITE. | |
4319 | (build_poly_scop): Add newline. | |
45489e99 | 4320 | * gcc.dg/graphite/id-8.c: New. |
2abae5f1 SP |
4321 | |
4322 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4323 | ||
4324 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
4325 | when loop initialize. | |
4326 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
4327 | * common.opt: Declare flag_graphite_force_parallel. | |
4328 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
4329 | loop parallel. | |
4330 | * graphite-poly.c (apply_poly_transforms): Introduce | |
4331 | flag_graphite_force_parallel. | |
4332 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
4333 | * toplev.c (process_options): ditto and replace a not correctly | |
4334 | encoded space. | |
4335 | ||
4336 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4337 | ||
4338 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
4339 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
4340 | to the redefinition. | |
4341 | (compute_cloog_iv_types_1): ditto. | |
4342 | (build_iv_mapping): ditto. | |
4343 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
4344 | initialization. | |
4345 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
4346 | (build_bb_loops): Removed. | |
4347 | * sese.h (struct gimple_bb): Removed loops. | |
4348 | (GBB_LOOPS): Removed. | |
4349 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
4350 | (gbb_loop_index): ditto. | |
4351 | ||
4352 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4353 | ||
4354 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
4355 | allow non constant strides. | |
45489e99 | 4356 | * gcc.dg/graphite/scop-20.c: New. |
2abae5f1 SP |
4357 | |
4358 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4359 | ||
4360 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
4361 | return value warning. | |
4362 | (dot_scop): Same. | |
4363 | ||
4364 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4365 | ||
45489e99 SP |
4366 | * gcc.dg/graphite/id-6.c: Fix pattern. |
4367 | * gcc.dg/graphite/scop-3.c: Same. | |
2abae5f1 SP |
4368 | |
4369 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4370 | ||
4371 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
4372 | build_pairwise_constraint, dr_equality_constraints, | |
4373 | build_pairwise_scheduling_equality, | |
4374 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
4375 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
4376 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
4377 | graphite_legal_transform): New. | |
4378 | * graphite-poly.h (graphite_legal_transform): Declared. | |
4379 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
4380 | graphite_legal_transform is disabled for the moment. | |
4381 | ||
4382 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4383 | ||
4384 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
4385 | (pbb_nb_scattering): Use it. | |
4386 | ||
4387 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4388 | ||
4389 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
4390 | Pointset_Powerset version of ppl_insert_dimensions. | |
4391 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
4392 | ||
4393 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4394 | ||
4395 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
4396 | ||
4397 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4398 | ||
4399 | * graphite-poly.h: Fix comment. | |
4400 | ||
4401 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4402 | ||
4403 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
4404 | ||
4405 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4406 | ||
4407 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
4408 | statements. | |
4409 | ||
4410 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4411 | ||
4412 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
4413 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
4414 | conditions. | |
4415 | ||
4416 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
4417 | ||
4418 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
4419 | handle EQ_EXPR and NE_EXPR. | |
4420 | ||
4421 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4422 | ||
4423 | * graphite-poly.h (poly_dr): Fix comment. | |
4424 | ||
4425 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4426 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4427 | ||
4428 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
4429 | with a zero dimension polyhedron. | |
4430 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
4431 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
4432 | domain polyhedron. | |
4433 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
4434 | by any loop in scop. | |
4435 | (build_poly_scop): Do not call scop_set_nb_params. | |
4436 | ||
4437 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4438 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4439 | ||
4440 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
4441 | add_condition_to_domain not GT_EXPR. | |
4442 | ||
4443 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4444 | ||
4445 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
4446 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
4447 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
4448 | upper_bound_assign to calculate unions. | |
45489e99 | 4449 | * gcc.dg/graphite/id-6.c: New. |
2abae5f1 SP |
4450 | |
4451 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4452 | ||
4453 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
4454 | handle abnormal edges. | |
4455 | ||
4456 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4457 | ||
4458 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
4459 | (free_poly_bb): Also free poly_drs. | |
4460 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
4461 | (poly_dr): Polyhedron to Pointset_Powerset. | |
4462 | (pdr_accessp_nb_subscripts): Same. | |
4463 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
4464 | poly_drs. | |
4465 | ||
4466 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4467 | ||
4468 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
4469 | names into more meaningful names. | |
4470 | ||
4471 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4472 | ||
45489e99 SP |
4473 | * gfortran.dg/graphite/interchange-1.c: New. |
4474 | * gfortran.dg/graphite/interchange-2.c: New. | |
2abae5f1 SP |
4475 | |
4476 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4477 | ||
4478 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
4479 | the reduction_list. | |
4480 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
4481 | (rewrite_all_phi_nodes_with_iv): New. | |
4482 | (canonicalize_loop_ivs): Call them. | |
4483 | ||
4484 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4485 | ||
4486 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
4487 | graphite_find_data_references_in_stmt. | |
4488 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
4489 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
4490 | ||
4491 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4492 | ||
4493 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
4494 | ||
4495 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4496 | ||
4497 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
4498 | instead of bb_in_region. | |
4499 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
4500 | (build_sese_conditions): Use flag_bb_in_sese. | |
4501 | * sese.c (register_bb_in_sese): Removed. | |
4502 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
4503 | (free_sese): Do not free SESE_REGION_BBS. | |
4504 | * sese.h (struct sese): Remove field region_basic_blocks. | |
4505 | (SESE_REGION_BBS): Removed. | |
4506 | (bb_in_sese_p): Implement in function of bb_in_region. | |
4507 | ||
4508 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4509 | ||
4510 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
4511 | loops. | |
4512 | ||
4513 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4514 | ||
4515 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
4516 | and EQ_EXPR. | |
4517 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
4518 | (add_condition_to_domain): New. | |
4519 | (add_condition_to_pbb): New. | |
4520 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
45489e99 | 4521 | * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. |
2abae5f1 SP |
4522 | |
4523 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4524 | ||
4525 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
4526 | ppl_Pointset_Powerset. | |
4527 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
4528 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
4529 | (pbb_nb_loops): Same. | |
4530 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
4531 | add_conditions_to_domain): Same. | |
4532 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
4533 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
4534 | ppl_const_Polyhedron_t. | |
4535 | (ppl_print_powerset_matrix): New. | |
4536 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
4537 | ppl_print_powerset_matrix): New. | |
4538 | (ppl_print_polyhedron_matrix): Updated. | |
4539 | ||
4540 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4541 | ||
4542 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
4543 | ||
4544 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4545 | ||
4546 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
4547 | (print_iteration_domains, debug_iteration_domain, | |
4548 | debug_iteration_domains): New. | |
4549 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
4550 | debug_iteration_domains): Declared. | |
4551 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
4552 | indenting. | |
4553 | ||
4554 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
4555 | Sebastian Pop <sebastian.pop@amd.com> | |
4556 | ||
4557 | * graphite-poly.h (print_iteration_domain): New. | |
4558 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
4559 | (build_sese_conditions_1, build_sese_conditions_after, | |
4560 | build_sese_conditions_before): New. | |
4561 | (build_sese_conditions): Rewritten. | |
4562 | ||
4563 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4564 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4565 | ||
4566 | Cleanup of code generation liveouts. | |
4567 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
4568 | rename_map instead of one per translated statement. | |
4569 | Do not use SESE_LIVEOUT_RENAMES. | |
4570 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
4571 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
4572 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
4573 | phi node of a reduction: when a loop contains a reduction used outside | |
4574 | the loop, there should be a scalar close phi node on the exit block. | |
4575 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
4576 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
4577 | (free_sese): Do not free them. | |
4578 | (sese_build_liveouts_use): Do not use them. | |
4579 | (sese_build_liveouts_bb): Same. | |
4580 | (sese_build_liveouts): Same. | |
4581 | (sese_insert_phis_for_liveouts): Same. | |
4582 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
4583 | (defined_in_loop_p): New. | |
4584 | (alive_after_loop): New. | |
4585 | (close_phi_not_yet_inserted_p): New. | |
4586 | (struct alep, alep_p): New. | |
4587 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
4588 | in the code generated loop. | |
4589 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
4590 | Don't use SESE_LIVEOUT_RENAMES. | |
4591 | (default_liveout_before_guard): Renamed default_before_guard. | |
4592 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
4593 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
4594 | (register_sese_liveout_renames): Removed. | |
4595 | (copy_bb_and_scalar_dependences): Do not call it. | |
4596 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
4597 | reduction_list. | |
4598 | (SESE_LIVEOUT): Removed. | |
4599 | (SESE_LIVEOUT_RENAMES): Removed. | |
4600 | (SESE_REDUCTION_LIST): Removed. | |
4601 | (sese_build_liveouts): Removed. | |
4602 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
4603 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
4604 | (insert_guard_phis): Same. | |
4605 | (rename_map_elt): Declare a VEC of them. | |
4606 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
4607 | trees not pointers to trees. | |
4608 | ||
4609 | Rewrite in canonical close SSA form: | |
4610 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
4611 | (limit_scops): Close the scop after the block containing the close phi | |
4612 | nodes. | |
4613 | (canonicalize_loop_closed_ssa): New. | |
4614 | (canonicalize_loop_closed_ssa_form): New. | |
4615 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
4616 | ||
4617 | * graphite-sese-to-poly.c: Fix typos. | |
4618 | ||
4619 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4620 | ||
4621 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
4622 | Extended. | |
4623 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
4624 | (print_pbb): Add conditions. | |
4625 | ||
4626 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4627 | Sebastian Pop <sebastian.pop@amd.com> | |
4628 | ||
4629 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
4630 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
4631 | (build_scop_bbs_1): New. | |
4632 | (build_scop_bbs): Rewrite. | |
4633 | * sese.h (bb_in_region): New. | |
4634 | ||
4635 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4636 | ||
4637 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4638 | poly_drs vector. | |
4639 | (print_scop): Style. | |
4640 | * graphite-poly.h (poly_bb): Add drs vector. | |
4641 | (PBB_DRS): Add accessor. | |
4642 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
4643 | (build_pbb_drs, build_scop_drs): New. | |
4644 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
4645 | ||
4646 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4647 | ||
4648 | * tree-ssa-loop.c: Include forgotten toplev.h | |
4649 | ||
4650 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4651 | ||
4652 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
45489e99 SP |
4653 | * gcc.dg/graphite/pr37883.c: Remove -floop-* |
4654 | * gcc.dg/graphite/pr37928.c: Same | |
4655 | * gcc.dg/graphite/pr38409.c: Same | |
4656 | * gcc.dg/graphite/pr38498.c: Same | |
4657 | * gcc.dg/graphite/pr38559.c: Same | |
4658 | * gcc.dg/graphite/pr39335.c: Same | |
4659 | * gcc.dg/graphite/pr39335_1.c: Same | |
4660 | * gfortran.dg/graphite/block-2.f: Same | |
2abae5f1 SP |
4661 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called |
4662 | with -floop-*. | |
4663 | ||
4664 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
4665 | ||
4666 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
4667 | build_access_matrix, build_scop_data_accesses): Remove access function | |
4668 | building. (We get a new version soon). | |
4669 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
4670 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
4671 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
4672 | ||
4673 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
4674 | Sebastian Pop <sebastian.pop@amd.com> | |
4675 | ||
4676 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
4677 | field to exit. | |
4678 | (scopdet_basic_block_info, build_scops_1): Don't use | |
4679 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
4680 | ||
4681 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
4682 | Sebastian Pop <sebastian.pop@amd.com> | |
4683 | ||
4684 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
4685 | * sese.c (sese_build_liveouts_use): Renamed from | |
4686 | sese_build_livein_liveouts_use. Remove liveins. | |
4687 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
4688 | Call sese_build_liveouts_use. | |
4689 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
4690 | Call sese_build_liveouts_bb. | |
4691 | (new_sese, free_sese): Remove liveins. | |
4692 | (sese_add_exit_phis_var): Deleted. | |
4693 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
4694 | directly. | |
4695 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
4696 | ||
4697 | * sese.h (sese): Remove num_ver and livein. | |
4698 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
4699 | ||
4700 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4701 | ||
4702 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
4703 | ||
4704 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4705 | ||
4706 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
4707 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
4708 | (nb_common_loops): New. | |
4709 | ||
4710 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4711 | ||
4712 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
4713 | (register_old_and_new_names): Renamed set_rename. | |
4714 | ||
4715 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4716 | ||
4717 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
4718 | of the decl from the previous commit. | |
4719 | ||
4720 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4721 | ||
4722 | * graphite-scop-detection.c (dot_scop): New. | |
4723 | * graphite-scop-detection.h (dot_scop): Declared. | |
4724 | ||
4725 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4726 | ||
4727 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
4728 | ||
4729 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4730 | ||
4731 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
4732 | condition at the end of the loop. | |
4733 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
4734 | dump_file the compiled function. | |
4735 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
4736 | of create_empty_loop_on_edge. | |
4737 | (translate_clast): Update the code generation of loops for the new | |
4738 | shape of loops. | |
4739 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
4740 | ||
4741 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4742 | ||
4743 | Reverted the patch from 2009-03-19. | |
4744 | ||
4745 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4746 | ||
4747 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4748 | poly_drs vector. | |
4749 | (print_scop): Style. | |
4750 | * graphite-poly.h (poly_bb): Add drs vector. | |
4751 | (PBB_DRS): Add accessor. | |
4752 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
4753 | (build_access_matrix_with_af, build_access_matrix, | |
4754 | build_scop_data_accesses): Delete. | |
4755 | (build_poly_dr): New. | |
4756 | (build_pbb_drs, build_scop_drs): New. | |
4757 | (build_poly_scop): call build_scop_drs. | |
4758 | ||
4759 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
4760 | ||
4761 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
4762 | once per basic block. | |
4763 | ||
4764 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4765 | ||
4766 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
4767 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
4768 | and enhanced. | |
4769 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
4770 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
4771 | (scopdet_basic_block_info): Actually define entry_block. | |
4772 | (stmt_simple_memref_p): Moved here from ... | |
4773 | ||
4774 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
4775 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
4776 | ||
4777 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4778 | ||
45489e99 | 4779 | * gcc.dg/graphite/id-4.c: New. |
2abae5f1 SP |
4780 | |
4781 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4782 | ||
4783 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
4784 | (register_old_and_new_names): Update the content of the map. | |
4785 | When there was already a rename_map_elt in the map at that | |
4786 | location, free it. | |
4787 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4788 | expand_scalar_variables. | |
4789 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4790 | of the map. When there was already a rename_map_elt in the | |
4791 | map at that location, free it. | |
4792 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4793 | a rename_map per stmt_user. | |
4794 | (gloog): Initialize and free one rename_map and pass it to | |
4795 | translate_clast. | |
4796 | ||
4797 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4798 | ||
4799 | * sese.c (expand_scalar_variables_stmt, | |
4800 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
4801 | parameter. | |
4802 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
4803 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
4804 | the gimple_stmt_iterator of the statement to be expanded. | |
4805 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
4806 | REALPART_EXPR. | |
4807 | ||
4808 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4809 | ||
4810 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
4811 | REALPART_EXPR. | |
45489e99 | 4812 | * gcc.dg/graphite/id-2.c: New. |
2abae5f1 SP |
4813 | |
4814 | * graphite-sese-to-poly.c (build_bb_loops, | |
4815 | add_value_to_dim, scan_tree_for_params_right_scev, | |
4816 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
4817 | find_params_in_bb, build_loop_iteration_domains, | |
4818 | add_conditions_to_domain): Remove subtract. | |
4819 | ||
4820 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4821 | ||
4822 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
4823 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
4824 | pbb_loop_at_index -> gbb_loop_at_index. | |
4825 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
4826 | (debug_loop_vec): Delete. | |
4827 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
4828 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
4829 | (PBB_LOOPS): Removed. | |
4830 | (PBB_BLACK_BOX): Insert cast. | |
4831 | (pbb_set_black_box): New setter. | |
4832 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
4833 | (scop_set_region, scop_set_nb_params): New. | |
4834 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
4835 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
4836 | (build_poly_scop): Use scop_set_nb_params. | |
4837 | * sese.h (gimple_bb): Add LOOPS. | |
4838 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
4839 | ||
4840 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4841 | ||
4842 | Revert previous commit. | |
4843 | ||
4844 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
4845 | ||
4846 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
4847 | (register_old_and_new_names): Update the content of the map. | |
4848 | When there was already a rename_map_elt in the map at that | |
4849 | location, free it. | |
4850 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4851 | expand_scalar_variables. | |
4852 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4853 | of the map. When there was already a rename_map_elt in the | |
4854 | map at that location, free it. | |
4855 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4856 | a rename_map per stmt_user. | |
4857 | (gloog): Initialize and free one rename_map and pass it to | |
4858 | translate_clast. | |
4859 | ||
4860 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4861 | ||
4862 | Remove forgotten line in revert. | |
4863 | ||
4864 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
4865 | ||
4866 | Revert previous commit. | |
4867 | ||
4868 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
4869 | ||
4870 | * sese.c (register_old_and_new_names): Update the content | |
4871 | of the map. When there was already a rename_map_elt in the | |
4872 | map at that location, free it. | |
4873 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4874 | expand_scalar_variables. | |
4875 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4876 | of the map. When there was already a rename_map_elt in the | |
4877 | map at that location, free it. | |
4878 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4879 | a rename_map per stmt_user. | |
4880 | (gloog): Initialize and free one rename_map and pass it to | |
4881 | translate_clast. | |
4882 | ||
4883 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
4884 | ||
4885 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
4886 | is never NULL. | |
4887 | ||
4888 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4889 | Sebastian Pop <sebastian.pop@amd.com> | |
4890 | ||
4891 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
4892 | of the use of ppl_Polyhedron_map_space_dimensions. | |
4893 | ||
4894 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4895 | Sebastian Pop <sebastian.pop@amd.com> | |
4896 | ||
4897 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
4898 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
4899 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
4900 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
4901 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
4902 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
4903 | pbb_nb_params): New. | |
4904 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
4905 | nb_loops_around_pbb): Adapt return types. | |
4906 | ||
4907 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4908 | ||
4909 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
4910 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
4911 | graphite-scop-detection.o, graphite-poly.o): Add | |
4912 | more headers. | |
4913 | ||
4914 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4915 | ||
4916 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
4917 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
4918 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
4919 | ||
4920 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4921 | ||
45489e99 SP |
4922 | * gcc.dg/graphite/pr37485.c: Remove -floop-block |
4923 | * gcc.dg/graphite/pr37828.c: Same. | |
4924 | * gcc.dg/graphite/pr37684.c: Same. | |
4925 | * gcc.dg/graphite/block-0.c: Same. | |
4926 | * gcc.dg/graphite/block-1.c: Same. | |
4927 | * gcc.dg/graphite/block-2.c: Same. | |
4928 | * gcc.dg/graphite/block-3.c: Same. | |
4929 | * gcc.dg/graphite/block-4.c: Same. | |
4930 | * gcc.dg/graphite/block-5.c: Same. | |
4931 | * gcc.dg/graphite/block-6.c: Same. | |
4932 | * gfortran.dg/graphite/pr38083.f90: Same. | |
4933 | * gfortran.dg/graphite/block-1.f90: Same. | |
4934 | * gfortran.dg/graphite/block-3.f90: Same. | |
4935 | * gfortran.dg/graphite/pr37852.f90: Same. | |
4936 | * gfortran.dg/graphite/block-4.f90: Same. | |
4937 | * gfortran.dg/graphite/pr37980.f90: Same. | |
4938 | * gfortran.dg/graphite/pr38953.f90: Same. | |
4939 | * gfortran.dg/graphite/pr37857.f90: Same. | |
2abae5f1 SP |
4940 | * opts.c: Remove -floop-block from -O2. |
4941 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
4942 | -floop-strip-mine are used. | |
4943 | ||
4944 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
4945 | Sebastian Pop <sebastian.pop@amd.com> | |
4946 | ||
4947 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
4948 | dimensions. | |
4949 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
4950 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
4951 | strip_mine_profitable_p, is_interchange_valid, | |
4952 | graphite_trans_bb_block, graphite_trans_loop_block, | |
4953 | graphite_trans_scop_block): Temporary removed. | |
4954 | (extend_scattering, unify_scattering_dimensions): New. | |
4955 | (print_scattering_function, graphite_read_transforms): | |
4956 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4957 | (graphite_generate_scattering_fns): Removed. | |
4958 | (apply_poly_transforms): Cleanup. | |
4959 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4960 | (schedule_to_scattering): Moved. | |
4961 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
4962 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
4963 | (pbb_nb_scattering): New. | |
4964 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
4965 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
4966 | Removed. | |
4967 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
4968 | shift_poly. | |
4969 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
4970 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
4971 | -> PBB_TRANSFORMED_SCATTERING. | |
4972 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
4973 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
4974 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
4975 | (check_poly_representation): Do not return bool. | |
4976 | (graphite_transform_loops): Reformat. | |
4977 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
4978 | ||
4979 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
4980 | ||
4981 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
4982 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
4983 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
4984 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
4985 | ||
4986 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
4987 | ||
4988 | PR middle-end/39335 | |
4989 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
4990 | when the type precision of the induction variable should be | |
4991 | larger than the type precision of nit. | |
4992 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
4993 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
4994 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
4995 | ||
45489e99 SP |
4996 | * gcc.dg/graphite/pr39335_1.c: New. |
4997 | * gcc.dg/graphite/pr39335.c: New. | |
2abae5f1 SP |
4998 | |
4999 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5000 | ||
5001 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
5002 | SSA_NAMES not struct reduction_info. | |
5003 | ||
5004 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5005 | ||
5006 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
5007 | ||
5008 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5009 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5010 | ||
5011 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
5012 | (free_sese): Free SESE_REDUCTION_LIST. | |
5013 | * sese.h (struct sese): Add field reduction_list. | |
5014 | (SESE_REDUCTION_LIST): New. | |
5015 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
5016 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
5017 | ||
5018 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5019 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5020 | ||
5021 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
5022 | of loop_p. | |
5023 | ||
5024 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5025 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5026 | ||
5027 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
5028 | analyze_reduction_list, gather_scalar_reductions): New. | |
5029 | (loop_parallel_p): Build a reduction list containing only | |
5030 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
5031 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
5032 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
5033 | * tree-flow.h (gather_scalar_reductions): Declared. | |
5034 | ||
5035 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
5036 | ||
5037 | PR middle-end/39308 | |
5038 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
5039 | number_of_iterations_exit from a gcc_assert. | |
5040 | ||
5041 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
5042 | Jan Sjodin <jan.sjodin@amd.com> | |
5043 | ||
5044 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
5045 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
5046 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
5047 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
5048 | Don't call schedule_to_scattering. | |
5049 | * common.opt (fgraphite-write, fgraphite-read): New. | |
5050 | * graphite-poly.c: Include output.h. | |
5051 | (print_scattering_function, print_scattering_functions, | |
5052 | debug_scattering_function, debug_scattering_functions, | |
5053 | graphite_write_transforms, graphite_read_transforms, | |
5054 | graphite_generate_scattering_fns): New. | |
5055 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
5056 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
5057 | graphite_read_transforms. | |
5058 | (new_poly_bb): Initialize PBB_SCATTERING. | |
5059 | (free_poly_bb): Free PBB_SCATTERING. | |
5060 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
5061 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
5062 | (PBB_SCATTERING): New. | |
5063 | (print_scattering_function, print_scattering_functions, | |
5064 | debug_scattering_function, debug_scattering_functions): Declared. | |
5065 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
5066 | GMP values, not integers! | |
5067 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
5068 | ppl_read_polyhedron_matrix): New. | |
5069 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
5070 | debug_ppl_polyhedron_matrix, | |
5071 | ppl_read_polyhedron_matrix): Declared. | |
5072 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
5073 | ||
5074 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5075 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5076 | ||
5077 | Revert this change: | |
5078 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5079 | scalar evolutions in the scop_entry->loop_father. | |
5080 | ||
5081 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5082 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5083 | ||
5084 | * graphite.h (ref_nb_loops): Remove declaration. | |
5085 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
5086 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
5087 | debug_gbb): Moved to sese.h. | |
5088 | * sese.h: As said. | |
5089 | ||
5090 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5091 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5092 | ||
5093 | * graphite-data-ref.[ch]: Disable. | |
5094 | ||
5095 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5096 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5097 | ||
5098 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5099 | scalar evolutions in the scop_entry->loop_father. | |
5100 | ||
5101 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5102 | ||
5103 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
5104 | (graphite_cannot_represent_loop_niter): Renamed | |
5105 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
5106 | (limit_scops): build_sese_loop_nests does not return a bool. | |
5107 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
5108 | * sese.c (nb_reductions_in_loop): ... from here. | |
5109 | (graphite_loop_normal_form): ... from here. | |
5110 | (sese_record_loop): Does not fail, so does not return a bool. | |
5111 | (build_sese_loop_nests): Same. | |
5112 | * sese.h (build_sese_loop_nests): Update declaration. | |
5113 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
5114 | (build_graphite_loop_normal_form): New. | |
5115 | (gloog): Call build_graphite_loop_normal_form. | |
5116 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
5117 | build_sese_loop_nests. | |
5118 | ||
45489e99 | 5119 | * gcc.dg/graphite/id-1.c: New. |
2abae5f1 SP |
5120 | |
5121 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5122 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5123 | ||
5124 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
5125 | The SCoP detection fix is sufficient. | |
5126 | ||
5127 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5128 | ||
5129 | PR tree-optimization/39260 | |
5130 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
5131 | the basic block contains a condition with a real type. | |
5132 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
5133 | ||
5134 | * gcc.dg/graphite/pr39260.c: New. | |
5135 | ||
5136 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5137 | ||
5138 | * graphite-poly.c: Inlcude params.h. | |
5139 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
5140 | the size of a tile. | |
5141 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
5142 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
5143 | ||
5144 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5145 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5146 | ||
5147 | * graphite-scop-detection.c (dot_all_scops_1, | |
5148 | dot_all_scops): Moved here. | |
5149 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
5150 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
5151 | (graphite_transform_loops): Cleaned up. | |
5152 | * sese.c (debug_oldivs): Moved here. | |
5153 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
5154 | apply_poly_transforms. | |
5155 | (debug_loop_vec): Moved here. | |
5156 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
5157 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
5158 | find_scop_parameters, build_scop_iteration_domain, | |
5159 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
5160 | build_scop_data_accesses): Now static. | |
5161 | (build_poly_scop, check_poly_representation): New. | |
5162 | ||
5163 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5164 | ||
5165 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
5166 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
5167 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
5168 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
5169 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
5170 | scan_tree_for_params, struct irp_data, dx_record_params, | |
5171 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
5172 | build_loop_iteration_domains, add_conditions_to_domain, | |
5173 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
5174 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
5175 | build_sese_conditions, add_conditions_to_constraints, | |
5176 | build_scop_iteration_domain, build_access_matrix_with_af, | |
5177 | build_access_matrix, | |
5178 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
5179 | ||
5180 | * graphite-sese-to-poly.c: New. | |
5181 | * graphite-sese-to-poly.h: New. | |
5182 | ||
5183 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
5184 | ||
5185 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5186 | ||
5187 | * graphite.c: Split graphite code generation to a new file. | |
5188 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
5189 | max_precision_type, clast_to_gcc_expression_red, | |
5190 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
5191 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
5192 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
5193 | graphite_create_new_guard, clast_get_body_of_loop, | |
5194 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
5195 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
5196 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5197 | compute_cloog_iv_types, free_scattering, save_var_name, | |
5198 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
5199 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
5200 | print_generated_program, debug_generated_program, | |
5201 | gloog): Moved to graphite-clast-to-gimple.c. | |
5202 | ||
5203 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
5204 | ||
5205 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
5206 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
5207 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
5208 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
5209 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
5210 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
5211 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
5212 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
5213 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
5214 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
5215 | get_vdef_before_sese, sese_adjust_vphi, | |
5216 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
5217 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
5218 | is_iv, expand_scalar_variables_ssa_name, | |
5219 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
5220 | expand_scalar_variables, rename_variables, remove_condition, | |
5221 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
5222 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
5223 | default_liveout_before_guard, add_guard_exit_phis, | |
5224 | insert_guard_phis, register_old_and_new_names, | |
5225 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
5226 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
5227 | if_region_set_false_region, create_if_region_on_edge, | |
5228 | move_sese_in_condition): Moved to sese.c. | |
5229 | ||
5230 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
5231 | if_region_exit, if_region_get_condition_block, | |
5232 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
5233 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
5234 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
5235 | ivtype_map_elt, new_ivtype_map_elt, | |
5236 | recompute_all_dominators): Moved to sese.h. | |
5237 | ||
5238 | * graphite-clast-to-gimple.c: New. | |
5239 | * graphite-clast-to-gimple.h: New. | |
5240 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
5241 | * sese.c: Modified as said above. | |
5242 | * sese.h: Same. | |
5243 | ||
5244 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5245 | ||
5246 | * graphite.c: Split scop detection to a new file. | |
5247 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
5248 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
5249 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
5250 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
5251 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
5252 | find_single_entry_edge, find_single_exit_edge, | |
5253 | create_single_entry_edge, sd_region_without_exit, | |
5254 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
5255 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
5256 | Moved to graphite-scop-detection.c. | |
5257 | ||
5258 | * graphite-scop-detection.c: New. | |
5259 | * graphite-scop-detection.h: New. | |
5260 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
5261 | ||
5262 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
5263 | tree-scalar-evolution.h. | |
5264 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
5265 | build_sese_loop_nests): Moved here from graphite.c. | |
5266 | (param_index): Renamed parameter_index_in_region. | |
5267 | ||
5268 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5269 | Sebastian Pop <sebastian.pop@amd.com> | |
5270 | ||
5271 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
5272 | * gcc.dg/graphite/block-1.c: Same. | |
5273 | * gcc.dg/graphite/block-5.c: Same. | |
5274 | * gcc.dg/graphite/block-6.c: Same. | |
5275 | ||
5276 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5277 | Sebastian Pop <sebastian.pop@amd.com> | |
5278 | ||
5279 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
5280 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
5281 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
5282 | graphite-data-ref.h. | |
5283 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
5284 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
5285 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
5286 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5287 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
5288 | scop_nb_params): Moved to graphite-poly.h. | |
5289 | * graphite-data-ref.c: Same. | |
5290 | * graphite-data-ref.h: New. | |
5291 | * graphite.c: Same. | |
5292 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
5293 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
5294 | is_interchange_valid, graphite_trans_bb_block, | |
5295 | graphite_trans_loop_block, scop_max_loop_depth, | |
5296 | graphite_trans_scop_block, graphite_apply_transformations, | |
5297 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
5298 | graphite-poly.c. | |
5299 | * graphite-poly.h: New. | |
5300 | * graphite-poly.c: New. | |
5301 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
5302 | (graphite-poly.o): New rule. | |
5303 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
5304 | (DR_SCOP): Removed. | |
5305 | ||
5306 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5307 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5308 | ||
5309 | * graphite.c: Replace gb -> gbb. | |
5310 | * graphite.h: Same. | |
5311 | * graphite-data-ref.c: Same. | |
5312 | ||
5313 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5314 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5315 | ||
5316 | * Makefile.in (OBJS-commmon): Add sese.o. | |
5317 | (sese.o): New. | |
5318 | (graphite.o): Add sese.h. | |
5319 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
5320 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
5321 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
5322 | Move to sese. | |
5323 | (block_before_scop): Add missing return. | |
5324 | (new_scop, free_scop): Remove SESE data structures. | |
5325 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
5326 | find_scop_parameters, build_loop_iteration_domains, | |
5327 | add_conditions_to_domain, register_scop_liveout_renames, | |
5328 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
5329 | ||
5330 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
5331 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
5332 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
5333 | non iv scalar phi nodes. | |
5334 | (print_scop_statistics): New. | |
5335 | (graphite_transform_loops): Cleanup. | |
5336 | ||
5337 | * graphite.h: Move to sese & cleanup. | |
5338 | * sese.c: New. | |
5339 | * sese.h: New. | |
5340 | ||
5341 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5342 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5343 | ||
5344 | * graphite.c (build_scop_conditions_1): Conditions are only | |
5345 | at the end of a basic block. | |
5346 | ||
5347 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5348 | Tobias Grosser <grosser@fim.uni-passau> | |
5349 | ||
5350 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
5351 | field. | |
5352 | (GBB_ALPHA): Removed. | |
5353 | ||
5354 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5355 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5356 | ||
5357 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
5358 | GBB_DYNAMIC_SCHEDULE. | |
5359 | * graphite.c (new_graphite_bb): Same. | |
5360 | (free_graphite_bb): Same. | |
5361 | (build_scop_dynamic_schedules): Removed. | |
5362 | (graphite_transform_loops): Don't call it. | |
5363 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
5364 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
5365 | ||
5366 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5367 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5368 | ||
5369 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
5370 | (print_graphite_bb): Same. | |
5371 | (build_cloog_prog): Same. | |
5372 | ||
5373 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5374 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5375 | ||
5376 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
5377 | ||
5378 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5379 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5380 | ||
5381 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
5382 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
5383 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
5384 | ||
5385 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5386 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5387 | ||
5388 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
5389 | liveout_renames, add_params fields... | |
5390 | (struct sese): ... here. | |
5391 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
5392 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
5393 | ||
5394 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5395 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5396 | ||
5397 | * graphite.c (print_scop): Do not print the CLooG program. | |
5398 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
5399 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
5400 | (find_transform): Renamed scop_to_clast. | |
5401 | (print_generated_program, debug_generated_program): New. | |
5402 | (graphite_transform_loops): Adapt to new interface. | |
5403 | * graphite.h (struct scop): Remove program field. | |
5404 | (SCOP_PROG): Removed. | |
5405 | (print_generated_program, debug_generated_program): Declared. | |
5406 | ||
5407 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5408 | ||
5409 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
5410 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
5411 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
5412 | free_graphite_bb, build_scop_canonical_schedules, | |
5413 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
5414 | schedules are now represented using a ppl_Linear_Expression_t. | |
5415 | * graphite.h (struct graphite_bb): Same. | |
5416 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
5417 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
5418 | ||
5419 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5420 | ||
5421 | * graphite.c: Free local memory. | |
5422 | * graphite-ppl.c: Same. | |
5423 | ||
5424 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5425 | ||
5426 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
5427 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
5428 | swap_constraint_variables, scale_constraint_variable): Removed. | |
5429 | (graphite_trans_bb_strip_mine): Remove pong. | |
5430 | * graphite-ppl.c: Include missing header files. | |
5431 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
5432 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
5433 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
5434 | ||
5435 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
5436 | ||
5437 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
5438 | (build_scop_iteration_domain): Same. | |
5439 | ||
5440 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5441 | ||
5442 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5443 | ping pong. | |
5444 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5445 | scan_tree_for_params_int): New. | |
5446 | * graphite-ppl.c (oppose_constraint): New. | |
5447 | (insert_constraint_into_matrix): Implement missing cases. | |
5448 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5449 | ||
5450 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5451 | ||
5452 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5453 | use ppl_move_dimension. | |
5454 | ||
5455 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5456 | ||
5457 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
5458 | * graphite.c: Same. | |
5459 | * graphite.h: Same. | |
5460 | * graphite-ppl.c: Same. | |
5461 | * graphite-ppl.h: Same. | |
5462 | ||
5463 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5464 | ||
5465 | Revert last 3 commits. | |
5466 | ||
5467 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5468 | ||
5469 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5470 | ping pong. | |
5471 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5472 | scan_tree_for_params_int): New. | |
5473 | * graphite-ppl.c (oppose_constraint): New. | |
5474 | (insert_constraint_into_matrix): Implement missing cases. | |
5475 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5476 | ||
5477 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5478 | ||
5479 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
5480 | ||
5481 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5482 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5483 | ||
5484 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5485 | use ppl_move_dimension. | |
5486 | * graphite-ppl.c (ppl_move_dimension): New. | |
5487 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
5488 | ||
5489 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5490 | ||
5491 | * graphite.c: Do not include cloog/cloog.h. | |
5492 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
5493 | ||
5494 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5495 | ||
5496 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
5497 | (graphite.o): Add dependence on graphite-ppl.h. | |
5498 | (graphite-ppl.o): New. | |
5499 | (graphite-data-ref.c): Ping pong between PPL data structures | |
5500 | and matrices. | |
5501 | * graphite-ppl.c: New. | |
5502 | * graphite-ppl.h: New. | |
5503 | * graphite.c: Include graphite-ppl.h. | |
5504 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
5505 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
5506 | Ping pong between PPL data structures and matrices. | |
5507 | (new_graphite_bb): Create a PPL constraint system. | |
5508 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
5509 | (build_loop_iteration_domains): Use PPL functions. | |
5510 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
5511 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
5512 | CloogMatrix for representing the domain. | |
5513 | (scop): Remove static_schedule. | |
5514 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
5515 | ||
5516 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
5517 | ||
5518 | * graphite.c: Fix some comments. | |
5519 | ||
5520 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
5521 | ||
5522 | PR middle-end/38953 | |
5523 | * graphite.c (if_region_set_false_region): After moving a region | |
5524 | in the false branch of a condition, remove the empty dummy | |
5525 | basic block. | |
5526 | (gloog): Remove wrong fix for PR38953. | |
5527 | ||
5528 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5529 | ||
5530 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
5531 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
5532 | register_bb_in_sese, new_sese, free_sese): Moved. | |
5533 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
5534 | outermost_loop_in_scop, build_scop_iteration_domain, | |
5535 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
5536 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
5537 | Use loop_in_sese_p instead of loop_in_scop_p. | |
5538 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
5539 | (free_scop): Do not free SCOP_BBS_B. | |
5540 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
5541 | ref_nb_loops): Moved here... | |
5542 | * graphite.h (ref_nb_loops): ... from here. | |
5543 | (struct scop): Remove bbs_b bitmap. | |
5544 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
45489e99 | 5545 | * gcc.dg/graphite/scop-19.c: New |
2abae5f1 SP |
5546 | |
5547 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5548 | ||
5549 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
5550 | detection. | |
5551 | ||
5552 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5553 | ||
5554 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
5555 | eq_loop_to_cloog_loop): Remove. | |
5556 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
5557 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
5558 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
5559 | ||
5560 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5561 | ||
5562 | * opts.c (decode_options): Only add graphite options to O2 | |
5563 | if we compile with graphite enabled. | |
5564 | ||
5565 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5566 | ||
5567 | * Merge from mainline (r143163:143684). | |
5568 | ||
5569 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5570 | ||
5571 | * graphite.c (debug_value): Removed. | |
5572 | * graphite.h (debug_value): Removed. | |
5573 | ||
5574 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5575 | ||
5576 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
5577 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
5578 | SSA form. pass_copy_prop should be fixed. | |
5579 | ||
5580 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5581 | ||
5582 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
5583 | ||
5584 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5585 | ||
5586 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
5587 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
5588 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
5589 | changed the CFG. | |
5590 | ||
5591 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
5592 | ||
5593 | * graphite.c (gloog): Return true when code gen succeeded. | |
5594 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
5595 | the code of the function did not changed. After cleanup_tree_cfg | |
5596 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
5597 | form. | |
5598 | ||
5599 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
5600 | ||
5601 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
5602 | gimple_call_lhs is NULL. | |
5603 | ||
5604 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
5605 | Tobias Grosser <tobi.grosser@amd.com> | |
5606 | ||
5607 | * graphite.c (graphite_trans_scop_block): Do not block single | |
5608 | nested loops. | |
5609 | ||
5610 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5611 | Tobias Grosser <tobi.grosser@amd.com> | |
5612 | ||
5613 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
5614 | zero. | |
5615 | ||
5616 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5617 | Tobias Grosser <tobi.grosser@amd.com> | |
5618 | ||
5619 | * graphite.c (compare_prefix_loops): New. | |
5620 | (build_scop_canonical_schedules): Rewritten. | |
5621 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
5622 | after build_scop_iteration_domain. | |
5623 | ||
5624 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5625 | Tobias Grosser <tobi.grosser@amd.com> | |
5626 | ||
5627 | * graphite.c (add_conditions_to_domain): Add the loops to | |
5628 | the dimension of the iteration domain. Do copy the domain | |
5629 | only when it exists. | |
5630 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
5631 | (add_conditions_to_constraints): New. | |
5632 | (can_generate_code_stmt, can_generate_code): Removed. | |
5633 | (gloog): Do not call can_generate_code. | |
5634 | (graphite_transform_loops): Call add_conditions_to_constraints | |
5635 | after building the iteration domain. | |
5636 | ||
5637 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5638 | Tobias Grosser <tobi.grosser@amd.com> | |
5639 | Jan Sjodin <jan.sjodin@amd.com> | |
5640 | ||
5641 | * graphite.c (scan_tree_for_params): On substractions negate | |
5642 | all the coefficients of the term. | |
5643 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
5644 | of more than two operands. | |
5645 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
5646 | (get_vdef_before_scop): Handle also the case of default definitions. | |
5647 | ||
5648 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5649 | ||
5650 | PR middle-end/38431 | |
5651 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
5652 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
5653 | (gloog): Do not call cleanup_tree_cfg. | |
5654 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
5655 | scops have been code generated. | |
5656 | ||
5657 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5658 | ||
5659 | * passes.c (init_optimization_passes): Schedule after | |
5660 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
5661 | ||
5662 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5663 | ||
5664 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
5665 | Fix comment. | |
5666 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
5667 | Set the type of an expression to the type of its assign statement. | |
5668 | (expand_scalar_variables_expr): Do not pass loop_p. | |
5669 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
5670 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
5671 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
5672 | ||
5673 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5674 | ||
5675 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
5676 | an expression to the gimple_expr_type of its assign statement. | |
5677 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
5678 | or tcc_declaration. | |
5679 | ||
5680 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5681 | ||
5682 | PR tree-optimization/38786 | |
45489e99 | 5683 | * gcc.dg/graphite/pr38786.c: New. |
2abae5f1 SP |
5684 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from |
5685 | the SSA_NAME case of expand_scalar_variables_expr. | |
5686 | (expand_scalar_variables_expr): Also gather the scalar computation | |
5687 | used to index the memory access. | |
5688 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
5689 | the gimple_stmt_iterator where it inserts new code. | |
5690 | ||
5691 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5692 | ||
45489e99 | 5693 | * gcc.dg/graphite/block-3.c: Fix compile error on 32bit. |
2abae5f1 SP |
5694 | |
5695 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5696 | ||
5697 | * opts.c (decode_options): Enable flag_graphite_identity and | |
5698 | flag_loop_block in -O2 and above. | |
5699 | ||
5700 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5701 | ||
5702 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
5703 | Fix merge problem: replace with the file from trunk. | |
5704 | ||
5705 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5706 | ||
5707 | * Merge from mainline (r141727:143163). | |
5708 | ||
5709 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
5710 | Jan Sjodin <jan.sjodin@amd.com> | |
5711 | ||
5712 | PR tree-optimization/38559 | |
45489e99 | 5713 | * gcc.dg/graphite/pr38559.c: New. |
2abae5f1 SP |
5714 | |
5715 | * graphite.c (debug_value, copy_constraint, | |
5716 | swap_constraint_variables, scale_constraint_variable, ): New. | |
5717 | (get_lower_bound, get_upper_bound): Removed. | |
5718 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
5719 | only for constant number of iterations. Fully copy upper and | |
5720 | lower bound constraints, not only the constant part of them. | |
5721 | * graphite.h (debug_value): Declared. | |
5722 | ||
5723 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
5724 | ||
5725 | PR tree-optimization/38492 | |
5726 | PR tree-optimization/38498 | |
5727 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
5728 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
5729 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
5730 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
5731 | (graphite_loop_normal_form): Use gcc_assert. | |
5732 | (scan_tree_for_params): Use CASE_CONVERT. | |
5733 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
5734 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
5735 | Use gcc_assert. Discard scops that contain unhandled cases. | |
5736 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
5737 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
5738 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
5739 | recompute it wrongly. | |
5740 | (graphite_trans_bb_block): Same. | |
5741 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
5742 | (graphite_trans_scop_block): Do not print that the loop has been | |
5743 | blocked. | |
5744 | (graphite_transform_loops): Do not handle scops that contain condition | |
5745 | scalar phi nodes. | |
5746 | ||
45489e99 | 5747 | * gcc.dg/graphite/pr38500.c: Fixed warning as committed |
2abae5f1 | 5748 | in trunk. |
45489e99 SP |
5749 | * gcc.dg/graphite/block-0.c: Update test. |
5750 | * gcc.dg/graphite/block-1.c: Same. | |
5751 | * gcc.dg/graphite/block-2.c: Remove xfail and test for | |
2abae5f1 | 5752 | blocking. |
45489e99 SP |
5753 | * gcc.dg/graphite/block-4.c: Remove test for strip mine. |
5754 | * gcc.dg/graphite/block-3.c: New. | |
5755 | * gcc.dg/graphite/pr38498.c: New. | |
2abae5f1 SP |
5756 | |
5757 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
5758 | ||
5759 | PR tree-optimization/38510 | |
5760 | * gcc.dg/graphite/pr38510.c: New. | |
5761 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
5762 | (translate_clast): Call recompute_all_dominators before | |
5763 | graphite_verify. | |
5764 | (gloog): Call recompute_all_dominators before graphite_verify. | |
5765 | ||
5766 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
5767 | ||
5768 | PR tree-optimization/38492 | |
5769 | * graphite.c (rename_map_elt, debug_rename_elt, | |
5770 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
5771 | rename_map_elt_info, eq_rename_map_elts, | |
5772 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
5773 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
5774 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
5775 | (sese_build_livein_liveouts): New. | |
5776 | (new_sese, free_sese): New. | |
5777 | (new_scop): Call new_sese. | |
5778 | (free_scop): Call free_sese. | |
5779 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
5780 | (register_old_new_names): Renamed register_old_and_new_names. | |
5781 | (register_scop_liveout_renames, add_loop_exit_phis, | |
5782 | insert_loop_close_phis, struct igp, | |
5783 | default_liveout_before_guard, add_guard_exit_phis, | |
5784 | insert_guard_phis, copy_renames): New. | |
5785 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
5786 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
5787 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
5788 | (scop_adjust_phis_for_liveouts): New. | |
5789 | (gloog): Call scop_adjust_phis_for_liveouts. | |
5790 | ||
5791 | * graphite.h (struct sese): Documented. Added fields liveout, | |
5792 | num_ver and livein. | |
5793 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
5794 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
5795 | (struct scop): Added field liveout_renames. | |
5796 | (SCOP_LIVEOUT_RENAMES): New. | |
5797 | ||
5798 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5799 | ||
5800 | PR tree-optimization/38409 | |
5801 | * gcc.dg/graphite/pr38409.c: New. | |
5802 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
5803 | ||
5804 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5805 | ||
5806 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
5807 | integer_type_node. | |
5808 | (graphite_create_new_loop): Don't fold_convert the already | |
5809 | fold_convert-ed expression. | |
5810 | ||
5811 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
5812 | ||
5813 | PR tree-optimization/38446 | |
5814 | * gcc.dg/graphite/pr38446.c: New. | |
5815 | * graphite.c (register_bb_in_sese): New. | |
5816 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
5817 | looking at the bbs in the region. | |
5818 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
5819 | structure and initialize at the time of defining new scop. | |
5820 | ||
5821 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5822 | ||
5823 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
5824 | (find_params_in_bb): Do not free data refs. | |
5825 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
5826 | ||
5827 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5828 | ||
45489e99 SP |
5829 | * gcc.dg/graphite/scop-16.c: Test only scop specific info. |
5830 | * gcc.dg/graphite/scop-17.c: Same. | |
5831 | * gcc.dg/graphite/block-5.c: New. | |
5832 | * gcc.dg/graphite/block-6.c: New. | |
5833 | * gcc.dg/graphite/pr37485.c: Clean dump file after. | |
5834 | * gcc.dg/graphite/pr37684.c: Same. | |
5835 | * gcc.dg/graphite/block-2.c: Same. | |
2abae5f1 SP |
5836 | |
5837 | * graphite.c (struct ivtype_map_elt): New. | |
5838 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
5839 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
5840 | gcc_type_for_cloog_iv): New. | |
5841 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
5842 | variable from the original loop, except for the automatically | |
5843 | generated loops, i.e., in the case of a strip-mined loop, in | |
5844 | which case there is no original loop: in that case just use | |
5845 | integer_type_node. | |
5846 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
5847 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
5848 | (clast_name_to_gcc): Accept params to be NULL. | |
5849 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
5850 | Convert to that type all the expressions built by this function. | |
5851 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
5852 | (graphite_translate_clast_equation): Compute the type of the | |
5853 | clast_equation before translating its LHS and RHS. | |
5854 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
5855 | (graphite_create_new_loop): Compute the type of the induction | |
5856 | variable before translating the lower and upper bounds and before | |
5857 | creating the induction variable. | |
5858 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
5859 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
5860 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
5861 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5862 | compute_cloog_iv_types): New. | |
5863 | (gloog): Call compute_cloog_iv_types before starting the | |
5864 | translation of the clast. | |
5865 | ||
5866 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
5867 | (GBB_CLOOG_IV_TYPES): New. | |
5868 | (debug_ivtype_map): Declared. | |
5869 | (oldiv_for_loop): New. | |
5870 | ||
5871 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5872 | ||
5873 | PR middle-end/38459 | |
5874 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
5875 | (param_index): Assert if parameter is not know after parameter | |
5876 | detection. | |
5877 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
5878 | (find_scop_parameters): Mark, that we have finished parameter | |
5879 | detection. | |
5880 | (graphite_transform_loops): Move condition detection before parameter | |
5881 | detection. | |
5882 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
45489e99 | 5883 | * gfortran.dg/graphite/pr38459.f90: New. |
2abae5f1 SP |
5884 | |
5885 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5886 | ||
5887 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
5888 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
5889 | generate code. | |
5890 | ||
5891 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5892 | ||
5893 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
5894 | (print_scop): Ditto. | |
5895 | ||
5896 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
5897 | ||
5898 | PR middle-end/38084 | |
45489e99 | 5899 | Fix gfortran.dg/graphite/id-3.f90. |
2abae5f1 SP |
5900 | * graphite.c (scopdet_basic_block_info): Fix bug that found some |
5901 | regions more than once. | |
5902 | ||
5903 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5904 | ||
45489e99 | 5905 | Fix gfortran.dg/graphite/id-4.f90. |
2abae5f1 SP |
5906 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand |
5907 | when not needed. | |
5908 | ||
5909 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5910 | ||
45489e99 | 5911 | Fix gfortran.dg/graphite/id-1.f90. |
2abae5f1 SP |
5912 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. |
5913 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
5914 | (max_precision_type): New. | |
5915 | (value_clast): Removed. | |
5916 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
5917 | Use max_precision_type and update use of gmp_cst_to_tree. | |
5918 | (graphite_translate_clast_equation): Use max_precision_type. | |
5919 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
5920 | use the type of the condition. | |
5921 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
5922 | max_precision_type of lb and ub. | |
5923 | ||
5924 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
5925 | ||
5926 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
5927 | and sinfo.last. | |
5928 | ||
5929 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
5930 | ||
45489e99 SP |
5931 | * gcc.dg/graphite/pr38084.c: New. |
5932 | * gfortran.dg/graphite/id-1.f90: New. | |
5933 | * gfortran.dg/graphite/id-2.f90: New. | |
5934 | * gfortran.dg/graphite/id-3.f90: New. | |
5935 | * gfortran.dg/graphite/id-4.f90: New. | |
5936 | * gfortran.dg/graphite/pr37857.f90: New. | |
2abae5f1 SP |
5937 | |
5938 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
5939 | Jan Sjodin <jan.sjodin@amd.com> | |
5940 | Harsha Jagasia <harsha.jagasia@amd.com> | |
5941 | ||
5942 | PR middle-end/37852 | |
5943 | PR middle-end/37883 | |
5944 | PR middle-end/37928 | |
5945 | PR middle-end/37980 | |
5946 | PR middle-end/38038 | |
5947 | PR middle-end/38039 | |
5948 | PR middle-end/38073 | |
5949 | PR middle-end/38083 | |
5950 | PR middle-end/38125 | |
5951 | ||
45489e99 SP |
5952 | * gcc.dg/graphite/pr38073.c: New. |
5953 | * gcc.dg/graphite/pr37928.c: New. | |
5954 | * gcc.dg/graphite/pr37883.c: New. | |
5955 | * gcc.dg/graphite/pr38125.c: New. | |
5956 | * gfortran.dg/graphite/pr38083.f90: New. | |
5957 | * gfortran.dg/graphite/pr37852.f90: New. | |
5958 | * gfortran.dg/graphite/pr37980.f90: New. | |
2abae5f1 | 5959 | |
45489e99 | 5960 | * gcc.dg/graphite/scop-18.c: Remove reduction, test for |
2abae5f1 SP |
5961 | the number of detected scops. Copy exact same test for loop |
5962 | blocking... | |
45489e99 | 5963 | * gcc.dg/graphite/block-1.c: Fix the number of expected |
2abae5f1 | 5964 | loops to be blocked as reductions are not handled. |
45489e99 | 5965 | * gcc.dg/graphite/block-4.c: ...here. New. |
2abae5f1 SP |
5966 | |
5967 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
5968 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
5969 | ...here. | |
5970 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
5971 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
5972 | (graphite.o-warn): Removed -Wno-error. | |
5973 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
5974 | to be a NULL pointer. Call update_stmt. Return the newly created | |
5975 | cannonical induction variable. | |
5976 | ||
5977 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
5978 | ||
5979 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
5980 | Include value-prof.h. | |
5981 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
5982 | (get_old_iv_from_ssa_name): Removed. | |
5983 | (graphite_stmt_p): New. | |
5984 | (new_graphite_bb): Test for useful statements before building a | |
5985 | graphite statement for the basic block. | |
5986 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
5987 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
5988 | reason. | |
5989 | (recompute_all_dominators, graphite_verify, | |
5990 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
5991 | (scop_record_loop): Call graphite_loop_normal_form. | |
5992 | (build_scop_loop_nests): Iterate over all the blocks of the | |
5993 | function instead of relying on the incomplete information from | |
5994 | SCOP_BBS. Return the success of the operation. | |
5995 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
5996 | (add_bb_domains): Removed. | |
5997 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
5998 | Add the iteration domain only to the basic blocks that have been | |
5999 | translated to graphite. | |
6000 | (build_scop_conditions_1): Add constraints only if the basic | |
6001 | block have been translated to graphite. | |
6002 | (build_scop_data_accesses): Completely disabled until data | |
6003 | dependence is correctly implemented. | |
6004 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
6005 | (remove_all_edges_1, remove_all_edges): Removed. | |
6006 | (get_new_name_from_old_name): New. | |
6007 | (graphite_rename_variables_in_stmt): Renamed | |
6008 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
6009 | Use replace_exp and update_stmt. | |
6010 | (is_old_iv): Renamed is_iv. | |
6011 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
6012 | Use replace_exp and update_stmt. | |
6013 | (expand_scalar_variables_expr): Same. Use the map to get the | |
6014 | new names for the renaming of induction variables and for the | |
6015 | renaming of variables after a basic block has been copied. | |
6016 | (expand_scalar_variables): Same. | |
6017 | (graphite_rename_variables): Renamed rename_variables. | |
6018 | (move_phi_nodes): Removed. | |
6019 | (get_false_edge_from_guard_bb): New. | |
6020 | (build_iv_mapping): Do not insert the induction variable of a | |
6021 | loop in the renaming iv map if the basic block does not belong | |
6022 | to that loop. | |
6023 | (register_old_new_names, graphite_copy_stmts_from_block, | |
6024 | copy_bb_and_scalar_dependences): New. | |
6025 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
6026 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
6027 | At each translation step call graphite_verify ensuring the | |
6028 | consistency of the SSA, loops and dominators information. | |
6029 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
6030 | find_vdef_for_var_1, find_vdef_for_var, | |
6031 | patch_phis_for_virtual_defs): Removed huge hack. | |
6032 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
6033 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
6034 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
6035 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
6036 | if_region_get_condition_block, if_region_set_false_region, | |
6037 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
6038 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
6039 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
6040 | rewrite_into_sese_closed_ssa): New. | |
6041 | (gloog): Remove dead code. Early return if code cannot be | |
6042 | generated. Call cleanup_tree_cfg once the scop has been code | |
6043 | generated. | |
6044 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
6045 | block loops with less than two loops. | |
6046 | (graphite_apply_transformations): Remove the call to | |
6047 | scop_remove_ignoreable_gbbs. | |
6048 | (limit_scops): When build_scop_loop_nests fails, continue on | |
6049 | the next scop. Fix open_scop.entry. | |
6050 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
6051 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
6052 | Call initialize_original_copy_tables and free_original_copy_tables | |
6053 | to be able to copy basic blocks during code generation. | |
6054 | When build_scop_loop_nests fails, continue on next scop. | |
6055 | (value_clast): New union. | |
6056 | (clast_to_gcc_expression): Fix type cast warning. | |
6057 | ||
6058 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
6059 | ||
6060 | * Merge from mainline (r140838:141727). | |
6061 | ||
6062 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6063 | ||
6064 | PR middle-end/37833 | |
6065 | ||
6066 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
6067 | ||
6068 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6069 | ||
6070 | PR middle-end/37943 | |
6071 | ||
6072 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
6073 | exits and conditions. | |
45489e99 | 6074 | * gcc.dg/graphite/pr37943.c: New. |
2abae5f1 SP |
6075 | |
6076 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6077 | ||
6078 | PR middle-end/37886 | |
6079 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
6080 | ||
6081 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6082 | ||
6083 | * doc/invoke.texi: Fix spaces. | |
6084 | ||
6085 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
6086 | ||
6087 | PR tree-optimization/37891 | |
6088 | Reverted last commit. | |
6089 | * graphite.c (create_single_entry_edge): Set | |
6090 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6091 | ||
6092 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
6093 | Mitul Thakkar <mitul.thakkar@amd.com> | |
6094 | ||
6095 | * graphite.c (create_single_entry_edge): Set | |
6096 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6097 | ||
6098 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
6099 | ||
6100 | * doc/invoke.texi: Add -fgraphite-identity. | |
6101 | * graphite.c (graphite_apply_transformations): Check for | |
6102 | -fgraphite-identity. | |
6103 | * toplev.c (process_options): Add flag_graphite_identity. | |
6104 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
6105 | ||
6106 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6107 | ||
6108 | Undo changes from 2008-10-02: | |
6109 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6110 | operand type when copying the operand to a variable of different type. | |
6111 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6112 | with the IV name after increment. | |
6113 | ||
6114 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6115 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6116 | ||
6117 | PR tree-optimization/37828 | |
45489e99 | 6118 | * gcc.dg/graphite/pr37828.c: New. |
2abae5f1 SP |
6119 | * graphite.c (graphite_trans_loop_block): Do not loop block |
6120 | single nested loops. | |
6121 | ||
6122 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
6123 | Sebastian Pop <sebastian.pop@amd.com> | |
6124 | ||
6125 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
6126 | rename_map_elt_info, eq_rename_map_elts): New. | |
6127 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
6128 | (expand_scalar_variables_expr): Change parameters. | |
6129 | (expand_scalar_variables_stmt): Same. | |
6130 | (expand_scalar_variables): Same. | |
6131 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
6132 | (build_iv_mapping): New. | |
6133 | (translate_clast): Call build_iv_mapping. | |
6134 | * graphite.h (gbb_p): New name. | |
6135 | ||
6136 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
6137 | ||
6138 | PR tree-optimization/37684 | |
6139 | * gcc.dg/graphite/pr37684.c: New. | |
6140 | * graphite.c (exclude_component_ref): New. | |
6141 | (is_simple_operand): Call exclude_component_ref. | |
6142 | ||
6143 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
6144 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6145 | ||
6146 | PR tree-optimization/37485 | |
6147 | * gcc.dg/graphite/block-2.c: New | |
6148 | * graphite.c (gmp_cst_to_tree): Moved. | |
6149 | (iv_stack_entry_is_constant): New. | |
6150 | (iv_stack_entry_is_iv): New. | |
6151 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
6152 | (loop_iv_stack_insert_constant): New. | |
6153 | (loop_iv_stack_pop): Use new datatpype. | |
6154 | (loop_iv_stack_get_iv): Same. | |
6155 | (loop_iv_stack_get_iv_from_name): Same. | |
6156 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
6157 | (loop_iv_stack_patch_for_consts): New. | |
6158 | (loop_iv_stack_remove_constants): New. | |
6159 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
6160 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
6161 | loop_iv_stack_remove_constants. | |
6162 | (gloog): Use new datatype. Redirect construction edge to end | |
6163 | block to avoid accidental deletion. | |
6164 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
6165 | iv stack entry. | |
6166 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
6167 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
6168 | ||
6169 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6170 | ||
6171 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6172 | operand type when copying the operand to a variable of different type. | |
6173 | ||
6174 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6175 | ||
6176 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6177 | with the IV name after increment. | |
6178 | ||
6179 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6180 | ||
6181 | * Merge from mainline (r140164:140838). | |
6182 | ||
6183 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6184 | ||
6185 | * graphite-data-ref.c: New. | |
6186 | * graphite.c (print_scop): Also dump the dependence graph. | |
6187 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
6188 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
6189 | (build_scop_dynamic_schedules): New. | |
6190 | (build_access_matrix_with_af): Fixed column numbering. | |
6191 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
6192 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
6193 | (struct scop): Add dep_graph field. | |
6194 | (SCOP_DEP_GRAPH): Defined. | |
6195 | (ref_nb_loops): Fixed and moved to other position. | |
6196 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
6197 | (nb_loops_around_loop_in_scop): New. | |
6198 | (graphite_dump_dependence_graph): Declared. | |
6199 | (graphite_build_rdg_all_levels): Declared. | |
6200 | (graphite_test_dependence): Declared. | |
6201 | * Makefile.in (graphite-data-ref.o): New target. | |
6202 | ||
6203 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
6204 | ||
6205 | * Merge from mainline (139870:140164). | |
6206 | ||
6207 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6208 | ||
6209 | * Merge from mainline (138275:139870). | |
45489e99 | 6210 | * gcc.dg/graphite/scop-matmult.c: XFailed as one of |
2abae5f1 SP |
6211 | the commits from trunk broke the niter detection. |
6212 | ||
6213 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6214 | ||
6215 | * graphite.c: Add more documentation. Fix formatting. | |
6216 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6217 | loop_iv_stack_debug): Moved... | |
6218 | (schedule_to_scattering): Move before use. | |
6219 | (dot_all_scops): Include in "#if 0" the code for system | |
6220 | call dotty. | |
6221 | ||
6222 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6223 | loop_iv_stack_debug): ...here. | |
6224 | ||
6225 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
6226 | ||
6227 | * tree-phinodes.c (make_phi_node): Extern. | |
6228 | (add_phi_node_to_bb): New. | |
6229 | (create_phi_node): Call add_phi_node_to_bb. | |
6230 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
6231 | (remove_statement): Handle case where stored phi was updated | |
6232 | and is no longer the same. | |
6233 | * graphite.c (is_parameter): New. | |
6234 | (is_old_iv): New. | |
6235 | (expand_scalar_variables_expr): New. | |
6236 | (expand_scalar_variables_stmt): New. | |
6237 | (expand_scalar_variables): New. | |
6238 | (move_phi_nodes): Create new phi instead of moving old one. | |
6239 | (translate_clast): Call expand_scalar_variables. | |
6240 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
6241 | (skip_phi_defs): New. | |
6242 | (collect_scop_exit_phi_args): New. | |
6243 | (patch_scop_exit_phi_args): New. | |
6244 | (gloog): Patch phis after scop. | |
6245 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
6246 | (make_phi_node): Declared. | |
6247 | ||
6248 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6249 | ||
6250 | * graphite.c (end_scop): Split the entry of the scop when it | |
6251 | is the header of the loop in which the scop is ending. | |
6252 | (build_scops_1, limit_scops): Update uses of end_scop. | |
6253 | ||
6254 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6255 | ||
6256 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
6257 | SCOP_ENTRY or SCOP_EXIT. | |
6258 | ||
6259 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6260 | ||
6261 | * graphite.c (get_construction_edge): Removed. | |
6262 | (gloog): Construction edge is the scop entry edge. | |
6263 | ||
6264 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6265 | ||
6266 | * graphite.c (can_generate_for_scop): Removed. | |
6267 | (gloog): Do not call it. | |
6268 | ||
6269 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6270 | ||
6271 | * graphite.c (new_scop): Entry of a scop is an edge. | |
6272 | Initialize SESE region. | |
6273 | (free_scop): Free SESE region. | |
6274 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
6275 | (split_difficult_bb): New, split from end_scop. | |
6276 | (end_scop): Exit of a scop is an edge. | |
6277 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
6278 | not automatically updated and thus is always wrong. | |
6279 | * graphite.h (struct sese): New. | |
6280 | (SESE_ENTRY): New. | |
6281 | (SESE_EXIT): New. | |
6282 | (struct scop): New field for a SESE region. Remove entry, exit. | |
6283 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
6284 | semantics as before. Moved comment around. | |
6285 | ||
6286 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6287 | Sebastian Pop <sebastian.pop@amd.com> | |
6288 | ||
6289 | * graphite.c (graphite_transform_loops): Always enable gloog | |
6290 | and find_transform when ENABLE_CHECKING. | |
6291 | ||
6292 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6293 | ||
6294 | * graphite.c (graphite_transform_loops): Move pretty printer | |
6295 | of SCOPs before doing any transform. Remove call to print_scops | |
6296 | and dot_all_scops_1. | |
6297 | ||
6298 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6299 | ||
6300 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
6301 | (print_graphite_bb): Same. | |
6302 | ||
6303 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6304 | ||
6305 | * graphite.c (dot_all_scops_1): Cleanup. | |
6306 | (move_scops): Fix comment. | |
6307 | ||
6308 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6309 | ||
6310 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
6311 | ||
6312 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6313 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6314 | ||
6315 | * graphite.c (build_scop_bbs): Factor up code. | |
6316 | ||
6317 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6318 | ||
6319 | * graphite.c (gloog): Update dominator info. | |
6320 | ||
6321 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6322 | ||
6323 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
6324 | ||
6325 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6326 | ||
6327 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
6328 | initialization. | |
6329 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
6330 | (translate_clast): Correct formatting. | |
6331 | * graphite.h (struct num_map): Removed. | |
6332 | (struct graphite_bb): Remove num_map field. | |
6333 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
6334 | ||
6335 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6336 | ||
6337 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
6338 | (build_scop_data_accesses): Same. | |
6339 | ||
6340 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6341 | ||
6342 | * graphite.c (build_scop_data_accesses): Don't construct | |
6343 | access matrices. Add a FIXME and an assert condition that | |
6344 | should pass when the access matrices will be needed. | |
6345 | ||
6346 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6347 | ||
6348 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
6349 | really_constant_p. | |
6350 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
6351 | Moved close by free_graphite_bb. | |
6352 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
6353 | (new_scop): Move close by free_scop. | |
6354 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
6355 | ||
6356 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
6357 | ||
6358 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
6359 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
6360 | instead of recursive call. | |
6361 | (graphite_translate_clast_equation): New. | |
6362 | (graphite_create_guard_cond_expr): New. | |
6363 | (graphite_create_new_guard): New. | |
6364 | (get_stack_index_from_iv): Removed. | |
6365 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
6366 | (get_true_edge_from_guard_bb): New. | |
6367 | (translate_clast): Handle stmt_guard in clast. | |
6368 | (get_construction_edge): Allow construction edge detection for | |
6369 | a scope entry with multiple predecessors if one predecessor is | |
6370 | the immediate dominator of scope entry. | |
6371 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
6372 | (gloog): Use correct context loop. Removed check for post dominators. | |
6373 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
6374 | ||
6375 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6376 | ||
6377 | * graphite.c (remove_dead_loops): Document better which | |
6378 | loops are removed. | |
6379 | ||
6380 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6381 | ||
6382 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
6383 | and PPLINC. | |
6384 | (graphite.o): Also depends on pointer-set.h. | |
6385 | ||
6386 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6387 | ||
6388 | * graphite.c (scop_record_loop): Fix compile warning. | |
6389 | ||
6390 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
6391 | Sebastian Pop <sebastian.pop@amd.com> | |
6392 | ||
6393 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
6394 | ||
6395 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6396 | ||
6397 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
6398 | point to the graphite_bb_p. | |
6399 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
6400 | content of bb->aux. | |
6401 | (add_bb_domains): Does not use the scop parameter. | |
6402 | (graphite_transform_loops): Clean bb->aux at the end. | |
6403 | ||
6404 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6405 | Sebastian Pop <sebastian.pop@amd.com> | |
6406 | ||
45489e99 | 6407 | * lib/target-supports.exp |
2abae5f1 SP |
6408 | (check_effective_target_fgraphite): New. |
6409 | ||
45489e99 | 6410 | * gcc.dg/graphite/graphite.exp: Early exit when |
2abae5f1 SP |
6411 | check_effective_target_fgraphite returns false. |
6412 | Set dg-do-what-default to compile. | |
6413 | (scan-graphite-dump-times): Removed. | |
45489e99 | 6414 | * gfortran.dg/graphite/graphite.exp: Same. |
2abae5f1 | 6415 | |
45489e99 | 6416 | * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". |
2abae5f1 | 6417 | Use scan-tree-dump-times instead of scan-graphite-dump-times. |
45489e99 SP |
6418 | * gcc.dg/graphite/scop-1.c: Same. |
6419 | * gcc.dg/graphite/scop-2.c: Same. | |
6420 | * gcc.dg/graphite/scop-3.c: Same. | |
6421 | * gcc.dg/graphite/scop-4.c: Same. | |
6422 | * gcc.dg/graphite/scop-5.c: Same. | |
6423 | * gcc.dg/graphite/scop-6.c: Same. | |
6424 | * gcc.dg/graphite/scop-7.c: Same. | |
6425 | * gcc.dg/graphite/scop-8.c: Same. | |
6426 | * gcc.dg/graphite/scop-9.c: Same. | |
6427 | * gcc.dg/graphite/scop-10.c: Same. | |
6428 | * gcc.dg/graphite/scop-11.c: Same. | |
6429 | * gcc.dg/graphite/scop-12.c: Same. | |
6430 | * gcc.dg/graphite/scop-13.c: Same. | |
6431 | * gcc.dg/graphite/scop-matmult.c: Same. | |
6432 | * gcc.dg/graphite/scop-14.c: Same. | |
6433 | * gcc.dg/graphite/scop-15.c: Same. | |
6434 | * gcc.dg/graphite/block-0.c: Same. | |
6435 | * gcc.dg/graphite/scop-16.c: Same. | |
6436 | * gcc.dg/graphite/block-1.c: Same. | |
6437 | * gcc.dg/graphite/scop-17.c: Same. | |
6438 | * gcc.dg/graphite/scop-18.c: Same. | |
6439 | * gfortran.dg/graphite/block-1.f90: Same. | |
6440 | * gfortran.dg/graphite/scop-1.f: Same. | |
6441 | * gfortran.dg/graphite/block-2.f: Same. | |
2abae5f1 SP |
6442 | |
6443 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6444 | ||
6445 | * graphite.c: Fix some XXX comments. | |
6446 | (build_scop_dynamic_schedules): Removed. | |
6447 | ||
6448 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6449 | ||
6450 | * graphite.h (scop_max_loop_depth): Moved... | |
6451 | * graphite.c (scop_max_loop_depth): ...here. | |
6452 | (remove_all_edges_1): New. | |
6453 | (remove_all_edges): Factored code. | |
6454 | (remove_cond_exprs): Check only the last statement for | |
6455 | a GIMPLE_COND expression. | |
6456 | ||
6457 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6458 | ||
6459 | * graphite.c (scan_tree_for_params): Early return when the | |
6460 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
6461 | (find_scop_parameters): Factor out code. | |
6462 | (graphite_trans_bb_strip_mine): Remove dead code. | |
6463 | ||
6464 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6465 | ||
6466 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
6467 | graphite_trans_bb_move_loop): Factor asserts. | |
6468 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
6469 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
6470 | ||
6471 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
6472 | ||
6473 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
6474 | create_loops_mapping_num, debug_loop_mapping_1, | |
6475 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
6476 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
6477 | graphite_loops_mapping_add_child_num, | |
6478 | graphite_loops_mapping_insert_child, | |
6479 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
6480 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
6481 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
6482 | create_num_from_index, get_num_from_index, | |
6483 | swap_loop_mapped_depth): Removed. | |
6484 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
6485 | (free_scop): Do not call free_loops_mapping. | |
6486 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
6487 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
6488 | get_loop_mapped_depth. | |
6489 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
6490 | (graphite_trans_bb_strip_mine): Same. | |
6491 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
6492 | (struct scop): Remove field loops_mapping. | |
6493 | ||
6494 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6495 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6496 | ||
6497 | * graphite.c (scop_record_loop): Factor out one level of the | |
6498 | condition by early return. | |
6499 | (build_scop_loop_nests): Format following FSF coding style. | |
6500 | (build_scop_dynamic_schedules): Factor out code. | |
6501 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
6502 | ||
6503 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6504 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6505 | ||
6506 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
6507 | assignments that are not handled as simple operands for now. | |
6508 | ||
6509 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6510 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6511 | ||
6512 | * graphite.c (build_scop_bbs): Factor up code. | |
6513 | ||
6514 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6515 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6516 | ||
6517 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
6518 | of the loop. | |
6519 | (enum gbb_type): New. Group all the GBB_* types under it. | |
6520 | (is_loop_exit): Moved... | |
6521 | (end_scop): Enable BB spliting. | |
6522 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
6523 | * cfgloop.h (is_loop_exit): Declared. | |
6524 | ||
6525 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6526 | ||
6527 | * doc/invoke.texi: Remove strides from examples containing | |
6528 | DO loops when the strides are equal to 1. | |
6529 | ||
6530 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
6531 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6532 | ||
6533 | * graphite.c (graphite_trans_scop_block): Or the result with | |
6534 | the result from graphite_trans_loop_block. | |
45489e99 SP |
6535 | * gcc.dg/graphite/block-1.c: New. |
6536 | * gfortran.dg/graphite/block-1.f90: New. | |
6537 | * gfortran.dg/graphite/block-2.f: New. | |
2abae5f1 SP |
6538 | |
6539 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6540 | ||
6541 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
6542 | and cloog_finalize. | |
6543 | ||
6544 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6545 | ||
6546 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
6547 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
6548 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
6549 | (is_simple_operand): Call stmt_simple_memref_p. | |
6550 | ||
45489e99 | 6551 | * gcc.dg/graphite/scop-matmult.c: Updated for not |
2abae5f1 SP |
6552 | using pointer arithmetic, as this is optimized by PRE and |
6553 | makes the code too difficult to analyze. | |
6554 | ||
45489e99 | 6555 | * gcc.dg/graphite/scop-18.c: Same. |
2abae5f1 SP |
6556 | |
6557 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6558 | ||
6559 | * gdbinit.in (pgg): New. | |
6560 | ||
6561 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6562 | ||
6563 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
6564 | ||
6565 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6566 | ||
6567 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
6568 | ||
6569 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6570 | ||
6571 | * graphite.c (graphite_trans_bb_block): Remove check for | |
6572 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
6573 | Check if loop blocking is profitable for every loop, before applying | |
6574 | the changes. | |
6575 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
6576 | if flag_loop_block is set. | |
6577 | ||
6578 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6579 | ||
6580 | * graphite.c: Add some more documentation for the loop | |
6581 | mapping. | |
6582 | ||
6583 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6584 | ||
6585 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
6586 | * graphite.c: Format on less than 80 columns. | |
6587 | * graphite.h: Same. | |
6588 | ||
6589 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6590 | ||
6591 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
6592 | ||
6593 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6594 | ||
6595 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
6596 | floop-interchange): Update documentation with examples. | |
6597 | ||
6598 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6599 | ||
6600 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
6601 | add_referenced_var. | |
6602 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
6603 | ||
6604 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6605 | ||
6606 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
6607 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
6608 | * tree-scalar-evolution.c: Revert useless changes. | |
6609 | * tree-phinodes.c: Same. | |
6610 | * cfghooks.c: Same. | |
6611 | * vec.h: Same. | |
6612 | * tree-vectorizer.h: Same. | |
6613 | * tree-flow.h: Same. | |
6614 | * tree-cfg.c: Same. | |
6615 | * common.opt (fgraphite): Update documentation. | |
6616 | ||
6617 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
6618 | ||
6619 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
6620 | -floop-interchange): Add more text for explaining what each of these | |
6621 | flags is doing. | |
6622 | * tree-into-ssa.c (gimple_vec): Moved to... | |
6623 | * graphite.c: Include gimple.h. | |
6624 | (gimple_vec): Moved to... | |
6625 | (del_loop_to_cloog_loop): Removed. | |
6626 | (loop_affine_expr): Do not call create_data_ref when the | |
6627 | operand is a constant. | |
6628 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
6629 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
6630 | * gimple.h (gimple_vec): ... here. | |
6631 | ||
6632 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6633 | ||
6634 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
6635 | latch executions. | |
6636 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
6637 | ||
6638 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6639 | ||
6640 | * graphite.c (add_conditions_to_domain): New. | |
6641 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
6642 | (set_cloog_options): Allow to disable optimizations. | |
6643 | ||
6644 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6645 | ||
6646 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
6647 | Do not use walk_dominator_tree. | |
6648 | (find_scop_parameters): Do not use walk_dominator_tree. | |
6649 | ||
6650 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6651 | ||
6652 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
6653 | (idx_record_params): Adapt. | |
6654 | * graphite.h (scop_gimple_loop_depth): New. | |
6655 | ||
6656 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6657 | ||
6658 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
6659 | (scan_tree_for_params): Remove value_init. | |
6660 | (build_scop_context): Remove value_init. | |
6661 | (build_loop_iteration_domains): Remove value_init. | |
6662 | (schedule_to_scattering): Remove value_init. | |
6663 | (graphite_trans_bb_strip_mine): Remove value_init. | |
6664 | ||
6665 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6666 | ||
6667 | * gcc/graphite.c (limit_scops): New. | |
6668 | (graphite_transform_loops): Add limit SCoPs. | |
45489e99 SP |
6669 | * gcc.dg/graphite/scop-0.c: Update number of SCoPs. |
6670 | * gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
6671 | * gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
6672 | * gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
6673 | * gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
6674 | * gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
6675 | * gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
6676 | * gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
6677 | * gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
2abae5f1 | 6678 | Change loop numbers. |
45489e99 | 6679 | * gcc.dg/graphite/scop-17.c: Update number of SCoPs. |
2abae5f1 | 6680 | Change loop numbers. |
45489e99 SP |
6681 | * gcc.dg/graphite/scop-18.c: Update number of SCoPs. |
6682 | * gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
6683 | * gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
6684 | * gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
6685 | * gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
6686 | * gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
6687 | * gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
6688 | * gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
6689 | * gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
6690 | * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
2abae5f1 SP |
6691 | |
6692 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6693 | ||
6694 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
6695 | ||
6696 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
6697 | ||
6698 | * graphite.c (free_loops_mapping): New. | |
6699 | (stmt_simple_for_scop_p): Fix typo. | |
6700 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
6701 | broke polyhedron. | |
6702 | (free_graphite_bb): Fix some memleaks. | |
6703 | (free_scop): Fix some memleaks. | |
6704 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
6705 | (find_params_in_bb): Fix some memleaks. | |
6706 | (clast_to_gcc_expression): Fix warning. | |
6707 | ||
6708 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
6709 | ||
45489e99 SP |
6710 | * gcc.dg/graphite/scop-16.c: Fix for 32bit. |
6711 | * gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
2abae5f1 SP |
6712 | |
6713 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6714 | ||
6715 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
6716 | Move code ifdef-ed HAVE_cloog... | |
6717 | * graphite.c: Include toplev.h. | |
6718 | ... here. | |
6719 | * Makefile.in (OBJS-common): Always build graphite.o. | |
6720 | (BACKEND): Remove @GRAPHITE@. | |
6721 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
6722 | (graphite.o): Depend on TOPLEV_H. | |
6723 | ||
6724 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6725 | ||
6726 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
6727 | Remove typo left from polylib to ppl conversion. | |
6728 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
6729 | ||
6730 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6731 | ||
6732 | * toplev.c (process_options): Move the graphite loop optimization | |
6733 | flags... | |
6734 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
6735 | When not configured with CLooG, print to dump_file that | |
6736 | Graphite transforms were not performed. | |
45489e99 | 6737 | * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): |
2abae5f1 | 6738 | New. |
45489e99 | 6739 | * gcc.dg/graphite/*.c: Updated all testcases to use |
2abae5f1 SP |
6740 | scan-graphite-dump-times. |
6741 | ||
6742 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6743 | ||
6744 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
6745 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
6746 | ||
6747 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
6748 | Jan Sjodin <jan.sjodin@amd.com> | |
6749 | ||
6750 | * configure: Regenerated. | |
6751 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
6752 | * config.in (HAVE_polylib): Removed. | |
6753 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
6754 | (PPLLIBS, PPLINC): Added. | |
6755 | * graphite.c: Replace unsigned with int wherever possible. | |
6756 | Don't access Cloog's data structures, but use accessor functions. | |
6757 | Clast's stmt->type is now implemented as a vtable: change the | |
6758 | switches of stmt->type into ifs. | |
6759 | (polylib/polylibgmp.h): Don't include. | |
6760 | (initialize_dependence_polyhedron, | |
6761 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
6762 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
6763 | dump_dependence_graph): Removed until this code is cleaned up | |
6764 | or ported to Cloog. | |
6765 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
6766 | (POLYLIBINC): Renamed PPLINC. | |
6767 | ||
6768 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
6769 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6770 | Jan Sjodin <jan.sjodin@amd.com> | |
6771 | ||
6772 | Finish the merge and tuplification of graphite. | |
6773 | ||
6774 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
6775 | Jan Sjodin <jan.sjodin@amd.com> | |
6776 | ||
6777 | Partial merge from mainline (138072:138275). | |
6778 | * graphite.c still has to be tuplified. | |
6779 | ||
6780 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
6781 | ||
6782 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
6783 | (create_num_from_index): New. | |
6784 | (get_num_from_index): Also pass in the graphite BB. | |
6785 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
6786 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
6787 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
6788 | (is_interchange_valid): Return false when failing. | |
6789 | * graphite.h (struct num_map): New. | |
6790 | (struct graphite_bb): New field num_map. | |
6791 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
6792 | ||
6793 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6794 | ||
6795 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
6796 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
6797 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
6798 | {<, <=, >, >=}. | |
6799 | ||
6800 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6801 | ||
6802 | * graphite.h (struct scop): Removed new_ivs field. | |
6803 | (SCOP_NEWIVS): Deleted. | |
6804 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
6805 | clast_to_gcc_expression, graphite_create_new_loop): | |
6806 | Removed use of new_ivs. | |
6807 | ||
6808 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6809 | ||
6810 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
6811 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
6812 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
6813 | (get_loop_mapping_for_num, | |
6814 | graphite_loops_mapping_add_child, | |
6815 | graphite_loops_mapping_add_child_num, | |
6816 | graphite_loops_mapping_insert_child, | |
6817 | graphite_loops_mapping_parent, | |
6818 | split_loop_mapped_depth_for_num, | |
6819 | loop_mapped_depth_split_loop): New. | |
6820 | (increment_loop_mapped_depths): Removed. | |
6821 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
6822 | (new_scop): Call create_loops_mapping. | |
6823 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
6824 | (translate_clast): Pass the old loop father in parameter, and pass | |
6825 | it to get_old_iv_from_ssa_name. | |
6826 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
6827 | can_generate_code, can_generate_for_scop): New. | |
6828 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
6829 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
6830 | ||
6831 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6832 | ||
6833 | Reverted all the changes related to the streamization and | |
6834 | loop fusion. | |
6835 | These changes are now tracked in the streamization branch. | |
6836 | ||
6837 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6838 | Jan Sjodin <jan.sjodin@amd.com> | |
6839 | ||
6840 | * graphite.c (gbb_compare): Correctly constify. | |
6841 | (gbb_can_be_ignored): Indent. | |
6842 | (graphite_trans_scop_swap_1and2): Add legality check. | |
6843 | Remove dead FIXMEs. | |
6844 | ||
6845 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
6846 | ||
6847 | Remove fallouts from "Reverted the Condate changes". | |
6848 | * tree.h: Remove unused decl. | |
45489e99 | 6849 | * gcc.dg/tree-checker: Same. |
2abae5f1 SP |
6850 | * timevar.def: Remove counter. |
6851 | ||
6852 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
6853 | ||
6854 | * Merge from mainline (135673:138072). | |
6855 | ||
6856 | Reverted the MIRO changes (from 2008-04-05) that are now | |
6857 | tracked in the miro branch. | |
6858 | * tree-bounds.c: Removed. | |
6859 | * tree-bounds.h: Removed. | |
6860 | ||
6861 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
6862 | are now tracked in the condate branch. | |
6863 | * tree-check.c: Removed. | |
6864 | * tree-match.c: Removed. | |
6865 | * condate.y: Removed. | |
6866 | ||
6867 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6868 | ||
6869 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
6870 | and -floop-interchange. | |
6871 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
6872 | graphite loop optimization flags is turned on. | |
6873 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
6874 | flag_loop_strip_mine and flag_loop_interchange checks before | |
6875 | optimizations. | |
6876 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
6877 | -floop-strip-mine and -floop-interchange. | |
45489e99 | 6878 | * gcc.dg/graphite/block-0.c: Add -floop-block and remove |
2abae5f1 | 6879 | -fgraphite. |
45489e99 SP |
6880 | * gcc.dg/graphite/scop-16.c: Ditto. |
6881 | * gcc.dg/graphite/scop-17.c: Ditto. | |
6882 | * gcc.dg/graphite/scop-18.c: Ditto. | |
2abae5f1 SP |
6883 | |
6884 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
6885 | Sebastian Pop <sebastian.pop@amd.com> | |
6886 | ||
6887 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
6888 | (create_empty_loop_on_edge): More fixes. | |
6889 | * tree-phinodes.c (resize_phi_node): Extern. | |
6890 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
6891 | * cfghooks.c (update_dominator_information): New split from | |
6892 | split_edge. | |
6893 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
6894 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
6895 | successor of the function entry block. | |
6896 | ||
6897 | * graphite.c: Include pointer-set.h. | |
6898 | (debug_loop_mapping, increment_loop_mapped_depths, | |
6899 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
6900 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
6901 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
6902 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
6903 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
6904 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
6905 | get_old_iv_from_ssa_name): New. | |
6906 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
6907 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
6908 | (scop_record_loop): Record old ivs. | |
6909 | (create_var_name): Removed. | |
6910 | (initialize_cloog_names): Allocate double space in case strip mine | |
6911 | applies to all loops once. | |
6912 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
6913 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
6914 | translation. | |
6915 | (graphite_create_new_loop): Pass in ivstack. | |
6916 | (remove_all_edges): Pass in the construction_edge. | |
6917 | (graphite_remove_iv): Removed. | |
6918 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
6919 | remove_cond_exprs): Rewritten. | |
6920 | (move_phi_nodes): New. | |
6921 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
6922 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
6923 | (set_cloog_options, debug_clast_stmt): New. | |
6924 | (find_transform): Use set_cloog_options. | |
6925 | (outermost_loop_layer): Removed. | |
6926 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
6927 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
6928 | mark_old_loops, remove_dead_loops): New. | |
6929 | (gloog): Rewritten. | |
6930 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
6931 | (const_column_index, get_first_matching_sign_row_index, | |
6932 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
6933 | get_upper_bound): New. | |
6934 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
6935 | ||
6936 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
6937 | (struct name_tree): Add a loop field. | |
6938 | (struct scop): Add a graphite_loops_mapping field. | |
6939 | (SCOP_LOOPS_MAPPING): New. | |
6940 | (debug_clast_stmt): Declare. | |
6941 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
6942 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
6943 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
6944 | (create_empty_loop_on_edge): Updated. | |
6945 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
6946 | rename_variables_in_bb): Declare. | |
6947 | * tree-cfg.c (remove_bb): Extern. | |
6948 | ||
45489e99 | 6949 | * gcc.dg/graphite/block-0.c: New. |
2abae5f1 SP |
6950 | |
6951 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6952 | Sebastian Pop <sebastian.pop@amd.com> | |
6953 | ||
6954 | * graphite.c (strip_mine_profitable_p): New. | |
6955 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
6956 | ||
45489e99 SP |
6957 | * gcc.dg/graphite/scop-18.c: New. |
6958 | * gcc.dg/graphite/scop-17.c: Fixed. | |
6959 | * gcc.dg/graphite/scop-16.c: Fixed. | |
2abae5f1 SP |
6960 | |
6961 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
6962 | Jan Sjodin <jan.sjodin@amd.com> | |
6963 | Sebastian Pop <sebastian.pop@amd.com> | |
6964 | ||
6965 | * graphite.c (is_interchange_valid): New. | |
6966 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
6967 | of interchange. | |
6968 | ||
6969 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
6970 | outer_most_loop, gbb_outer_most_loop_index): New. | |
6971 | ||
6972 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
6973 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
45489e99 SP |
6974 | * gcc.dg/graphite/scop-16.c: New. |
6975 | * gcc.dg/graphite/scop-17.c: New. | |
2abae5f1 SP |
6976 | |
6977 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6978 | ||
6979 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
6980 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
6981 | ||
6982 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6983 | ||
6984 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
6985 | (scopdet_info): Add. | |
6986 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
6987 | (build_scops_1): Cleanup, bugfixes. | |
6988 | (build_scops): Cleanup. | |
6989 | ||
45489e99 SP |
6990 | * gcc.dg/graphite/scop-matmult.c: Remove duplicated code. |
6991 | * gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
2abae5f1 SP |
6992 | |
6993 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
6994 | ||
45489e99 | 6995 | * gfortran.dg/graphite/scop-1.f: Update to reduced test case. |
2abae5f1 | 6996 | |
45489e99 | 6997 | * gfortran.dg/graphite/graphite.exp: Use |
2abae5f1 SP |
6998 | DEFAULT_GRAPHITE_FLAGS. |
6999 | ||
45489e99 | 7000 | * gcc.dg/graphite/scop-15.c: Update to reduced test case. |
2abae5f1 SP |
7001 | |
7002 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7003 | ||
7004 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
7005 | MULT_EXPR parameter is negative. | |
7006 | ||
45489e99 | 7007 | * gfortran.dg/graphite/scop-1.f: New. |
2abae5f1 | 7008 | |
45489e99 | 7009 | * gfortran.dg/graphite/graphite.exp: New. |
2abae5f1 | 7010 | |
45489e99 | 7011 | * gcc.dg/graphite/scop-15.c: New. |
2abae5f1 SP |
7012 | |
7013 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7014 | ||
7015 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
7016 | ||
7017 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7018 | ||
7019 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
7020 | graphite_swap_loops. | |
7021 | (graphite_trans_bb_move_loop): New. | |
7022 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
7023 | (graphite_trans_bb_block): New. | |
7024 | (graphite_trans_loop_block): New. | |
7025 | (graphite_trans_scop_swap_1and2): Rename from | |
7026 | graphite_trans_swap_1and2. | |
7027 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
7028 | (graphite_trans_scop_block): New. | |
7029 | (graphite_apply_transformations): Rename from | |
7030 | graphite_transformations. | |
7031 | ||
45489e99 | 7032 | * gcc.dg/graphite/scop-matmult.c: New. |
2abae5f1 SP |
7033 | |
7034 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7035 | ||
7036 | * graphite.c (gbb_compare): New. | |
7037 | (graphite_sort_gbbs): New. | |
7038 | (gbb_can_be_ignored): New. | |
7039 | (scop_remove_ignoreable_gbbs): New. | |
7040 | (graphite_transformations): Cleanup and add | |
7041 | scop_remove_ignoreable_gbbs. | |
7042 | * lambda.h (lambda_vector_compare): New. | |
7043 | ||
7044 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
7045 | ||
7046 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
7047 | (graphite_swap_loops): int -> unsigned | |
7048 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
7049 | (graphite_transformations): New. | |
7050 | (graphite_transform_loops): Move to graphite_transformations. | |
7051 | * graphite.h (gbb_nb_loops): Return unsigned. | |
7052 | ||
7053 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7054 | ||
7055 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
7056 | the domain matrix. This makes scop-0.c work again. | |
7057 | ||
7058 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
7059 | ||
7060 | * graphite.h: Adjust copyright to GPLv3. | |
7061 | * graphite.c: Likewise. | |
7062 | (stmt_simple_memref_for_scop_p): Split out from ... | |
7063 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
7064 | and simplify. | |
7065 | (get_bb_type): Optimize. | |
7066 | (is_pred): Remove. | |
7067 | (is_bb_addable): Fix memleak, replace is_pred call with | |
7068 | single_pred. | |
7069 | (build_scops): Use current_loops. | |
7070 | (param_index): Fix memleak. | |
7071 | ||
7072 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7073 | ||
7074 | * graphite.c: Fix formatting. | |
7075 | ||
7076 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7077 | ||
7078 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
7079 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
7080 | (create_var_name, save_var_name): Newly defined functions. | |
7081 | (initialize_cloog_names): Part of the code factored out to | |
7082 | save_var_name. | |
7083 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
7084 | in clast_reduction statement. | |
7085 | (graphite_create_new_loop): Now takes a new parameter | |
7086 | for outer_loop. | |
7087 | (translate_clast): Now also takes the context_loop and bb_exit | |
7088 | parameters. Rewritten the code so that it creates a gimple code | |
7089 | inside the given context. | |
7090 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
7091 | remove_cond_expr, disconnect_cond_expr, | |
7092 | disconnect_virtual_phi_nodes): Newly defined functions. | |
7093 | * graphite.h (struct scop): added old_ivs vector. | |
7094 | SCOP_OLDIVS: New macro. | |
7095 | ||
7096 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
7097 | ||
7098 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
7099 | ||
7100 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7101 | ||
7102 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
7103 | (create_empty_loop_on_edge): Defined. | |
7104 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
7105 | instead of void. | |
7106 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
7107 | (update_dominators_in_loop): Declared as extern | |
7108 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
7109 | ||
7110 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
7111 | ||
7112 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
7113 | in SCoP domain. | |
7114 | (initialize_cloog_names): Allow changing number of loops. | |
7115 | (build_cloog_prog): Simplify. | |
7116 | (find_transform): Enable cloog option --strides. | |
7117 | (graphite_swap_loops): New. | |
7118 | (graphite_strip_mine_loop): New. | |
7119 | (graphite_trans_swap_1and2): New. | |
7120 | (graphite_trans_strip): New. | |
7121 | (graphite_transform_loops): Add graphite_trans_strip. | |
7122 | * graphite.h (scop_max_loop_depth): New. | |
7123 | ||
7124 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7125 | ||
7126 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
7127 | line. (Fixes compile) | |
7128 | ||
7129 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7130 | ||
7131 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
7132 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
7133 | (build_bb_loops): New. | |
7134 | (graphite_transform_loops): Add build_bb_loops. | |
7135 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
7136 | numbers. | |
7137 | * graphite.h (graphite_bb): Add loops. | |
7138 | (gbb_nb_loops): New. | |
7139 | (gbb_loop_at_index): New. | |
7140 | (gbb_loop_index): New. | |
7141 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
7142 | using nb_params_in_scop. | |
7143 | ||
7144 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7145 | ||
7146 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
7147 | (build_scop_canonical_schedules): Build minimized schedule. | |
7148 | (schedule_to_scattering): Adapt to minimized schedule. | |
7149 | * graphite.h (graphite_bb): Add/Update descriptions. | |
7150 | ||
7151 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
7152 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7153 | ||
7154 | * graphite.c (print_graphite_bb): Add condition printing. | |
7155 | (dump_value): New. | |
7156 | (dump_gbb_conditions): New. | |
7157 | (build_scop_conditions_1): New. | |
7158 | (build_scop_conditions): New. | |
7159 | * graphite.h (graphite_bb): Add conditions. | |
7160 | ||
7161 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7162 | ||
7163 | * graphite.c (print_graphite_bb): | |
7164 | (free_graphite_bb): New. | |
7165 | (free_scop): Free bbs. | |
7166 | (get_bb_type): Free doms. | |
7167 | (build_scop_context): Free context matrix. | |
7168 | (build_loop_iteration_domains): Remove unused code. | |
7169 | (build_cloog_prog): Free scattering function and blocklist. | |
7170 | (find_transform): Free options. | |
7171 | ||
7172 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
7173 | ||
7174 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
7175 | Remove unnecessery cloog data structures. Make a copy of the domain | |
7176 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
7177 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
7178 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
7179 | used. | |
7180 | (build_scop_iteration_domain): Remove unnecessary cloog | |
7181 | data structures. Fix memory leaks. | |
7182 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
7183 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
7184 | ||
7185 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7186 | ||
7187 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
7188 | ||
7189 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7190 | ||
7191 | * graphite.c (end_scop): Style fix. | |
7192 | (schedule_to_scattering): Style and comment fix. | |
7193 | ||
7194 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7195 | * graphite.c (print_graphite_bb): Fix definiton of | |
7196 | schedule_to_scattering. | |
7197 | (initialize_cloog_names): Change nb_scattdims to max loop | |
7198 | depth in SCoP. | |
7199 | (schedule_to_scattering): Take parameter for number of scattering | |
7200 | dimensions. | |
7201 | (build_cloog_prog): Only build as much scattering dimensions as | |
7202 | necessary. | |
7203 | ||
7204 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7205 | ||
7206 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
7207 | in polyhedron/aermod.f90. | |
7208 | ||
7209 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7210 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7211 | Harsha Jagasia <harsha.jagasia@amd.com> | |
7212 | ||
7213 | * graphite.c (is_bb_addable): Fix segfault. | |
7214 | ||
7215 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7216 | ||
7217 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
7218 | with multiple exits and conditional handling in edge cases. | |
7219 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
7220 | ||
45489e99 | 7221 | * gcc.dg/graphite/scop-14.c: New. |
2abae5f1 SP |
7222 | |
7223 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7224 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
7225 | ||
7226 | * graphite.c (is_bb_addable): Add more comments and enhance | |
7227 | readablity of the source code. Fix memory leak. | |
7228 | (is_loop_exit): Fix memory leak. | |
7229 | ||
7230 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7231 | ||
7232 | * graphite.c (first_loop_in_scop): Deleted. | |
7233 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
7234 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
7235 | all loops in the first layer. | |
7236 | ||
7237 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7238 | ||
7239 | * graphite.c (scan_tree_for_params): Change the way params are | |
7240 | added to be indepenent of the number of loops. | |
7241 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
7242 | handling. | |
7243 | (build_cloog_prog): Revert to short matrix format. | |
7244 | ||
7245 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7246 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7247 | ||
7248 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
7249 | warning. | |
7250 | ||
7251 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7252 | ||
7253 | * graphite.c (nb_data_refs_in_scop): New. | |
7254 | (graphite_transform_loops): Print more stats: number of | |
7255 | loops, basic blocks and data references per scop. | |
7256 | ||
7257 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7258 | Jan Sjodin <jan.sjodin@amd.com> | |
7259 | ||
7260 | * graphite.c (loop_affine_expr, idx_record_params, | |
7261 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
7262 | instead of instantiate_parameters. | |
7263 | ||
7264 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7265 | ||
7266 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
7267 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
7268 | cleanup. | |
7269 | ||
7270 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7271 | ||
7272 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
7273 | are contained completely in the SCoP. | |
7274 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
7275 | and the domains are fixed. | |
7276 | (build_scop_canonical_schedules): Add support for bbs not contained | |
7277 | in any SCoP. | |
7278 | ||
7279 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7280 | ||
7281 | * graphite.h (scop_contains_loop): Update comments to match | |
7282 | the actual behavior. | |
7283 | (scop_contains_loop): New. | |
7284 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
7285 | ||
7286 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7287 | ||
7288 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
7289 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
7290 | as GBB_COND_HEADER. | |
7291 | ||
7292 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7293 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7294 | ||
7295 | * graphite.c (graphite_transform_loops): Early return when | |
7296 | there are no loops in the function. | |
7297 | ||
7298 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7299 | Jan Sjodin <jan.sjodin@amd.com> | |
7300 | ||
7301 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
7302 | offset of the last loop. | |
7303 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
7304 | ||
7305 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7306 | Jan Sjodin <jan.sjodin@amd.com> | |
7307 | ||
7308 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
7309 | invariant_in_scop_p): Removed. | |
7310 | (scan_tree_for_params): Can be used with no constraint | |
7311 | matrix for gathering parameters. | |
7312 | (idx_record_params): Don't use idx_record_param, instead use | |
7313 | scan_tree_for_params. | |
7314 | (find_scop_parameters): Same. | |
7315 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
7316 | Fix the size of loop domains. | |
7317 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
7318 | (find_transform): Enable build_cloog_prog. | |
7319 | ||
7320 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7321 | Jan Sjodin <jan.sjodin@amd.com> | |
7322 | ||
7323 | * graphite.c (schedule_to_scattering): Make scattering domains | |
7324 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
7325 | ||
7326 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7327 | Jan Sjodin <jan.sjodin@amd.com> | |
7328 | ||
7329 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
7330 | translation of the scheduling function to scattering. | |
7331 | (build_cloog_prog): Call schedule_to_scattering only once. | |
7332 | * graphite.h (scop_loop_index): Do not fail for loops not | |
7333 | in the scop: return -1. | |
7334 | ||
7335 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
7336 | ||
7337 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
7338 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
7339 | (setup_cloog_loop): Export GBB_DOMAIN. | |
7340 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
7341 | able to rebuild the original control flow. | |
7342 | * graphite.h (graphite_bb): Add domain field and access macro. | |
7343 | (GBB_DOMAIN): New. | |
7344 | ||
7345 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7346 | ||
7347 | * graphite.c (debug_gbb): New. | |
7348 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
7349 | (build_scop_bbs): Reimplemented. | |
7350 | (dfs_bb_in_scop_p): Removed. | |
7351 | (build_scop_loop_nests): Reorder loops inserted in | |
7352 | SCOP_LOOP_NEST: outer loops should come first. | |
7353 | (build_scop_canonical_schedules): Reinitialize at zero | |
7354 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
7355 | that have already been parsed. | |
7356 | ||
7357 | * graphite.h (debug_gbb): Declared. | |
7358 | ||
7359 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7360 | Jan Sjodin <jan.sjodin@amd.com> | |
7361 | ||
7362 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
7363 | (graphite_loop_to_gcc_loop): Removed. | |
7364 | (remove_all_edges): New. | |
7365 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
7366 | (gloog): Remove useless code. | |
7367 | ||
7368 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7369 | ||
7370 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
7371 | loops with one or multiple exits. | |
7372 | (is_loop_exit): New. | |
7373 | (is_pred): New. | |
7374 | (is_bb_addable): Rework condition handling, now support for case | |
7375 | case statements and loops with multiple exits. | |
7376 | ||
45489e99 SP |
7377 | * gcc.dg/graphite/scop-11.c: New. |
7378 | * gcc.dg/graphite/scop-12.c: New. | |
7379 | * gcc.dg/graphite/scop-13.c: New. | |
2abae5f1 SP |
7380 | |
7381 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7382 | ||
7383 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
7384 | we have too many colors. | |
7385 | ||
7386 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
7387 | ||
7388 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
7389 | * tree-pass.h (pass_loop_fusion): Declared. | |
7390 | * tree-loop-fusion.c: New. | |
7391 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
7392 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
7393 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
7394 | * common.opt (ftree-loop-fusion): Declared. | |
7395 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
7396 | ||
7397 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
7398 | ||
7399 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
7400 | ||
7401 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
7402 | ||
7403 | * Merge from mainline (130800:135673). | |
7404 | ||
7405 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7406 | ||
7407 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
7408 | Update dominators after splitting. | |
7409 | ||
7410 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7411 | ||
7412 | * graphite.c (is_bb_addable): Return the harmful statement. | |
7413 | Factor up some code. | |
7414 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
7415 | (build_scops_1): Call end_scop. | |
7416 | ||
7417 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7418 | ||
7419 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
7420 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
7421 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
7422 | build_scops_1): Removed. | |
7423 | (build_scops_2): Renamed build_scops_1. | |
7424 | ||
7425 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7426 | ||
7427 | * graphite.c: Fix formatting. | |
7428 | ||
7429 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7430 | ||
7431 | * graphite.c (get_bb_type): New. | |
7432 | (move_scops): New. | |
7433 | (build_scops_2): New. | |
7434 | (is_bb_addable): New. | |
7435 | (build_scops): Switch the scop detection. | |
7436 | (build_scop_bbs): Add entry bb to scop. | |
7437 | * graphite.h (struct scop): Update comment. | |
7438 | ||
7439 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7440 | ||
7441 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
7442 | more colors. | |
7443 | ||
7444 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7445 | ||
45489e99 SP |
7446 | * gcc.dg/graphite/scop-1.c: Update. |
7447 | * gcc.dg/graphite/scop-2.c: Update. | |
7448 | * gcc.dg/graphite/scop-4.c: Update. | |
7449 | * gcc.dg/graphite/scop-5.c: Add. | |
7450 | * gcc.dg/graphite/scop-6.c: Add. | |
2abae5f1 SP |
7451 | |
7452 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7453 | ||
45489e99 SP |
7454 | * gcc.dg/graphite/scop-0.c: Add. |
7455 | * gcc.dg/graphite/scop-7.c: Add. | |
7456 | * gcc.dg/graphite/scop-8.c: Add. | |
7457 | * gcc.dg/graphite/scop-9.c: Add. | |
7458 | * gcc.dg/graphite/scop-10.c: Add. | |
2abae5f1 SP |
7459 | |
7460 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7461 | ||
7462 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
7463 | Check affine expressions depending on the outermost loop | |
7464 | instead of a scop. | |
7465 | (stmt_simple_for_scop_p): Same. | |
7466 | (harmfule_stmt_in_scop): Same. | |
7467 | ||
7468 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
7469 | ||
7470 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
7471 | mark entry and exit, that are not part of the SCoP and update HTML | |
7472 | formatting. | |
7473 | ||
7474 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
7475 | ||
7476 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
7477 | harmful_stmt_in_bb. | |
7478 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
7479 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
7480 | (all_preds_visited_p, all_succs_visited_p, | |
7481 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
7482 | scop_end_loop): New. | |
7483 | (build_scops): Do not use dfs_enumerate_from. | |
7484 | ||
45489e99 | 7485 | * gcc.dg/graphite/scop-{1,2,4}.c: Updated. |
2abae5f1 SP |
7486 | |
7487 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7488 | ||
7489 | * graphite.c: Add comments to functions that are missing a | |
7490 | description. | |
7491 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
7492 | ||
7493 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7494 | ||
7495 | * graphite.c (nb_params_in_scop): Moved... | |
7496 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
7497 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
7498 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
7499 | (graphite_create_iv): Return the new name of the IV. | |
7500 | (find_transform): Set options->esp and options->cpp. | |
7501 | (gloog): Comment out the invalidation of the old loop code. | |
7502 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
7503 | nb_params_in_scop. | |
7504 | ||
7505 | * graphite.h (nb_params_in_scop): ... here. | |
7506 | (scop_nb_params): Removed. | |
7507 | (loop_domain_dim): Return something even when the loop was not | |
7508 | found in the hash table: avoid ICEing on all the graphite.exp | |
7509 | testcases. | |
7510 | ||
7511 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7512 | ||
7513 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
7514 | ||
7515 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
7516 | according to nesting level. | |
7517 | (find_scop_parameters): Call instantiate_parameters. | |
7518 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
7519 | Inner loop bound can depend on outer loop induction variable. | |
7520 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
7521 | instantiate_parameters with respect to outermost_loop_in_scop. | |
7522 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
7523 | graphite.h. | |
7524 | (create_empty_loop): Function loopify should be given edge | |
7525 | probability, instead of edge frequency. Dominance relation from | |
7526 | switch_bb to loop_header. | |
7527 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
7528 | (gloog): New functionality for removing old loop. | |
7529 | (test_dependence): Factored out from build_rdg_all_levels. | |
7530 | (build_rdg_all_levels): Dependence testing factored out to | |
7531 | test_dependence function. | |
7532 | ||
7533 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
7534 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
7535 | from graphite.c | |
7536 | ||
7537 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
7538 | ||
7539 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
7540 | nb_params_in_scop): Use name_tree map instead of just a tree | |
7541 | for keeping track of the variable name associated to that tree. | |
7542 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
7543 | clast_to_gcc_expression, graphite_create_iv, | |
7544 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
7545 | graphite_stmt_to_gcc_stmt): New. | |
7546 | (gloog): Call these. | |
7547 | * graphite.h (struct name_tree): New. | |
7548 | (struct scop): Use name_tree instead of tree for params. | |
7549 | Store a vector of name_tree for new_ivs. | |
7550 | (SCOP_NEWIVS): New. | |
7551 | (scop_nb_params): Use name_tree instead of tree. | |
7552 | ||
7553 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
7554 | Sebastian Pop <sebastian.pop@amd.com> | |
7555 | ||
7556 | * tree-bounds.c: New. | |
7557 | * tree-bounds.h: New. | |
7558 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
7559 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
7560 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
7561 | flag_mudflap. | |
7562 | * gcc.c: Same. | |
7563 | * toplev.c: Same. | |
7564 | * c-cppbuiltin.c: Same. | |
7565 | * c-pragma.c: Same. | |
7566 | * common.opt: Same. | |
7567 | * varasm.c: Same. | |
7568 | * tree-outof-ssa.c: Same. | |
7569 | * c-common.c: Same. | |
7570 | * Makefile.in: Same. | |
7571 | ||
7572 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
7573 | Sebastian Pop <sebastian.pop@amd.com> | |
7574 | ||
7575 | * tree-loop-distribution.c (remaining_stmts, | |
7576 | upstream_mem_writes): Removed static variables. | |
7577 | (copy_loop_before, create_bb_after_loop, | |
7578 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
7579 | rdg_build_components, rdg_build_partitions, | |
7580 | dump_rdg_partitions): Extern. | |
7581 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
7582 | return a bool. | |
7583 | (already_processed_vertex_p, predecessor_has_mem_write, | |
7584 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
7585 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
7586 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
7587 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
7588 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
7589 | (rdg_component): Moved... | |
7590 | (build_rdg_partition_for_component): Do not aggregate components when | |
7591 | flag_streamize_loops is set. | |
7592 | (gen_sequential_loops): New. | |
7593 | (ldist_gen): Call gen_sequential_loops. | |
7594 | ||
7595 | * tree-pass.h (pass_loop_streamization): Declared. | |
7596 | ||
7597 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
7598 | basic blocks when loops structures exist. | |
7599 | ||
7600 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
7601 | ||
7602 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
7603 | ||
7604 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
7605 | eliminate_local_variables_stmt, eliminate_local_variables, | |
7606 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
7607 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
7608 | of code delimited by two edges in the CFG. | |
7609 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
7610 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
7611 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
7612 | the case of parallelisation of reductions. | |
7613 | (create_loop_fn): Extern. | |
7614 | (create_omp_parallel_region): New. | |
7615 | ||
7616 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
7617 | dump_data_reference for printing dra and drb. | |
7618 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
7619 | RDGE_RELATION. | |
7620 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
7621 | we attach dependence relations on each edge of the RDG. | |
7622 | To be fixed later. | |
7623 | ||
7624 | * tree-data-ref.h (rdg_component): ...here. | |
7625 | (struct rdg_edge): New field ddr_p relation. | |
7626 | (RDGE_RELATION): New. | |
7627 | (create_bb_after_loop, copy_loop_before, | |
7628 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
7629 | rdg_build_partitions, dump_rdg_partitions, | |
7630 | free_rdg_components): Declared. | |
7631 | ||
7632 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
7633 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
7634 | ||
7635 | * tree-loop-streamization.c: New. | |
7636 | ||
7637 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
7638 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
7639 | ||
7640 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
7641 | ||
7642 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
7643 | ||
7644 | * passes.c: Schedule pass_loop_streamization. | |
7645 | ||
7646 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7647 | ||
7648 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
7649 | update comment. | |
7650 | ||
7651 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
7652 | ||
7653 | * graphite.c (dot_all_scops): Update formatting. | |
7654 | Bbs can now be part of more than one SCoP. | |
7655 | ||
7656 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
7657 | ||
7658 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
7659 | malloc problems. | |
7660 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
7661 | * graphite.h (loop_to_cloog_loop): New. | |
7662 | ||
7663 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7664 | ||
7665 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
7666 | loop_iteration_vector_dim): New. | |
7667 | (build_access_matrix_with_af, build_access_matrix, | |
7668 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
7669 | No longer assume that all iteration domains are of the same | |
7670 | dimensionality. | |
7671 | ||
7672 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
7673 | ||
7674 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
7675 | defined in a loop at depth 0 is invariant. | |
7676 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
7677 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
7678 | be called at loop depth 0. | |
7679 | ||
7680 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
7681 | a parameter. | |
7682 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
7683 | (down_open_scop): Removed. | |
7684 | (loop_in_scop_p): Redefined. | |
7685 | (scop_affine_expr): New argument: scop. | |
7686 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
7687 | a harmful statement ending a scop. | |
7688 | (basic_block_simple_for_scop_p): New argument: scop. | |
7689 | (get_loop_start): Removed. | |
7690 | (new_scop): Initialize SCOP_LOOPS. | |
7691 | (free_scop): Free SCOP_LOOPS. | |
7692 | (succs_at_same_depth, preds_at_same_depth): New. | |
7693 | (end_scop): Test the validity of a scop. | |
7694 | (add_dominators_to_open_scops): New. | |
7695 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
7696 | Add cases for opening and closing multiple scops. | |
7697 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
7698 | depth first order. | |
7699 | (build_graphite_bb): Pass scop directly. | |
7700 | (dfs_bb_in_scop_p): New. | |
7701 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
7702 | several times. | |
7703 | (nb_loops_around_gb): Use loop_in_scop_p. | |
7704 | (schedule_to_scattering): Disabled for the moment the code computing | |
7705 | the "textual order for outer loop". | |
7706 | ||
7707 | * graphite.h (struct scop): New field loops. | |
7708 | (SCOP_LOOPS): New. | |
7709 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
7710 | ||
45489e99 | 7711 | * gcc.dg/graphite/scop-{1,...,7}.c: Updated. |
2abae5f1 SP |
7712 | |
7713 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
7714 | Sebastian Pop <sebastian.pop@amd.com> | |
7715 | ||
7716 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
7717 | * common.opt (fstreamize-loops): New. | |
7718 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
7719 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
7720 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
7721 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
7722 | ||
7723 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7724 | ||
7725 | * tree-data-ref.c (build_empty_rdg): New. | |
7726 | (build_rdg): Use it. | |
7727 | * tree-data-ref.h (build_empty_rdg): Declared. | |
7728 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
7729 | (find_vertex_for_stmt): Removed. | |
7730 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
7731 | ||
7732 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
7733 | ||
7734 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
7735 | loop tree, also delete basic blocks. | |
7736 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
7737 | processed. | |
7738 | ||
7739 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7740 | ||
7741 | * graphite.c (build_scop_alpha): Removed. | |
7742 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
7743 | and dump_dependence_graph to avoid compiler warnings. | |
7744 | ||
7745 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7746 | ||
7747 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
7748 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
7749 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
7750 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
7751 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
7752 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
7753 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
7754 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
7755 | dump_dependence_graph): New. | |
7756 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
7757 | (GBB_ALPHA): New. | |
7758 | (struct scop): New field loop2cloog_loop. | |
7759 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
7760 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
7761 | ||
7762 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7763 | ||
7764 | * graphite.c (build_graphite_bb): Fix initialization | |
7765 | of the graphite basic block. | |
7766 | ||
7767 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
7768 | ||
7769 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
7770 | loop domain matrix. Pass in the number of loops contained in the | |
7771 | constraint matrix. | |
7772 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
7773 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
7774 | loops that are not surrounding the current loop are not represented | |
7775 | in the domain constraint matrix. | |
7776 | (build_scop_iteration_domain): Initial domain constraint matrix | |
7777 | contains only the eq/ineq, cst, and scop parameters columns. | |
7778 | ||
7779 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7780 | ||
7781 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
7782 | (print_graphite_bb): Print scattering. | |
7783 | ||
7784 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7785 | ||
7786 | * graphite.c (initialize_cloog_names): Initialize names of | |
7787 | scattering variables. | |
7788 | ||
7789 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7790 | ||
7791 | * graphite.c (dot_all_scops_1): Disable debug output while | |
7792 | printing graph. | |
7793 | ||
7794 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7795 | ||
7796 | * graphite.c (find_transform): Change cloog output language to C. | |
7797 | ||
7798 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
7799 | ||
7800 | * tree-loop-distribution.c (generate_memset_zero, | |
7801 | generate_builtin, generate_code_for_partition, | |
7802 | rdg_flag_all_uses): New. | |
7803 | (rdg_flag_uses): Gather in the same partition the statements defining | |
7804 | the VUSES of the current statement. | |
7805 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
7806 | Gather in the same partition not only the stores to the same memory | |
7807 | access, but also the reads. | |
7808 | (ldist_generate_loops): Renamed ldist_gen. | |
7809 | ||
7810 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
7811 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
7812 | ||
7813 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
7814 | next pointer, don't use the inner pointer. | |
7815 | ||
7816 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7817 | ||
7818 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
7819 | (find_transform): Call dot_all_1. | |
7820 | * graphite.h (dot_all_scops): Declared. | |
7821 | ||
7822 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
7823 | ||
7824 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
7825 | (create_bb_after_loop): New. | |
7826 | (generate_loops_for_partition): Use it. | |
45489e99 | 7827 | * gfortran.dg/ldist-1.f90: New. |
2abae5f1 SP |
7828 | |
7829 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
7830 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
7831 | ||
7832 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7833 | ||
7834 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
7835 | ||
7836 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7837 | ||
7838 | * graphite.c (initialize_cloog_names): Initialize cloog | |
7839 | iterator names. | |
7840 | ||
7841 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7842 | ||
7843 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
7844 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
7845 | ||
7846 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
7847 | ||
7848 | * Fix merge problems. | |
7849 | ||
7850 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
7851 | ||
7852 | * graphite.c (setup_cloog_loop): Fix typo. | |
7853 | ||
7854 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
7855 | ||
7856 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
7857 | * tree-loop-distribution.c: Reimplemented. | |
7858 | * tree-pass.h (pass_loop_distribution): New. | |
7859 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
7860 | print_loops. | |
7861 | * graphds.h (struct graph): New field indexes. | |
7862 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
7863 | ||
7864 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
7865 | needed. | |
7866 | * tree-vectorizer.c: Same. | |
7867 | (rename_variables_in_loop): Now extern. | |
7868 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
7869 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
7870 | calling redirect_edge_and_branch_force. | |
7871 | ||
7872 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
7873 | ||
7874 | * tree-data-ref.c: Don't include tree-chrec.h. | |
7875 | (debug_data_dependence_relations): New. | |
7876 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
7877 | in the relation. | |
7878 | (same_access_functions): Moved... | |
7879 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
7880 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
7881 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
7882 | struct rdg_vertex_info, ): New. | |
7883 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
7884 | at DDR_REVERSED_P. | |
7885 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
7886 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
7887 | (stmts_from_loop): Don't save LABEL_EXPR. | |
7888 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
7889 | hash_stmt_vertex_del): New. | |
7890 | (build_rdg): Initialize rdg->indexes. | |
7891 | (free_rdg, stores_from_loop, ref_base_address, | |
7892 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
7893 | have_similar_memory_accesses_1, ref_base_address_1, | |
7894 | remove_similar_memory_refs): New. | |
7895 | ||
7896 | * tree-data-ref.h: Include tree-chrec.h. | |
7897 | (debug_data_dependence_relations): Declared. | |
7898 | (same_access_functions): ...here. Now static inline. | |
7899 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
7900 | ddr_dependence_level): New. | |
7901 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
7902 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
7903 | RDG_MEM_READS_STMT): New. | |
7904 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
7905 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
7906 | rdg_vertex_for_stmt): Declared. | |
7907 | (struct rdg_edge): New field level. | |
7908 | (RDGE_LEVEL, free_rdg): New. | |
7909 | (stores_from_loop, remove_similar_memory_refs, | |
7910 | rdg_defs_used_in_other_loops_p, | |
7911 | have_similar_memory_accesses): Declared. | |
7912 | (rdg_has_similar_memory_accesses): New. | |
7913 | ||
7914 | * lambda.h (dependence_level): New. | |
7915 | * common.opt (ftree-loop-distribution): New. | |
7916 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
7917 | (print_loop_ir): Renamed print_loops. | |
7918 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
7919 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
7920 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
7921 | (tree-loop-distribution.o): Added. | |
7922 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
7923 | (mark_virtual_ops_in_bb): New. | |
7924 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
7925 | * passes.c: Scheduled pass_loop_distribution. | |
7926 | ||
7927 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7928 | ||
7929 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
7930 | for polylib format. | |
7931 | (nb_flat_iterator): New. | |
7932 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
7933 | (build_scop_iteration_domain): Correct the number of columns for | |
7934 | polylib format. | |
7935 | ||
7936 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
7937 | ||
7938 | * Merge from mainline (129697:130800). | |
7939 | ||
7940 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
7941 | ||
7942 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
7943 | dominated by SCoP's exit. | |
7944 | (graphite_transform_loops): Compute post dominators. | |
7945 | ||
7946 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
7947 | ||
7948 | * Merge from mainline (127169:129697). | |
7949 | ||
7950 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
7951 | ||
7952 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
7953 | parameter for the basic block that contains the expression. Use | |
7954 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
7955 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
7956 | the expression. | |
7957 | * graphite.h (gbb_loop): New. | |
7958 | (GBB_LOOP): Removed. | |
7959 | ||
7960 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
7961 | ||
7962 | * Makefile.in: Fix merge problem. | |
7963 | ||
7964 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
7965 | ||
7966 | * Merge from mainline (125309:127169). | |
7967 | * tree-loop-distribution.c: Disabled. | |
7968 | ||
7969 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
7970 | ||
7971 | * Merge from mainline (r123693:125309). | |
7972 | ||
7973 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
7974 | ||
7975 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
7976 | correct_modify_p | |
7977 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
7978 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
7979 | instead of MODIFY_EXPR. | |
7980 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
7981 | and push new edges. | |
7982 | ||
7983 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
7984 | ||
7985 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
7986 | VECs for edges and vertices. | |
7987 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
7988 | (RDGV_NB_PARTITIONS): New. | |
7989 | (PRDG_NBV, PRDG_NBE): Removed. | |
7990 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
7991 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
7992 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
7993 | ||
7994 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
7995 | Sebastian Pop <sebpop@gmail.com> | |
7996 | ||
7997 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
7998 | * tree-loop-distribution.c: New file. | |
7999 | * tree-pass.h (pass_loop_distribution): Declared. | |
8000 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
8001 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
8002 | and set reversed_p. | |
8003 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
8004 | (DDR_REVERSED_P): New. | |
8005 | * common.opt (-ftree-loop-distribution): New. | |
8006 | * tree-flow.h (distribute_loops): Declared. | |
8007 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
8008 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
8009 | ||
8010 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8011 | ||
8012 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
8013 | (print_scop): Don't print when scop is NULL. | |
8014 | (build_scop_context, find_transform): Don't output to stderr. | |
8015 | ||
8016 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
8017 | ||
8018 | * tree-data-ref.c: Don't include graphite.h. | |
8019 | Comment out the code for printing data reference's scop. | |
8020 | (build_access_matrix_with_af): Moved... | |
8021 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
8022 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
8023 | (print_graphite_bb): Print basic block's schedule. | |
8024 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
8025 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
8026 | dominated and postdominated by the scop's entry and exit basic blocks. | |
8027 | (function_parameter_p): New. | |
8028 | (invariant_in_scop_p): Use function_parameter_p. | |
8029 | (new_scop, save_scop): New. | |
8030 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
8031 | save_scop. | |
8032 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
8033 | (loop_in_scop_p): New. | |
8034 | (scop_record_loop): Use loop_in_scop_p. | |
8035 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
8036 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
8037 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
8038 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
8039 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
8040 | (struct scop): Add a pointer to cloog's representation of a program. | |
8041 | ||
8042 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8043 | ||
8044 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
8045 | -ftree-checks-verbose. | |
8046 | * common.opt (flag_tree_check_verbose): Renamed | |
8047 | flag_tree_checks_verbose. | |
8048 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
8049 | ||
8050 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8051 | ||
8052 | * configure: Regenerated. | |
8053 | * config.in: Regenerated. | |
8054 | * tree-ssa-loop.c (graphite_transforms): Execute | |
8055 | graphite_transform_loops only when HAVE_cloog. | |
8056 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
8057 | * graphite.c: Include polylibgmp.h and cloog.h. | |
8058 | (graphite_transform_loops): Removed loops parameter. | |
8059 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
8060 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
8061 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
8062 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
8063 | (OBJS-common): Remove dependence on graphite.o. | |
8064 | (BACKEND): Depend on @GRAPHITE@. | |
8065 | ||
8066 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
8067 | ||
8068 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
45489e99 SP |
8069 | * gcc.dg/tree-checker/tree-checks-1.c: New. |
8070 | * gcc.dg/tree-checker/tree-checks-2.c: New. | |
8071 | * gcc.dg/tree-checker/tree-checks-3.c: New. | |
8072 | * gcc.dg/tree-checker/tree-checks-4.c: New. | |
8073 | * gcc.dg/tree-checker/tree-checks.exp: New. | |
8074 | * gcc.dg/tree-checker/condates.crp: New. | |
2abae5f1 SP |
8075 | * common.opt (ftree-checks-verbose): New. |
8076 | * tree-check.c (tree_check_warning): Move extra stderr output | |
8077 | under control of flag_tree_check_verbose. | |
8078 | ||
8079 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8080 | ||
8081 | * tree-match.c: Fix comments formatting. | |
8082 | * tree-match.h: Fix comments formatting. | |
8083 | * tree-check.c: Fix comments formatting. | |
8084 | (tree_check_init): Restructure. | |
8085 | ||
8086 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
8087 | ||
8088 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
8089 | ||
8090 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
8091 | ||
8092 | * Merge from mainline (r120733:123693). | |
8093 | ||
8094 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
8095 | ||
8096 | * condate.y: New file. | |
8097 | * tree-match.h (struct patt_info_s): New field sign. | |
8098 | (struct condate_s): New field msg. | |
8099 | (normalize_condate, name_condate, add_condate): New. | |
8100 | (conds[], condate_parse): Made extern. | |
8101 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
8102 | warning reformatted. | |
8103 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
8104 | (tree_scan): New. | |
8105 | (tree_check): Process trivial condates. | |
8106 | (read_delimited_string): Removed. | |
8107 | (print_cond): Print name and msg. | |
8108 | (conds[]): Made extern. | |
8109 | (parse_tree_check_file_once): Rewritten to use the parser in | |
8110 | condate.y. | |
8111 | Processing of option --tree_check_string moved to tree_scan(). | |
8112 | * Makefile.in: Added condate.y | |
8113 | ||
8114 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8115 | ||
8116 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
8117 | Use VECs instead of varrays. | |
8118 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
8119 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
8120 | * pretty-print.c: Include tree.h and vec.h. | |
8121 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
8122 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
8123 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
8124 | pp_free_list): Use VECs instead of varrays. | |
8125 | * pretty-print.h: Do not include varray.h. | |
8126 | (struct tree_chunk_s): Declaration moved before its use. | |
8127 | (output_buffer): Rename varray field to chunks. | |
8128 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
8129 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
8130 | save_global_holes): Use VECs instead of varrays. | |
8131 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
8132 | * tree-check.c (scan_cfg_stmts, push_node, | |
8133 | print_matching_stmt): Removed. | |
8134 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
8135 | execute_tree_check): Use VECs instead of varrays. | |
8136 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
8137 | is not available. | |
8138 | ||
8139 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8140 | ||
8141 | * Merge from mainline (r115016:120733). | |
8142 | ||
8143 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8144 | ||
8145 | * Merge from mainline (r117632:117661). | |
8146 | ||
8147 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8148 | ||
8149 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
8150 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
8151 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
8152 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
8153 | get_loop_exit_condition, analyze_evolution_in_loop, | |
8154 | analyze_initial_condition, analyze_scalar_evolution, | |
8155 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
8156 | * tree-chrec.c (chrec_apply): Use debug_p. | |
8157 | * tree-data-ref.c: Include graphite.h. | |
8158 | (dump_data_reference): Print also the access matrix. | |
8159 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
8160 | analyze_offset_expr, address_analysis, object_analysis, | |
8161 | create_data_ref, finalize_ddr_dependent, | |
8162 | non_affine_dependence_relation, analyze_ziv_subscript, | |
8163 | analyze_siv_subscript_cst_affine, | |
8164 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
8165 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
8166 | analyze_miv_subscript, analyze_overlapping_iterations, | |
8167 | build_classic_dist_vector, subscript_dependence_tester, | |
8168 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
8169 | (build_access_matrix_with_af): No longer static. | |
8170 | * tree-data-ref.h (scop_p): ... declaration here. | |
8171 | (data_reference.scop): New field. | |
8172 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
8173 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
8174 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
8175 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
8176 | (test_for_scop_bound): Use debug_p. | |
8177 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
8178 | scop_nb_params. | |
8179 | (scop_loop_index): Moved... | |
8180 | (scop_record_loop): New. | |
8181 | (build_scop_loop_nests): Use scop_record_loop. | |
8182 | (build_scop_domain): Use scop_dim_domain. | |
8183 | (build_access_matrix): Implemented. | |
8184 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
8185 | (build_graphite_bb): Initialize GBB_SCOP. | |
8186 | * graphite.h (scop_p): Moved... | |
8187 | (graphite_bb.scop): New field. | |
8188 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
8189 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
8190 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
8191 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
8192 | scop_loop_index): New. | |
8193 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
8194 | ||
8195 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
8196 | ||
8197 | * Merge from mainline (r117661:120450). | |
8198 | ||
8199 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8200 | ||
8201 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
8202 | at the first declaration outside the varying loop, instantiate as | |
8203 | far as possible. | |
8204 | * tree-chrec.c (for_each_scev_op): New. | |
8205 | * tree-chrec.h (for_each_scev_op): Declared. | |
8206 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
8207 | * tree-data-ref.c (get_references_in_stmt, | |
8208 | find_data_references_in_stmt): New, from trunk. | |
8209 | (find_data_references_in_loop): Use get_references_in_stmt | |
8210 | and find_data_references_in_loop, modified as in trunk. | |
8211 | (build_access_matrix_with_af): New. | |
8212 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
8213 | (data_ref_loc): New, as in trunk. | |
8214 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
8215 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
8216 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
8217 | idx_record_param, idx_record_params, build_access_matrix, | |
8218 | build_scop_data_accesses, build_scop_canonical_schedules, | |
8219 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
8220 | build_scop_params): New. | |
8221 | * graphite.h (graphite_bb): New. | |
8222 | (scop): Add fields static_schedule, params, loop_nest, | |
8223 | iteration_domain. | |
8224 | * lambda.h: Declare vecs of lambda_matrix. | |
8225 | * tree-flow.h (print_loop_ir_bb): Declared. | |
8226 | * tree-cfg.c (print_loop_ir_bb): New. | |
8227 | (print_loop): Use print_loop_ir_bb. | |
8228 | ||
8229 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
8230 | ||
8231 | * Merge from mainline (r115016:117632). | |
8232 | ||
8233 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
8234 | ||
8235 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
8236 | break due to a warning. | |
8237 | ||
8238 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
8239 | ||
8240 | * graphite.c (print_scops, debug_scops): New. | |
8241 | (graphite_transform): Renamed graphite_find_transform. | |
8242 | * graphite.h (debug_scops): Declared. | |
8243 | ||
8244 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
8245 | ||
8246 | * tree-match.c: Reformat following the GNU style. | |
8247 | * tree-match.h: Reformat following the GNU style. | |
8248 | * tree-pattern.h: Removed empty file. | |
8249 | * Makefile.in: Remove references to tree-pattern.h. | |
8250 | * tree-check.c: Reformat following the GNU style. | |
8251 | (execute_tree_check): Move gate condition code to... | |
8252 | (gate_tree_check): ...here. New function. | |
8253 | (pass_check): Use the gate function. | |
8254 | ||
8255 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
8256 | ||
8257 | * tree-pattern.h: New. Tree pattern matching and checking using | |
8258 | concrete syntax. | |
8259 | * tree-check.c: New. Tree/CFG checking pass. | |
8260 | * tree-match.c: New. Library for tree pattern matching. | |
8261 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
8262 | * toplev.c, flags.h: Add globals for tree-check pass. | |
8263 | * Makefile.in: Integrate the files in tree-check pass. | |
8264 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
8265 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
8266 | Introduce a "lazy" pretty-print mode. | |
8267 | * tree.c, tree.h: Add tree_name. | |
8268 | ||
8269 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
8270 | ||
8271 | * doc/invoke.texi (-fgraphite): Correct typo. | |
8272 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
8273 | use of print_loop_ir. | |
45489e99 SP |
8274 | * gcc.dg/graphite/scop-1.c: New. |
8275 | * gcc.dg/graphite/scop-2.c: New. | |
8276 | * gcc.dg/graphite/graphite.exp: New. | |
2abae5f1 SP |
8277 | * graphite.c: Include domwalk.h. |
8278 | (print_scop): Print only the entry and exit blocks. | |
8279 | (debug_scop): No longer static. | |
8280 | (affine_expr): Fix formating. Return also true when the expression is | |
8281 | constant. | |
8282 | (stmt_simple_for_scop_p): Fix formating. | |
8283 | (build_scops): Use domwalk. | |
8284 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
8285 | (graphite_transform_loops): Avoid printing on stderr. | |
8286 | * graphite.h (debug_scop): Declared. | |
8287 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
8288 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
8289 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
8290 | declarations for static functions. | |
8291 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
8292 | controlling output verbosity. | |
8293 | ||
8294 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
8295 | Plesco Alexandru <shurikx@gmail.com> | |
8296 | ||
8297 | * doc/invoke.texi (-fgraphite): Document. | |
8298 | * tree-pass.h (pass_graphite_transforms): Declared. | |
8299 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
8300 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
8301 | (pass_graphite_transforms): Defined. | |
8302 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
8303 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
8304 | * graphite.c, graphite.h: New. | |
8305 | * common.opt (fgraphite): Declared. | |
8306 | * tree-flow.h (graphite_transform_loops): Declared. | |
8307 | * Makefile.in (OBJS-common): Add graphite.o. | |
8308 | (graphite.o): New rule. | |
8309 | * passes.c (pass_graphite_transforms): Scheduled. | |
8310 |