]>
Commit | Line | Data |
---|---|---|
54cf8879 SP |
1 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
2 | ||
3 | * testsuite/gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. | |
4 | * testsuite/gcc.dg/graphite/scop-0.c: Fix spaces. | |
5 | * testsuite/gfortran.dg/graphite/block-1.f90: Rewrite expected output. | |
6 | * testsuite/gfortran.dg/graphite/block-2.f: Same. | |
7 | * testsuite/gfortran.dg/graphite/block-3.f90: Same. | |
8 | * testsuite/gfortran.dg/graphite/block-4.f90: Same. | |
9 | * testsuite/gfortran.dg/graphite/interchange-1.f: Un-XFAILed. | |
10 | * testsuite/gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
11 | ||
b5eb099f SP |
12 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
13 | ||
14 | * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and | |
15 | PDDR_ORIGINAL_SCATTERING_P. | |
16 | (pddr_is_empty): Rewritten. | |
17 | (print_dependence_polyhedron_layout): New. | |
18 | (print_pddr): New. | |
19 | (debug_pddr): New. | |
20 | (build_alias_set_powerset): Moved up. | |
21 | (poly_drs_may_alias_p): Moved up. | |
22 | (lexicographically_gt_p): Removed. | |
23 | (build_lexicographically_gt_constraint): Renamed | |
24 | build_lexicographical_constraint, reimplemented. | |
25 | (dependence_polyhedron_1): Simplified parameters. | |
26 | (dependence_polyhedron): Same. Keep along empty PDDRs | |
27 | to make efficient use of the cache. | |
28 | (reduction_dr_p): Compute the PBBs don't pass them as parameters. | |
29 | (graphite_legal_transform_dr): Rewritten. | |
30 | (graphite_legal_transform_bb): Pass fewer arguments to | |
31 | graphite_legal_transform_dr. | |
32 | (graphite_carried_dependence_level_k): Simplified implementation. | |
33 | (dot_original_deps_stmt_1): Call dependence_polyhedron. | |
34 | (dot_transformed_deps_stmt_1): Same. | |
35 | (dot_original_deps): Same. | |
36 | (dot_transformed_deps): Same. | |
37 | * graphite-dependences.h (struct poly_ddr): Added a new field | |
38 | original_scattering_p. | |
39 | (PDDR_ORIGINAL_SCATTERING_P): New. | |
40 | (print_pddr): Declared. | |
41 | (debug_pddr): Declared. | |
42 | * graphite-ppl.c: Clarify comment. | |
43 | * sese.h (print_gimple_bb): Removed unused declaration. | |
44 | (debug_gbb): Same. | |
45 | ||
64630e61 SP |
46 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
47 | ||
48 | * testsuite/g++.dg/graphite/graphite.exp: Rewritten. | |
49 | * testsuite/gcc.dg/graphite/graphite.exp: Rewritten. | |
50 | * testsuite/gfortran.dg/graphite/graphite.exp: Rewritten. | |
51 | * gcc/testsuite/gcc.dg/graphite/block-0.c: Added runtime test. | |
52 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
53 | * testsuite/gcc.dg/graphite/block-3.c: Same. | |
54 | * testsuite/gcc.dg/graphite/block-4.c: Same. | |
55 | * testsuite/gcc.dg/graphite/block-5.c: Same. | |
56 | * testsuite/gcc.dg/graphite/block-6.c: Same. | |
57 | * testsuite/gcc.dg/graphite/block-7.c: Same. | |
58 | * testsuite/gcc.dg/graphite/interchange-0.c: Same. | |
59 | * testsuite/gcc.dg/graphite/interchange-1.c: Same. | |
60 | * testsuite/gcc.dg/graphite/interchange-10.c: Same. | |
61 | * testsuite/gcc.dg/graphite/interchange-11.c: Same. | |
62 | * testsuite/gcc.dg/graphite/interchange-12.c: Same. | |
63 | * testsuite/gcc.dg/graphite/interchange-2.c: Same. | |
64 | * testsuite/gcc.dg/graphite/interchange-3.c: Same. | |
65 | * testsuite/gcc.dg/graphite/interchange-4.c: Same. | |
66 | * testsuite/gcc.dg/graphite/interchange-5.c: Same. | |
67 | * testsuite/gcc.dg/graphite/interchange-6.c: Same. | |
68 | * testsuite/gcc.dg/graphite/interchange-7.c: Same. | |
69 | * testsuite/gcc.dg/graphite/interchange-8.c: Same. | |
70 | * testsuite/gcc.dg/graphite/interchange-9.c: Same. | |
71 | * testsuite/gcc.dg/graphite/interchange-mvt.c: Same. | |
72 | * testsuite/gcc.dg/graphite/run-id-2.c: Remove useless dg-do run. | |
73 | ||
4c8f3c48 RU |
74 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
75 | ||
76 | * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in | |
77 | background. | |
78 | ||
79 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
80 | ||
81 | * common.opt: Add -fgraphite-cloog-opts. | |
82 | * graphite-clast-to-gimple.c (set_cloog_options): Same. | |
83 | * opts.c (decode_options): Same. | |
84 | ||
86e4d552 SP |
85 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
86 | ||
87 | * testsuite/gcc.dg/graphite/id-17.c: New. | |
88 | * testsuite/gcc.dg/graphite/pr41888.c: New. | |
89 | * testsuite/gcc.dg/graphite/scop-22.c: New. | |
90 | * testsuite/gfortran.dg/graphite/pr40982.f90: New. | |
91 | ||
3070ac15 SP |
92 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
93 | ||
94 | * graphite-dependences.c: Clarify comments. | |
95 | (build_pddr): Add an extra parameter direction. | |
96 | (graphite_legal_transform_dr): Use build_pddr. | |
97 | (dot_original_deps_stmt_1): Update use of build_pddr. | |
98 | (dot_transformed_deps_stmt_1): Same. | |
99 | (dot_original_deps): Same. | |
100 | (dot_transformed_deps): Same. | |
101 | ||
102 | * testsuite/gcc.dg/graphite/interchange-12.c: New. | |
103 | * testsuite/gcc.dg/graphite/block-7.c: New. | |
104 | ||
a7ed6c90 SP |
105 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
106 | ||
107 | * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr. | |
108 | (pddr_transformed_scattering): Removed. | |
109 | (graphite_legal_transform_dr): Use build_pddr. | |
110 | (dot_original_deps_stmt_1): Same. | |
111 | (dot_transformed_deps_stmt_1): Same. | |
112 | (dot_original_deps): Same. | |
113 | (dot_transformed_deps): Same. | |
114 | ||
e65a7579 SP |
115 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
116 | ||
117 | * graphite-dependences.c (lexicographically_gt_p): Add comments. | |
118 | (build_lexicographically_gt_constraint): Same. | |
119 | (dependence_polyhedron_1): Same. | |
120 | (dependence_polyhedron): Same. | |
121 | ||
7cbd4c5e SP |
122 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
123 | ||
124 | * graphite-dependences.c (build_pairwise_scheduling_equality): Removed. | |
125 | (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling. | |
126 | (lexicographically_gt_p): Change type of direction to int. | |
127 | (build_lexicographically_gt_constraint): Same. | |
128 | (dependence_polyhedron_1): Same. | |
129 | (dependence_polyhedron): Same. | |
130 | (pddr_original_scattering): Use integers for direction. | |
131 | (pddr_transformed_scattering): Same. | |
132 | (graphite_legal_transform_dr): Same. | |
133 | (graphite_carried_dependence_level_k): Same. | |
134 | ||
429ba740 SP |
135 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
136 | ||
137 | * graphite-dependences.c (build_pairwise_constraint): Renamed | |
138 | ppl_build_relation. Moved... | |
139 | (dr_equality_constraints): Use ppl_build_relation. | |
140 | (build_pairwise_scheduling_equality): Same. | |
141 | (build_pairwise_scheduling_inequality): Same. | |
142 | * graphite-ppl.c (ppl_build_relation): ...here. | |
143 | * graphite-ppl.h (ppl_build_relation): Declared. | |
144 | ||
3c7c0158 SP |
145 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
146 | ||
147 | PR middle-end/42681 | |
148 | * graphite-clast-to-gimple.c (gloog_error): New static variable. | |
149 | (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P. | |
150 | Set gloog_error when such an expression failed to be built. | |
151 | (translate_clast): Early return when gloog_error is set. | |
152 | (gloog): Clear gloog_error. When gloog_error is set, call | |
153 | set_ifsese_condition to enable the original code. Return the status | |
154 | of the code generation based on gloog_error. | |
155 | * sese.c (set_ifsese_condition): New. | |
156 | * sese.h (set_ifsese_condition): Declared. | |
157 | ||
158 | * testsuite/g++.dg/graphite/pr42681.C: New. | |
159 | ||
a7bf45de SP |
160 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
161 | ||
162 | PR middle-end/42732 | |
163 | * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and | |
164 | rename_nb_iterations. | |
165 | * sese.c (rename_variables_in_operand): New. | |
166 | (rename_variables_in_expr): New. | |
167 | (rename_nb_iterations): New. | |
168 | (sese_adjust_liveout_phis): Update the rename_map. | |
169 | * sese.h (rename_nb_iterations): Declared. | |
170 | * tree-scalar-evolution.c (scev_reset_htab): New. | |
171 | (scev_reset): Call scev_reset_htab. | |
172 | * tree-scalar-evolution.h (scev_reset_htab): Declared. | |
173 | ||
174 | * testsuite/gfortran.dg/graphite/pr42732.f: New. | |
175 | ||
e1496917 SP |
176 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
177 | ||
178 | PR middle-end/42393 | |
179 | * graphite-clast-to-gimple.c: Fix formatting. | |
180 | * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p. | |
181 | (expr_defined_in_loop_p): New. | |
182 | (add_loop_exit_phis): Also handle full expressions: remove from | |
183 | the rename_map the expressions defined in the loop that we're closing. | |
184 | ||
185 | * testsuite/gfortran.dg/graphite/pr42393-1.f90: New. | |
186 | * testsuite/gfortran.dg/graphite/pr42393.f90: Add new flags | |
187 | -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also | |
188 | make this testcase useful in the Graphite branch. | |
189 | ||
c8ae0613 SP |
190 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
191 | ||
192 | * graphite-scop-detection.c (exclude_component_ref): Removed. | |
193 | (is_simple_operand): Removed. | |
194 | (stmt_simple_for_scop_p): Remove use of is_simple_operand. | |
195 | ||
4e98c66c SP |
196 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
197 | ||
198 | PR middle-end/42221 | |
199 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
200 | the array indexing of ADDR_EXPRs. | |
201 | ||
202 | * testsuite/gcc.dg/graphite/pr42221.c: New. | |
203 | ||
fd4a56ff SP |
204 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
205 | ||
206 | PR middle-end/42521 | |
207 | * graphite.c (graphite_finalize): Call scev_reset. | |
208 | (graphite_transform_loops): Do not call scev_reset between the code | |
209 | generation of scops. | |
210 | ||
211 | * testsuite/gcc.dg/graphite/pr42521.c: New. | |
212 | ||
eaffa762 SP |
213 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
214 | ||
215 | * graphite-interchange.c (memory_stride_in_loop): Renamed | |
216 | pdr_stride_in_loop. | |
217 | (memory_strides_in_loop): Renamed memory_strides_in_loop_1. | |
218 | (memory_strides_in_loop): Memoize the memory strides per loop. | |
219 | (lst_interchange_profitable_p): Do not initialize to zero the memory | |
220 | strides. | |
221 | * graphite-poly.h (struct lst): Add a field memory_strides. | |
222 | (LST_LOOP_MEMORY_STRIDES): New. | |
223 | (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1. | |
224 | (free_lst): Clear LST_LOOP_MEMORY_STRIDES. | |
225 | ||
bf69e754 SP |
226 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
227 | ||
228 | * graphite-interchange.c (memory_strides_in_loop_depth): Renamed | |
229 | memory_strides_in_loop. Gather memory strides on a whole loop. | |
230 | (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p. | |
231 | (lst_interchange_profitable_p): Removed. | |
232 | (lst_try_interchange_loops): Call lst_interchange_profitable_p. | |
233 | ||
9fa29a09 SP |
234 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
235 | ||
236 | Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
237 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
238 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
239 | Remove context_loop and level. | |
240 | ||
11d6ea5e SP |
241 | 2010-01-07 Richard Guenther <rguenther@suse.de> |
242 | ||
243 | PR tree-optimization/42641 | |
244 | * sese.c (rename_map_elt_info): Use the SSA name version, do | |
245 | not hash pointers. | |
246 | ||
247 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> | |
248 | ||
249 | * graphite-blocking.c (scop_do_block): Print "SCoP will be loop | |
250 | blocked" only when both the strip mine and the interchange have | |
251 | been applied. | |
252 | ||
253 | * testsuite/gcc.dg/graphite/block-2.c: Removed. | |
254 | * testsuite/gcc.dg/graphite/block-3.c: Add scan pattern. | |
255 | * testsuite/gcc.dg/graphite/block-4.c: Same. | |
256 | * testsuite/gcc.dg/graphite/block-5.c: Same. | |
257 | * testsuite/gcc.dg/graphite/block-6.c: Same. | |
258 | ||
556afcdc SP |
259 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> |
260 | ||
261 | * graphite-clast-to-gimple.c (save_clast_name_index): Free slot | |
262 | before allocating a new one. | |
263 | (copy_renames): Check that slot is not NULL. | |
264 | (mark_bb_with_pbb): Same. | |
265 | (compute_cloog_iv_types_1): Same. | |
266 | * graphite-interchange.c (lst_perfect_nestify): Free the before, | |
267 | nest, and after LSTs. | |
268 | (lst_try_interchange_loops): Same. | |
269 | ||
e68c3c6c SP |
270 | 2010-01-05 Sebastian Pop <sebastian.pop@amd.com> |
271 | ||
272 | PR middle-end/42178 | |
273 | * graphite-interchange.c (lst_try_interchange_loops): Do not return | |
274 | the before, nest, and after LSTs. | |
275 | (lst_try_interchange): Removed. | |
276 | (lst_interchange_select_inner): Do not iterate over the LSTs if they | |
277 | were modified. | |
278 | (lst_interchange_select_outer): Apply interchange on the outer loop | |
279 | until there are no more changes in the inner loops. | |
280 | ||
a84a556d SP |
281 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
282 | ||
283 | Revert patch fixing PR middle-end/42221. | |
284 | ||
285 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> | |
286 | ||
287 | PR middle-end/42180 | |
288 | * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle | |
289 | GIMPLE_CALL. | |
290 | ||
291 | * testsuite/gfortran.dg/graphite/pr42180.f90: Add compile flags. | |
292 | ||
b147df0b SP |
293 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
294 | ||
295 | PR middle-end/42180 | |
296 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks | |
297 | that contain only one statement. | |
298 | ||
a84a556d SP |
299 | * testsuite/gfortran.dg/graphite/pr42180.f90: New. |
300 | ||
ce20f9d6 SP |
301 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
302 | ||
303 | PR middle-end/42393 | |
304 | * testsuite/gfortran.dg/graphite/pr42393.f90: New. | |
305 | ||
d2a271ac SP |
306 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
307 | ||
308 | PR middle-end/42186 | |
309 | * testsuite/gfortran.dg/graphite/pr42186.f90: New. | |
310 | ||
403ebc7e SP |
311 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
312 | ||
313 | PR middle-end/42205 | |
314 | * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt): | |
315 | Insert the reduction copy in the same block as the phi node. | |
316 | (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs. | |
317 | ||
318 | * testsuite/gcc.dg/graphite/pr42205-1.c: New. | |
319 | * testsuite/gcc.dg/graphite/pr42205-2.c: New. | |
320 | ||
321 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> | |
322 | ||
323 | PR middle-end/42221 | |
324 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
325 | the array indexing of ADDR_EXPRs. | |
326 | ||
327 | * testsuite/gcc.dg/graphite/pr42221.c: New. | |
328 | ||
070ba483 SP |
329 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
330 | ||
331 | PR middle-end/42178 | |
332 | PR middle-end/42334 | |
333 | * graphite-interchange.c (lst_try_interchange): Do not modify OUTER | |
334 | index. Call lst_interchange_select_inner only once. | |
335 | (lst_interchange_select_inner): Update use of lst_try_interchange. | |
336 | (lst_interchange_select_outer): Update. | |
337 | ||
338 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
339 | ||
340 | PR middle-end/42178 | |
341 | PR middle-end/42334 | |
342 | * graphite-interchange.c (lst_try_interchange): Do not increment the | |
343 | the OUTER index when there is no AFTER kernel. Do not increment the | |
344 | OUTER index for after processing the AFTER kernel. | |
345 | (lst_interchange_select_inner): Call lst_try_interchange only on loops. | |
346 | (lst_interchange_select_outer): Do not pass in a pointer to the OUTER | |
347 | index. Do not pass to lst_interchange_select_inner the OUTER index. | |
348 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
349 | ||
350 | * testsuite/gfortran.dg/graphite/graphite.exp | |
351 | (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all. | |
352 | * testsuite/gfortran.dg/graphite/interchange-1.f: Add comment. Clean | |
353 | the graphite dump file. | |
354 | * testsuite/gfortran.dg/graphite/interchange-2.f: Same. | |
355 | * testsuite/gfortran.dg/graphite/pr42334-1.f: New. | |
356 | ||
357 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
358 | ||
359 | PR middle-end/42178 | |
360 | PR middle-end/42334 | |
361 | * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs | |
362 | that are empty. | |
363 | (lst_do_interchange_1): Renamed lst_interchange_select_inner. | |
364 | (lst_try_interchange): Reimplemented. | |
365 | (lst_interchange_select_inner): Same. | |
366 | (lst_do_interchange): Renamed lst_interchange_select_outer. | |
367 | Reimplemented. | |
368 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
369 | ||
370 | * testsuite/g++.dg/graphite/pr42130.C: Add -fgraphite-identity. | |
371 | * testsuite/gcc.dg/graphite/block-0.c: Un-XFAILed. | |
372 | * testsuite/gcc.dg/graphite/pr42211.c: New. | |
373 | * testsuite/gfortran.dg/graphite/pr42334.f90: New. | |
374 | ||
4b216ab0 SP |
375 | 2009-12-14 Sebastian Pop <sebastian.pop@amd.com> |
376 | ||
377 | PR middle-end/42181 | |
378 | * graphite-scop-detection.c (graphite_can_represent_scev): Handle more | |
379 | carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR. | |
380 | ||
381 | * testsuite/gfortran.dg/graphite/pr42181.f90: New. | |
382 | ||
c880097d SP |
383 | 2009-12-12 Sebastian Pop <sebpop@gmail.com> |
384 | ||
385 | PR middle-end/42284 | |
386 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call | |
387 | insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs. | |
388 | (detect_commutative_reduction_arg): Simplified. | |
389 | (detect_commutative_reduction): Early return when the argument of | |
390 | the close phi is not of an SSA_NAME. | |
391 | ||
392 | * testsuite/gcc.dg/graphite/pr42284.c: New. | |
393 | ||
394 | 2009-12-11 Alexander Monakov <amonakov@ispras.ru> | |
395 | ||
396 | * dbgcnt.def (graphite_scop): New counter. | |
397 | * graphite.c: Include dbgcnt.h | |
398 | (graphite_transform_loops): Use new counter to limit transformations. | |
399 | ||
d505015a SP |
400 | 2009-12-08 Sebastian Pop <sebpop@gmail.com> |
401 | ||
402 | PR middle-end/42285 | |
403 | * graphite-scop-detection.c (graphite_can_represent_init): Also | |
404 | handle more complex MULT_EXPRs containing parameters by recursion | |
405 | on the structure. | |
406 | ||
407 | * testsuite/gfortran.dg/graphite/pr42285.f90: New. | |
408 | ||
409 | 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
410 | ||
411 | * testsuite/g++.dg/graphite/pr42130.C: Fix type. | |
412 | ||
ed807d06 AM |
413 | 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org> |
414 | ||
415 | * testsuite/g++.dg/graphite/pr42130.C: Correct testcase. | |
416 | ||
7c246f5e TG |
417 | 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de> |
418 | ||
419 | * graphite-clast-to-gimple.c (try_mark_loop_parallel, | |
420 | graphite_create_new_loop_guard, translate_clast_for): Fix comments. | |
421 | ||
0dd91484 TG |
422 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
423 | ||
424 | PR middle-end/42130 | |
425 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard, | |
426 | translate_clast_for_loop): New. | |
427 | (translate_clast_for): Add a condition around the loop, to do not | |
428 | execute loops with zero iterations. | |
429 | * testsuite/g++.dg/graphite/pr42130.C: New. | |
430 | * testsuite/gcc.dg/graphite/pr35356-2.c: Adapt. | |
431 | ||
fd2d813d TG |
432 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
433 | ||
434 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
435 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
436 | Remove context_loop and level. | |
437 | ||
9016166f TG |
438 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
439 | ||
440 | * graphite-clast-to-gimple.c (translate_clast_user, | |
441 | translate_clast_for, translate_clast_guard): Simplify and move common | |
442 | elements to translate_clast(). | |
443 | (translate_clast): Simplify and get common elements. | |
444 | ||
e1f9c1cd TG |
445 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
446 | ||
447 | * graphite-clast-to-gimple.c (translate_clast_user, | |
448 | translate_clast_for, translate_clast_guard): Split out of | |
449 | translate_clast. | |
450 | ||
7a521ff2 TG |
451 | 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de> |
452 | ||
453 | * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index, | |
454 | clast_name_to_index, save_clast_name_index, debug_clast_name_index, | |
455 | debug_clast_name_indexes_1, debug_clast_name_indexes, | |
456 | clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h. | |
457 | (clast_name_to_gcc, clast_to_gcc_expression, | |
458 | clast_to_gcc_expression_red, gcc_type_for_clast_expr, | |
459 | gcc_type_for_clast_eq, graphite_translate_clast_equation, | |
460 | graphite_create_guard_cond_expr, graphite_create_new_loop, | |
461 | translate_clast): Add params_index. | |
462 | (initialize_cloog_names): Create parameter strings from scratch, do | |
463 | not reference other strings. | |
464 | (create_params_index): New. | |
465 | (gloog): Initialize params_index. | |
466 | * graphite-scop-detection (free_scops_1): Removed. | |
467 | (limit_scops): Use normal free_scops. | |
468 | * graphite-sese-to-poly.c (save_var_names): Removed. | |
469 | (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES | |
470 | and SESE_PARAMS_INDEX. | |
471 | * sese.c (new_sese, free_sese): Dito. | |
472 | * sese.h (struct sese): Remove params_index, params_names. | |
473 | (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed. | |
474 | ||
ca11b093 SP |
475 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
476 | ||
477 | Revert the following patch from 2009-09-14: | |
478 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
479 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
480 | * graphite-clast-to-gimple.c: Same. | |
481 | * graphite-dependences.c: Same. | |
482 | * graphite-interchange.c: Same. | |
483 | * graphite-poly.c: Same. | |
484 | * graphite-scop-detection.c: Same. | |
485 | * graphite-sese-to-poly.c: Same. | |
486 | * graphite.c: Same. | |
487 | * lambda-code.c: Same. | |
488 | * matrix-reorg.c: Same. | |
489 | * tree-data-ref.c: Same. | |
490 | * tree-if-conv.c: Same. | |
491 | * tree-loop-distribu: Same.: Same. | |
492 | * tree-loop-linear.c: Same. | |
493 | * tree-parloops.c: Same. | |
494 | * tree-predcom.c: Same. | |
495 | * tree-vect-patterns.c: Same. | |
496 | ||
8a9e9475 SP |
497 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
498 | ||
499 | Revert patch from 2009-09-14. | |
500 | * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite | |
501 | passes at -O1 and below. | |
502 | ||
4bf4e169 SP |
503 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
504 | ||
505 | PR middle-end/40281 | |
506 | * testsuite/gcc.dg/graphite/pr40281.c: New. | |
507 | ||
508 | * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride | |
509 | evolutions should not variate in inner loops. | |
510 | ||
12aec731 SP |
511 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
512 | ||
513 | PR middle-end/42050 | |
514 | * testsuite/gfortran.dg/graphite/pr42050.f90: New. | |
515 | ||
aec12420 SP |
516 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
517 | ||
518 | * graphite-interchange.c (memory_strides_in_loop_depth): New. | |
519 | (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth. | |
520 | ||
25e20d33 SP |
521 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
522 | ||
523 | * graphite-blocking.c (scop_do_block): New. | |
524 | * graphite-poly.c (apply_poly_transforms): Call scop_do_block. | |
525 | * graphite-poly.h (scop_do_block): Declared. | |
526 | ||
e3bde9f4 SP |
527 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
528 | ||
529 | * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter | |
530 | depth is the loop nesting depth in the LST. Call psct_dynamic_dim | |
531 | to transform depth into the time_depth before calling | |
532 | pbb_number_of_iterations_at_time. | |
533 | (lst_do_strip_mine): Use a scalar variable instead of recomputing | |
534 | lst_depth. | |
535 | ||
27e432be SP |
536 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
537 | ||
538 | Reverted the patch for "scattering permutations" from 2009-10-28. | |
539 | ||
540 | * graphite-poly.c (print_permutation): New. | |
541 | (debug_permutation): New. | |
542 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
543 | (free_poly_bb): Free PBB_PERMUTATION. | |
544 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
545 | (struct pbb_permutation_elt): New. | |
546 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
547 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
548 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
549 | (new_pbb_permutation_elt): New. | |
550 | (pbb_permutation_elt_free): New. | |
551 | (struct poly_bb): Add field permutation. | |
552 | (PBB_PERMUTATION): New. | |
553 | (print_permutation): Declared. | |
554 | (debug_permutation): Declared. | |
555 | ||
2bc529bf KT |
556 | 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> |
557 | ||
558 | * graphite-interchange.c (build_partial_difference): New. | |
559 | (memory_stride_in_loop): Refactored the computation of | |
560 | equality constraints into build_partial_difference function. | |
561 | Added support for debugging stride computations. | |
562 | ||
8c54631d SP |
563 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
564 | ||
565 | * graphite-clast-to-gimple.c (gloog): Free if_region, | |
566 | if_region->true_region, and if_region->region. | |
567 | * sese.c (if_region_set_false_region): Free if_region->false_region. | |
568 | (create_if_region_on_edge): Do not use GGC_NEW. | |
569 | (move_sese_in_condition): Remove useless initialization. | |
570 | ||
7b7f2ca7 SP |
571 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
572 | ||
573 | * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters | |
574 | for the loops created by the loop distribution. Do not modify the | |
575 | input LSTs. | |
576 | (lst_try_interchange_loops): Same. Use a temporary LST for the | |
577 | transformed schedule. Call lst_update_scattering before data | |
578 | dependence analysis. | |
579 | (lst_try_interchange): Pass an extra parameter INDEX. | |
580 | (lst_do_interchange_1): New. | |
581 | (lst_do_interchange): Call lst_do_interchange_1. | |
582 | (scop_do_interchange): Call lst_update_scattering. | |
583 | * graphite-poly.c (apply_poly_transforms): Do not call | |
584 | lst_update_scattering. | |
585 | * graphite-poly.h (lst_pred): New. | |
586 | (lst_succ): New. | |
587 | (lst_find_first_pbb): Return NULL when not found. | |
588 | (lst_empty_p): New. | |
589 | (lst_insert_in_sequence): Allow LST1 to be NULL. | |
590 | (lst_replace): New. | |
591 | (lst_substitute_3): New. | |
592 | * gcc.dg/graphite/interchange-1.c: XFail. | |
593 | * gcc.dg/graphite/interchange-8.c: XFail. | |
594 | * gcc.dg/graphite/interchange-11.c: XFail. | |
595 | ||
6119e7d5 SP |
596 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
597 | ||
598 | * graphite-interchange.c (lst_perfectly_nested_p): New. | |
599 | (lst_perfect_nestify): New. | |
600 | (lst_try_interchange_loops): Call store_lst_schedule, | |
601 | lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule. | |
602 | (scop_do_interchange): Avoid redundant legality test. | |
603 | Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE. | |
604 | * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering. | |
605 | * graphite-poly.h (psct_static_dim): New. | |
606 | (lst_dewey_number_at_depth): New. | |
607 | (lst_find_pbb): Restructured. | |
608 | (lst_find_first_pbb): Restructured. | |
609 | (lst_find_last_pbb): New. | |
610 | (lst_contains_p): New. | |
611 | (lst_contains_pbb): New. | |
612 | (lst_create_nest): New. | |
613 | (lst_remove_from_sequence): New. | |
614 | (pbb_update_scattering): New. | |
615 | (lst_update_scattering_under): New. | |
616 | (lst_update_scattering_seq): New. | |
617 | (lst_update_scattering): New. | |
618 | (lst_insert_in_sequence): New. | |
619 | (lst_distribute_lst): New. | |
620 | (lst_remove_all_before_including_pbb): New. | |
621 | (lst_remove_all_before_excluding_pbb): New. | |
622 | ||
431f3f22 SP |
623 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
624 | ||
625 | * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice | |
626 | get_loop_exit_edges. | |
627 | ||
4c768046 SP |
628 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
629 | ||
630 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed. | |
631 | ||
5fa8514e SP |
632 | 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
633 | ||
634 | * graphite-poly.c (print_permutation): New. | |
635 | (debug_permutation): New. | |
636 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
637 | (free_poly_bb): Free PBB_PERMUTATION. | |
638 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
639 | (struct pbb_permutation_elt): New. | |
640 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
641 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
642 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
643 | (new_pbb_permutation_elt): New. | |
644 | (pbb_permutation_elt_free): New. | |
645 | (struct poly_bb): Add field permutation. | |
646 | (PBB_PERMUTATION): New. | |
647 | (print_permutation): Declared. | |
648 | (debug_permutation): Declared. | |
649 | ||
6c6f84d7 SP |
650 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
651 | ||
652 | * graphite-clast-to-gimple.c (gloog): Do not call | |
653 | sese_reset_aux_in_loops. | |
654 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an | |
655 | extra argument for domains. Do not use loop->aux. | |
656 | (build_scop_iteration_domain): Initialize and free domains, pass it | |
657 | to build_loop_iteration_domains and extract the information from | |
658 | domains. Do not use loop->aux. | |
659 | * sese.c (sese_reset_aux_in_loops): Removed. | |
660 | * sese.h (sese_reset_aux_in_loops): Removed. | |
661 | ||
585b3e19 SP |
662 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
663 | ||
664 | * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. | |
665 | (dependency_in_loop_p): Same. | |
666 | (translate_clast): Do not use loop->aux. Initialize | |
667 | loop->can_be_parallel. | |
668 | (mark_loops_parallel): Removed. | |
669 | * graphite-clast-to-gimple.h (mark_loops_parallel): Removed. | |
670 | * graphite.c (free_aux_in_new_loops): Removed. | |
671 | (graphite_finalize): Do not call free_aux_in_new_loops. | |
672 | (graphite_transform_loops): Do not call mark_loops_parallel. | |
673 | ||
674 | 2009-10-26 Li Feng <nemokingdom@gmail.com> | |
a7ed27ac LF |
675 | |
676 | * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed. | |
677 | (translate_clast): Pass an extra parameter LEVEL. | |
678 | Call get_scattering_level. | |
679 | * graphite-clast-to-gimple.h (get_scattering_level): New. | |
680 | ||
8e6ef139 SP |
681 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
682 | ||
683 | * cfgloop.c (alloc_loop): Initialize loop->single_iv. | |
684 | * cfgloop.h (struct loop): New field single_iv. | |
685 | ||
686 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use | |
687 | loop->aux anymore: use loop->single_iv. | |
688 | (graphite_loop_normal_form): Moved... | |
689 | (build_graphite_loop_normal_form): Removed. | |
690 | (gloog): Do not call build_graphite_loop_normal_form. | |
691 | (free_aux_in_new_loops): Moved... | |
692 | (mark_loops_parallel): Restructure. | |
693 | * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare. | |
694 | * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here. | |
695 | (scop_canonicalize_loops): New. | |
696 | (build_poly_scop): Call scop_canonicalize_loops. | |
697 | * graphite.c (free_aux_in_new_loops): ...here. | |
698 | ||
e6dd91b2 SP |
699 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
700 | ||
701 | * g++.dg/graphite/graphite.exp: Add the same rules as in | |
702 | gcc.dg/graphite/graphite.exp. | |
703 | ||
47fb473f SP |
704 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
705 | ||
706 | * g++.dg/graphite/id-1.C: New. | |
707 | ||
63858ac6 SP |
708 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
709 | ||
710 | * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra | |
711 | argument base_name. | |
712 | (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array. | |
713 | (rewrite_phi_out_of_ssa): Same. | |
714 | (rewrite_cross_bb_scalar_deps): Same. | |
715 | (translate_scalar_reduction_to_array): Same. | |
716 | ||
decfe536 SP |
717 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
718 | ||
719 | * graphite-sese-to-poly.c (build_scop_drs): Disable call to | |
720 | dump_alias_graphs. | |
721 | ||
0d5ef2a9 SP |
722 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
723 | ||
724 | * graphite-sese-to-poly.c (dump_alias_graphs): New. | |
725 | (build_scop_drs): Call dump_alias_graphs. | |
726 | ||
f70de156 SP |
727 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
728 | ||
729 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE, | |
730 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
731 | (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE, | |
732 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
733 | * graphite-poly.h (free_lst): New. | |
734 | (store_lst_schedule): Free SCOP_SAVED_SCHEDULE. | |
735 | (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE. | |
736 | ||
74715a9b SP |
737 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
738 | ||
739 | * graphite-poly.h (struct scop): Add a field saved_schedule. | |
740 | (SCOP_SAVED_SCHEDULE): New. | |
741 | (store_lst_schedule): New. | |
742 | (restore_lst_schedule): New. | |
743 | (store_scattering): Call store_lst_schedule. | |
744 | (restore_scattering): Call restore_lst_schedule. | |
745 | ||
fb00d28e SP |
746 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
747 | ||
748 | * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting. | |
749 | (pdr_add_alias_set): Same. | |
750 | (build_poly_dr): Same. | |
751 | (build_alias_set_optimal_p): Same. | |
752 | (build_base_obj_set_for_drs): Same. Do not store the result of | |
753 | graphds_dfs. | |
754 | ||
917f481a SP |
755 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
756 | ||
757 | * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize | |
758 | all_components_are_cliques to 1. | |
759 | ||
2b178a5f LF |
760 | 2009-10-20 Li Feng <nemokingdom@gmail.com> |
761 | ||
762 | * graphite-sese-to-poly.c (free_data_refs_aux): Update to free | |
763 | the new structure. | |
764 | (pdr_add_alias_set): Update retrieving alias_set_num. | |
765 | (build_poly_dr): Update retrieving dr_base_object_set. | |
766 | (partition_drs_to_sets): Remove. | |
767 | (build_alias_set_optimal_p): New. | |
768 | (build_alias_set_for_drs): Rename. | |
769 | (build_scop_drs): Update. | |
770 | * graphite-sese-to-poly.h (struct base_alias_pair): New. | |
771 | (ALIAS_SET_INDEX): Remove. | |
772 | (BASE_OBJECT_SET_INDEX): Remove. | |
773 | ||
e8af4842 SP |
774 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
775 | ||
776 | * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL. | |
777 | ||
3899a0b2 SP |
778 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
779 | ||
780 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer | |
781 | loop upper bounds for 1-element arrays at end of structures. | |
782 | * tree-flow.h (array_at_struct_end_p): Declared. | |
783 | * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore. | |
784 | ||
e34e5835 SP |
785 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
786 | ||
787 | * g++.dg/graphite/pr41305.C: New. | |
788 | ||
07b0d0e2 AM |
789 | 2009-10-20 Alexander Monakov <amonakov@ispras.ru> |
790 | ||
791 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize | |
792 | construction of parameter constraints from loop iteration analysis. | |
793 | * gcc.dg/graphite/run-id-2.c: New test. | |
794 | ||
67255edf SP |
795 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
796 | ||
797 | * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma | |
798 | and new_cstr. | |
799 | ||
14ba996b SP |
800 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
801 | ||
802 | * graphite-dependences.c (dependence_polyhedron_1): Remove | |
803 | unused gdim dimensions from the DDR polyhedron. | |
804 | ||
4454141a SP |
805 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
806 | ||
807 | * graphite-dependences.c (pddr_transformed_scattering): New. | |
808 | (dot_original_deps_stmt_1): New. | |
809 | (dot_transformed_deps_stmt_1): New. | |
810 | (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and | |
811 | dot_transformed_deps_stmt_1. | |
812 | (dot_original_deps): New. | |
813 | (dot_transformed_deps): New. | |
814 | (dot_deps_1): Call dot_original_deps and dot_transformed_deps. | |
815 | ||
dd61070d SP |
816 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
817 | ||
818 | * graphite-dependences.c (reduction_dr_1): Remove wrong | |
819 | assert: reduction BBs can have multiple reduction writes | |
4454141a | 820 | to memory. interchange-3.f90 is an example. |
dd61070d | 821 | |
65421bcc SP |
822 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
823 | ||
824 | * gfortran.dg/graphite/interchange-3.f90: New. | |
825 | ||
3e9f43ee SP |
826 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
827 | ||
828 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
829 | ||
16bf8ab1 SP |
830 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
831 | ||
832 | * graphite-dependences.c (dependence_polyhedron_1): Add the | |
833 | context to the dependence polyhedron. | |
834 | ||
d422adfa SP |
835 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
836 | ||
837 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize | |
838 | PBB_PDR_DUPLICATES_REMOVED. | |
839 | (new_poly_bb): Same. | |
840 | ||
62e475c5 SP |
841 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
842 | ||
843 | * graphite-sese-to-poly.c (find_scop_parameters): Initialize | |
844 | SCOP_CONTEXT. | |
845 | (build_loop_iteration_domains): Extract bounds on parameters | |
846 | based on the data size. | |
847 | (build_scop_context): Do not initialize SCOP_CONTEXT; | |
848 | add new constraints. | |
849 | ||
3ecbce7e SP |
850 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
851 | ||
852 | * graphite-ppl.c (ppl_min_for_le_polyhedron): New. | |
853 | * graphite-ppl.h (graphite-ppl.h): Declared. | |
854 | ||
04863400 SP |
855 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
856 | ||
857 | * graphite-ppl.c (ppl_print_linear_expr): New. | |
858 | (debug_ppl_linear_expr): New. | |
859 | * graphite-ppl.h (ppl_print_linear_expr): Declared. | |
860 | (debug_ppl_linear_expr): Declared. | |
861 | ||
009150e1 SP |
862 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
863 | ||
864 | * graphite-interchange.c: Fix comments. | |
865 | * gcc.dg/graphite/block-1.c: Fix comments. | |
866 | ||
9b196c93 SP |
867 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
868 | ||
869 | * gcc.dg/graphite/interchange-7.c: Un-XFAILed. | |
870 | * gcc.dg/graphite/interchange-9.c: Un-XFAILed. | |
871 | ||
caa675f8 SP |
872 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
873 | ||
874 | Reapply the patch from Alexander Monakov that disappeared during | |
875 | the last merges from trunk. | |
876 | ||
877 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> | |
878 | ||
879 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
880 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
881 | ||
92d92abb SP |
882 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
883 | ||
884 | * graphite-interchange.c (memory_stride_in_loop): The depth | |
885 | argument corresponds to a dynamic time dimension, so use | |
886 | psct_dynamic_dim to refer to the transformed scattering dimension. | |
887 | ||
23159c56 SP |
888 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
889 | ||
890 | * graphite-interchange.c (memory_stride_in_loop): Fix comments. | |
891 | ||
5c6c42c9 SP |
892 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
893 | ||
894 | * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the | |
895 | root of the LST. | |
896 | * graphite-interchange.c (lst_do_interchange): Avoid interchanging | |
897 | the root of the LST. | |
898 | * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost | |
899 | fake loop. | |
900 | (print_lst): Print the root of LST in a different format. | |
901 | * graphite-poly.h (lst_depth): Adjust to include the root of the LST. | |
902 | ||
f58be90e SP |
903 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
904 | ||
905 | * graphite-poly.c (print_scop): Fix pretty printing of a SCoP. | |
906 | ||
4e4ee197 SP |
907 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
908 | ||
909 | * doc/passes.texi: Document the Graphite infrastructure. | |
910 | ||
6c4499b6 SP |
911 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
912 | ||
913 | * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge. | |
914 | (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts, | |
915 | and check the SSA representation. | |
916 | ||
917 | * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193. | |
918 | ||
8e49fe91 SP |
919 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
920 | ||
921 | * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR. | |
922 | ||
bb2b2dfc SP |
923 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
924 | ||
925 | * gcc.dg/graphite/interchange-11.c: New. | |
926 | ||
e7ed4a64 SP |
927 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
928 | ||
929 | * gcc.dg/graphite/interchange-8.c: Enable loop interchange. | |
930 | ||
d7f25aa6 SP |
931 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
932 | ||
933 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
934 | Add -fno-loop-strip-mine and -fno-loop-interchange. | |
935 | (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and | |
936 | -fno-loop-strip-mine. | |
937 | * gfortran.dg/graphite/graphite.exp: Same. | |
938 | ||
6231cf49 SP |
939 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
940 | ||
941 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
942 | Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK. | |
943 | (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed | |
944 | DEFAULT_FLAGS_GRAPHITE_IDENTITY. | |
945 | (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed | |
946 | DEFAULT_FLAGS_GRAPHITE_INTERCHANGE. | |
947 | (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed | |
948 | DEFAULT_FLAGS_GRAPHITE_SCOP. | |
949 | (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID. | |
950 | (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE. | |
951 | ||
2b7c09a8 SP |
952 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
953 | ||
954 | * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments. | |
955 | ||
b0c7a278 KT |
956 | 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
957 | Sebastian Pop <sebastian.pop@amd.com> | |
958 | ||
959 | * graphite-interchange.c (build_linearized_memory_access): Pass an | |
960 | offset as parameter. | |
961 | (memory_stride_in_loop): Include transform scattering in the | |
962 | access functions to be able to querry the strides in the | |
963 | transformed loops. | |
964 | (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim, | |
965 | not the psct_iterator_dim. | |
966 | ||
13ae6f91 SP |
967 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
968 | ||
969 | * graphite-blocking.c (pbb_do_strip_mine): Removed. | |
970 | (lst_do_strip_mine_loop): New. | |
971 | (lst_do_strip_mine): New. | |
972 | (scop_do_strip_mine): Call lst_do_strip_mine. | |
973 | * graphite-poly.h (lst_add_loop_under_loop): New. | |
974 | (lst_find_first_pbb): New. | |
975 | ||
c0fe753b SP |
976 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
977 | ||
978 | * graphite-poly.c (loop_to_lst): Fix LST creation. | |
979 | ||
8d75ec87 TG |
980 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> |
981 | ||
982 | * testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with | |
983 | sizeof(unsigned long) to make it run on 32bit systems. | |
984 | ||
985 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
986 | ||
987 | * testsuite/gcc.dg/graphite/run-id-1.c: Use smaller matrix to not | |
988 | SEGFAULT on 32bit. | |
989 | ||
2e5a7cbf RU |
990 | 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
991 | ||
8d75ec87 TG |
992 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix |
993 | Comment. | |
2e5a7cbf RU |
994 | (write_alias_graph_to_ascii_dot): New. |
995 | (write_alias_graph_to_ascii_ecc): Ditto. | |
8d75ec87 TG |
996 | (partition_drs_to_sets): Add testing of optimality of current method |
997 | which assigns alias numbers according to DFS Comopnent number. used | |
998 | as heuristic for the upcoming ECC algorithm. | |
2e5a7cbf RU |
999 | (build_scop_drs): Write to file also with the ecc and dot format. |
1000 | ||
1e82de2a SP |
1001 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
1002 | ||
1003 | * gfortran.dg/graphite/interchange-1.f: XFail. | |
1004 | ||
9bf13085 SP |
1005 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
1006 | ||
1007 | * graphite.c (graphite_initialize): Do not handle functions with | |
1008 | more than 100 basic blocks. | |
1009 | ||
e797c5f2 SP |
1010 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
1011 | ||
1012 | * graphite-blocking.c (pbb_do_strip_mine): Use | |
1013 | PARAM_LOOP_BLOCK_TILE_SIZE. | |
1014 | ||
bfa00f48 SP |
1015 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
1016 | ||
1017 | * graphite-poly.c (dot_lst_1): New. | |
1018 | (dot_lst): New. | |
1019 | * graphite-poly.h (dot_lst): Declared. | |
1020 | ||
3c7bdeb8 SP |
1021 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
1022 | ||
1023 | * graphite-dependences.c (dot_deps_stmt_1): New. | |
1024 | (dot_deps_stmt): New. | |
1025 | * graphite-dependences.h (dot_deps_stmt): Declared. | |
1026 | ||
c7dc2fab SP |
1027 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
1028 | ||
1029 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do | |
1030 | not replace cross BB scalar dependences ending on PHI nodes. | |
1031 | (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes. | |
1032 | ||
24c79709 SP |
1033 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
1034 | ||
1035 | * graphite-poly.c (apply_poly_transforms): Implement the high | |
1036 | level driver for flag_loop_block. | |
1037 | * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for | |
1038 | flag_loop_block. | |
1039 | ||
1040 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add | |
1041 | -floop-block. | |
1042 | * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
1043 | Add -floop-block. | |
1044 | ||
a0517b76 SP |
1045 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
1046 | ||
1047 | * graphite-poly.h (lst_find_pbb): New. | |
1048 | (find_lst_loop): New. | |
1049 | ||
9d077835 SP |
1050 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
1051 | ||
1052 | * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH. | |
1053 | * graphite-poly.h (struct scop): Remove dep_graph field. | |
1054 | (SCOP_DEP_GRAPH): Removed. | |
1055 | ||
75b63a91 SP |
1056 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
1057 | ||
1058 | * graphite-poly.h (copy_lst): Do full copy of LST. | |
1059 | ||
7cc4ff8d SP |
1060 | 2009-10-07 Sebastian Pop <sebastian.pop@amd.com> |
1061 | ||
1062 | * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi | |
1063 | when the loop stride is zero. | |
1064 | ||
1065 | * gcc.dg/graphite/id-16.c: New. | |
1066 | ||
60d2a8c3 SP |
1067 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
1068 | ||
1069 | * graphite-dependences.c (reduction_dr_1): New. | |
1070 | (reduction_dr_p): New. | |
1071 | (graphite_legal_transform_dr): Call reduction_dr_p. | |
1072 | (reduction_ddr): Renamed reduction_ddr_p. | |
1073 | * graphite-poly.h (same_pdr_p): New. | |
1074 | (number_of_write_pdrs): New. | |
1075 | * graphite-sese-to-poly.c (nb_data_writes_in_bb): New. | |
1076 | (split_reduction_stmt): Do not split reduction statements | |
1077 | when there are no writes to memory. | |
1078 | (translate_scalar_reduction_to_array_for_stmt): Insert the | |
1079 | memory reduction statement just after the scalar reduction statement. | |
1080 | ||
1081 | * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c. | |
1082 | Un-XFAIL-ed. | |
1083 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed. | |
1084 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed. | |
1085 | ||
95baeff8 SP |
1086 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
1087 | ||
1088 | * graphite-interchange.c (lst_apply_interchange): New. | |
1089 | (lst_interchange_profitable_p): New. | |
1090 | (lst_try_interchange_loops): New. | |
1091 | (lst_try_interchange): New. | |
1092 | (lst_do_interchange): New. | |
1093 | (pbb_do_interchange): Removed. | |
1094 | (scop_do_interchange): Call lst_do_interchange. | |
1095 | ||
a36d12e2 SP |
1096 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
1097 | ||
1098 | * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and | |
1099 | SCOP_TRANSFORMED_SCHEDULE. | |
1100 | (loop_to_lst): New. | |
1101 | (scop_to_lst): New. | |
1102 | (print_lst): New. | |
1103 | (debug_lst): New. | |
1104 | * graphite-poly.h (lst_p): New. | |
1105 | (struct lst): New. | |
1106 | (LST_LOOP_P): New. | |
1107 | (LST_LOOP_FATHER): New. | |
1108 | (LST_PBB): New. | |
1109 | (LST_SEQ): New. | |
1110 | (scop_to_lst): Declared. | |
1111 | (print_lst): Declared. | |
1112 | (debug_lst): Declared. | |
1113 | (new_lst_loop): New. | |
1114 | (new_lst_stmt): New. | |
1115 | (copy_lst): New. | |
1116 | (lst_depth): New. | |
1117 | (lst_dewey_number): New. | |
1118 | (struct scop): Add original_schedule and transformed_schedule fields. | |
1119 | (SCOP_ORIGINAL_SCHEDULE): New. | |
1120 | (SCOP_TRANSFORMED_SCHEDULE): New. | |
1121 | * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst. | |
1122 | ||
a0dd1440 SP |
1123 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
1124 | ||
1125 | * graphite-dependences.c (reduction_ddr): New. | |
1126 | (graphite_legal_transform_bb): Call reduction_ddr. | |
1127 | * graphite-poly.c (new_poly_bb): Pass a new bool parameter. | |
1128 | Initialize PBB_IS_REDUCTION. | |
1129 | * graphite-poly.h (struct poly_bb): New bool field is_reduction. | |
1130 | (PBB_IS_REDUCTION): New. | |
1131 | (new_poly_bb): Update declaration. | |
1132 | * graphite-scop-detection.h (build_scop_bbs): Removed. | |
1133 | (nb_reductions_in_loop): Removed. | |
1134 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap | |
1135 | parameter for reductions. | |
1136 | (try_generate_gimple_bb): Update call to new_poly_bb. | |
1137 | (build_scop_bbs_1): Same. | |
1138 | (build_scop_bbs): Same. | |
1139 | (gsi_for_phi_node): New. | |
1140 | (scalar_close_phi_node_p): Remove gcc_assert. | |
1141 | (split_reduction_stmt): New. | |
1142 | (is_reduction_operation_p): New. | |
1143 | (phi_contains_arg): New. | |
1144 | (follow_ssa_with_commutative_ops): New. | |
1145 | (detect_commutative_reduction_arg): New. | |
1146 | (detect_commutative_reduction_assign): New. | |
1147 | (follow_inital_value_to_phi): New. | |
1148 | (edge_initial_value_for_loop_phi): New. | |
1149 | (initial_value_for_loop_phi): New. | |
1150 | (detect_commutative_reduction): New. | |
1151 | (translate_scalar_reduction_to_array_for_stmt): New. | |
1152 | (insert_copyout): New. | |
1153 | (insert_copyin): New. | |
1154 | (translate_scalar_reduction_to_array): New. | |
1155 | (rewrite_commutative_reductions_out_of_ssa_close_phi): New. | |
1156 | (rewrite_commutative_reductions_out_of_ssa_loop): New. | |
1157 | (rewrite_commutative_reductions_out_of_ssa): New. | |
1158 | (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa. | |
1159 | * sese.h (split_region_for_bb): New. | |
1160 | ||
1161 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math. | |
1162 | * gcc.dg/graphite/interchange-1.c: Fix format. | |
1163 | * gcc.dg/graphite/interchange-10.c: New. | |
1164 | ||
db7e9485 SP |
1165 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
1166 | ||
1167 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove | |
1168 | buggy assert. | |
1169 | ||
5dcc64d9 SP |
1170 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
1171 | ||
1172 | * graphite-sese-to-poly.c (scev_analyzable_p): New. | |
1173 | (rewrite_cross_bb_scalar_dependence): New. | |
1174 | (rewrite_cross_bb_scalar_deps): New. | |
1175 | (rewrite_reductions_out_of_ssa): Use bb_in_sese_p. | |
1176 | Call rewrite_cross_bb_scalar_deps. | |
1177 | ||
947121b8 SP |
1178 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
1179 | ||
1180 | * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed. | |
1181 | (insert_out_of_ssa_copy): Directly use gsi_after_labels and | |
1182 | gsi_for_stmt. | |
1183 | ||
d48e288d SP |
1184 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
1185 | ||
1186 | * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. | |
1187 | * graphite-interchange.c (pbb_do_interchange): Same. | |
1188 | * graphite-poly.c (print_scattering_function): Same. | |
1189 | (debug_pdrs): Same. | |
1190 | * graphite-poly.h (pbb_loop): New. | |
1191 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. | |
1192 | ||
d17286f6 SP |
1193 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
1194 | ||
1195 | * graphite-scop-detection.c (limit_scops): Do not build poly_bbs. | |
1196 | ||
ee03cd20 SP |
1197 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
1198 | ||
1199 | * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, | |
1200 | so don't pass a pointer to it. | |
1201 | (build_alias_set_for_drs): Same. | |
1202 | (build_base_obj_set_for_drs): Same. | |
1203 | (build_scop_drs): Same. | |
1204 | ||
888beba1 LF |
1205 | 2009-09-26 Li Feng <nemokingdom@gmail.com> |
1206 | ||
1207 | * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file | |
1208 | the alias graph of data references. | |
1209 | ||
cd43e5d7 LF |
1210 | 2009-09-25 Li Feng <nemokingdom@gmail.com> |
1211 | ||
1212 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. | |
1213 | (build_scop_drs): When debugging, write the alias graph to file, | |
1214 | otherwise, should be disabled. | |
1215 | ||
aeda6535 SP |
1216 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
1217 | ||
1218 | * graphite-scop-detection.c (stmt_simple_memref_p): Removed. | |
1219 | (is_simple_operand): Remove call to stmt_simple_memref_p. | |
1220 | (stmt_simple_for_scop_p): Update call to is_simple_operand. | |
1221 | ||
8b6b8570 DE |
1222 | 2009-09-17 David Edelsohn <edelsohn@gnu.org> |
1223 | ||
8971eb91 | 1224 | * testsuite/gcc.dg/graphite/interchange-mvt.c: New File. |
8b6b8570 DE |
1225 | * testsuite/gcc.dg/graphite/scop-dsyrk.c: New File. |
1226 | * testsuite/gcc.dg/graphite/scop-dsyr2k.c: New File. | |
1227 | * testsuite/gcc.dg/graphite/scop-mvt.c: New File. | |
1228 | * testsuite/gcc.dg/graphite/scop-sor.c: New File. | |
1229 | ||
1825f9a2 LF |
1230 | 2009-09-17 Li Feng <nemokingdom@gmail.com> |
1231 | ||
1232 | PR middle-end/41118 | |
1233 | * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. | |
1234 | (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. | |
1235 | (graphite_carried_dependence_level_k): Ditto. | |
1236 | * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. | |
1237 | * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. | |
1238 | (new_poly_dr): Adjust declaration. | |
1239 | * graphite-sese-to-poly.c (free_data_refs_aux): New. | |
1240 | (free_gimple_bb): Added free_data_refs_aux. | |
1241 | (build_poly_dr): Add dr_base_object_set. | |
1242 | (partition_drs_to_sets): New. | |
1243 | (dr_same_base_object_p): New. | |
1244 | (build_alias_set_for_drs): New. | |
1245 | (build_base_object_set_for_drs): New. | |
1246 | (build_scop_drs): Add build_base_obj_set_for_drs. | |
1247 | * graphite-sese-to-poly.h: Added #define for alias set number index and | |
1248 | base object set index. | |
1249 | * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. | |
1250 | * libgomp/testsuite/libgomp.graphite/pr4118.c: New. | |
1251 | ||
ac90803f SP |
1252 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> |
1253 | ||
1254 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
1255 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
1256 | ||
54fc808a SP |
1257 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
1258 | ||
1259 | * graphite-sese-to-poly.c (struct irp_data): Removed. | |
1260 | (idx_record_params): Removed. | |
1261 | (find_params_in_bb): Scan for parameters the access functions; don't | |
1262 | parse the tree representation. | |
1263 | ||
e88e021f SP |
1264 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
1265 | ||
1266 | * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite | |
1267 | passes at -O1 and below. | |
1268 | ||
3690f8d7 SP |
1269 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
1270 | ||
1271 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
1272 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
1273 | * graphite-clast-to-gimple.c: Same. | |
1274 | * graphite-dependences.c: Same. | |
1275 | * graphite-interchange.c: Same. | |
1276 | * graphite-poly.c: Same. | |
1277 | * graphite-scop-detection.c: Same. | |
1278 | * graphite-sese-to-poly.c: Same. | |
1279 | * graphite.c: Same. | |
1280 | * lambda-code.c: Same. | |
1281 | * matrix-reorg.c: Same. | |
1282 | * tree-data-ref.c: Same. | |
1283 | * tree-if-conv.c: Same. | |
1284 | * tree-loop-distribu: Same.: Same. | |
1285 | * tree-loop-linear.c: Same. | |
1286 | * tree-parloops.c: Same. | |
1287 | * tree-predcom.c: Same. | |
1288 | * tree-vect-patterns.c: Same. | |
1289 | ||
2495a183 SP |
1290 | 2009-09-02 Sebastian Pop <sebastian.pop@amd.com> |
1291 | ||
1292 | Partially revert the previous patch, except the following. | |
1293 | * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass | |
1294 | as parameters the operands of the not expression. | |
1295 | ||
20179b0d SP |
1296 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1297 | ||
1298 | * tree-scalar-evolution.c (instantiate_scev_assign): New. | |
1299 | Do not call analyze_scalar_evolution on assignments. | |
1300 | (instantiate_scev_phi): Call analyze_scalar_evolution. | |
1301 | (instantiate_scev_name): Call instantiate_scev_assign and | |
1302 | instantiate_scev_phi. | |
1303 | (instantiate_scev_not): Adapted to pass as parameters the operands | |
1304 | of the not expression. | |
1305 | ||
ffa34f4b SP |
1306 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1307 | ||
1308 | * tree-scalar-evolution.c (instantiate_scev_binary): Adapted | |
1309 | to pass as parameters the operands of the binary expression. | |
1310 | ||
4b9d48a1 SP |
1311 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1312 | ||
1313 | * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed | |
1314 | instantiate_scev_not. Handle NEGATE_EXPR. | |
1315 | (instantiate_scev_r): Handle NEGATE_EXPR. | |
1316 | ||
9e5dc77f SP |
1317 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1318 | ||
1319 | * tree-scalar-evolution.c (instantiate_scev_1): Renamed | |
1320 | instantiate_scev_r. | |
1321 | (instantiate_scev_r): Move code in instantiate_scev_2 | |
1322 | and instantiate_scev_1. | |
1323 | ||
d814176c SP |
1324 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1325 | ||
1326 | * tree-scalar-evolution.c (instantiate_scev_3): New. | |
1327 | (instantiate_scev_1): Move code in instantiate_scev_3. | |
1328 | ||
ec6636eb SP |
1329 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1330 | ||
1331 | * tree-scalar-evolution.c (instantiate_scev_poly): New. | |
1332 | (instantiate_scev_1): Move code in instantiate_scev_poly. | |
1333 | ||
7ec0665d SP |
1334 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1335 | ||
1336 | * tree-scalar-evolution.c (instantiate_scev_bitnot): New. | |
1337 | (instantiate_scev_1): Move code in instantiate_scev_bitnot. | |
1338 | ||
9c382ce9 SP |
1339 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1340 | ||
1341 | * tree-scalar-evolution.c (instantiate_scev_convert): New. | |
1342 | (instantiate_scev_1): Move code in instantiate_scev_convert. | |
1343 | ||
15fda317 SP |
1344 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1345 | ||
1346 | * tree-scalar-evolution.c (instantiate_scev_binary): New. | |
1347 | (instantiate_scev_1): Move code in instantiate_scev_binary. | |
1348 | ||
320f5a78 SP |
1349 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
1350 | ||
1351 | * tree-scalar-evolution.c (instantiate_scev_name): New. | |
1352 | (instantiate_scev_1): Move code in instantiate_scev_name. | |
1353 | ||
1354 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> | |
1355 | ||
1356 | * Merge from mainline (150992:151171). | |
1357 | ||
211694b6 SP |
1358 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1359 | ||
1360 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
1361 | pbb_remove_duplicate_pdrs. | |
1362 | * graphite-poly.c (can_collapse_pdr): Removed. | |
1363 | (pdr_find_duplicate): Removed. | |
1364 | (can_collapse_pdrs): New. | |
1365 | (pbb_remove_duplicate_pdrs): New. | |
1366 | (new_poly_dr): Do not look for duplicates. | |
1367 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
1368 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
1369 | (pbb_remove_duplicate_pdrs): Declared. | |
1370 | ||
7bd2a8a7 SP |
1371 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1372 | ||
1373 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
1374 | the strides by multiplying by PDR_NB_REFS. | |
1375 | * graphite-poly.c (can_collapse_pdr): New. | |
1376 | (pdr_find_duplicate): New. | |
1377 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
1378 | Initialize PDR_NB_REFS. | |
1379 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
1380 | (PDR_NB_REFS): New. | |
1381 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
1382 | ||
1383 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
1384 | ||
1385 | Revert one of the previous commits: | |
1386 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
1387 | the computation of symmetric data dependence relations. | |
1388 | (dependency_between_pbbs_p): Same. | |
1389 | ||
93b2db87 SP |
1390 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1391 | ||
1392 | PR middle-end/40965 | |
1393 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
1394 | any transform. | |
1395 | ||
d8eeb078 SP |
1396 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1397 | ||
1398 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
1399 | for read-read dependence relations. | |
1400 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
1401 | (pdr_read_p): New. | |
1402 | (pdr_write_p): New. | |
1403 | (pdr_may_write_p): New. | |
1404 | ||
e6dec0fb SP |
1405 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1406 | ||
1407 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
1408 | (struct poly_dr): Same. | |
1409 | (new_poly_dr): Same. | |
1410 | * graphite-poly.c (new_poly_dr): Same. | |
1411 | ||
baf4b881 KT |
1412 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
1413 | Sebastian Pop <sebastian.pop@amd.com> | |
1414 | ||
1415 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
1416 | pbb_strip_mine_time_depth. Changed the implementation so that | |
1417 | transformation is expressed as a transformation on | |
1418 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
1419 | scheduling format is preserved. | |
1420 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
1421 | iteration number of a given time (scattering) dimension, | |
1422 | and not on a original loop depth dimension. | |
1423 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
1424 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
1425 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
1426 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
1427 | (pbb_nb_dynamic_scattering_transform): New. | |
1428 | (psct_dynamic_dim): New. | |
1429 | ||
059a5f9f KT |
1430 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
1431 | ||
1432 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
1433 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
1434 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
1435 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
1436 | (memory_stride_in_loop): Same. | |
1437 | ||
afae0207 SP |
1438 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
1439 | ||
1440 | * graphite-dependences.c (pddr_original_scattering): New. | |
1441 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
1442 | (dot_deps_1): New. | |
1443 | (dot_deps): New. | |
1444 | * graphite-dependences.h (dot_deps): Declared. | |
1445 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
1446 | (print_pdr): Print PDR_ID. | |
1447 | * graphite-poly.h (struct poly_dr): Add field id. | |
1448 | (PDR_ID): New. | |
1449 | (pbb_index): New. | |
1450 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
1451 | ||
f8e0bb8b SP |
1452 | 2009-08-22 Sebastian Pop <sebastian.pop@amd.com> |
1453 | ||
1454 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
1455 | not delete the original dependence relation. | |
1456 | ||
1457 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
1458 | ||
1459 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
1460 | the computation of symmetric data dependence relations. | |
1461 | (dependency_between_pbbs_p): Same. | |
1462 | ||
e37f165f SP |
1463 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> |
1464 | ||
1465 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
1466 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
1467 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
1468 | (free_poly_ddr): New. | |
1469 | (pddr_is_empty): New. | |
1470 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
1471 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
1472 | Remove fprintfs. | |
1473 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
1474 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
1475 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
1476 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
1477 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
1478 | (PDRP_SINK): Renamed PDDR_SINK. | |
1479 | (PDRP_DDP): Renamed PDDR_DDP. | |
1480 | (PDDR_KIND): New. | |
1481 | (free_poly_ddr): Declared. | |
1482 | * graphite-poly.c (new_scop): Use the new hash function names. | |
1483 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
1484 | into original_pddrs. | |
1485 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
1486 | ||
1487 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
1488 | ||
1489 | * Merge from mainline (150764:150992). | |
1490 | ||
45e76e9f SP |
1491 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
1492 | ||
1493 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
1494 | bounds with LT_EXPR to make niter analysis more precise on code | |
1495 | generated by Graphite. | |
1496 | ||
66b466c3 SP |
1497 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
1498 | ||
1499 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
1500 | (graphite_legal_transform_bb): Same. | |
1501 | (poly_drs_may_alias_p): Same. | |
1502 | ||
f263917c SP |
1503 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
1504 | ||
1505 | PR middle-end/40981 | |
1506 | * graphite-ppl.c (ppl_max_for_le): Correct the use of | |
1507 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
1508 | ||
1509 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
1510 | ||
1511 | * graphite-poly.c (print_pbb): Print PBB index. | |
1512 | ||
1513 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
1514 | ||
1515 | * Merge from mainline (r150672:150764). | |
1516 | ||
1517 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
1518 | ||
1519 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
1520 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
1521 | * graphite-ppl.c (ppl_max_for_le): ... here. | |
1522 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
1523 | ||
1524 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> | |
1525 | ||
1526 | * Merge from mainline (r150372:150672). | |
1527 | ||
30de1632 SP |
1528 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1529 | ||
1530 | PR middle-end/40980 | |
1531 | * sese.c (convert_for_phi_arg): New. | |
1532 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
1533 | ||
1534 | * testsuite/gfortran.dg/graphite/id-17.f: New. | |
1535 | ||
8c31ebfa SP |
1536 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1537 | ||
1538 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
1539 | unknown subscript upper bounds. | |
1540 | ||
1541 | * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL. | |
1542 | ||
fb9fb290 SP |
1543 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1544 | Pranav Garg <pranav.garg2107@gmail.com> | |
1545 | ||
1546 | * graphite-interchange.c (gather_access_strides): Removed. | |
1547 | (ppl_max_for_le): New. | |
1548 | (build_linearized_memory_access): New. | |
1549 | (memory_stride_in_loop): New. | |
1550 | (pbb_interchange_profitable_p): Reimplemented. | |
1551 | * graphite-ppl.h (ppl_new_id_map): New. | |
1552 | (ppl_interchange): New. | |
1553 | ||
1554 | * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed. | |
1555 | ||
312aea7f SP |
1556 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1557 | ||
1558 | * graphite-interchange.c (compute_subscript): Removed. | |
1559 | (compute_array_size_cstr): Removed. | |
1560 | (compute_array_size_poly): Removed. | |
1561 | (compute_array_size): Removed. | |
1562 | (gather_access_strides_poly): Removed. | |
1563 | (gather_access_strides): Empty. | |
1564 | ||
25d7cc15 SP |
1565 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1566 | ||
1567 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
1568 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
1569 | (graphite_legal_transform_dr): Same. | |
1570 | (graphite_carried_dependence_level_k): Same. | |
1571 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
1572 | Initialize PDR_NB_SUBSCRIPTS. | |
1573 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
1574 | PDR_NB_SUBSCRIPTS. | |
1575 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
1576 | (PDR_NB_SUBSCRIPTS): New. | |
1577 | (pdr_nb_subscripts): Removed. | |
1578 | (pdr_dim): Simplified. | |
1579 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
1580 | with PDR_NB_SUBSCRIPTS. | |
1581 | ||
66096911 SP |
1582 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1583 | ||
1584 | * graphite-interchange.c (compute_array_size): Remove use of | |
1585 | PDR_DATA_CONTAINER. | |
1586 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
1587 | Do not initialize PDR_DATA_CONTAINER. | |
1588 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
1589 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
1590 | (PDR_DATA_CONTAINER): Removed. | |
1591 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
1592 | PDR_DATA_CONTAINER. | |
1593 | (build_poly_dr): Same. | |
1594 | ||
273c5dd3 SP |
1595 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
1596 | ||
1597 | * testsuite/gcc.dg/graphite/interchange-9.c: New. | |
1598 | ||
7491e5f0 KT |
1599 | 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
1600 | Sebastian Pop <sebastian.pop@amd.com> | |
1601 | ||
1602 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
1603 | copy of the dependence polyhedron. Free the temporary objects. | |
1604 | (graphite_carried_dependence_level_k): Free unused objects before | |
1605 | returning. | |
1606 | ||
1607 | * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed. | |
1608 | * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed. | |
1609 | * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed. | |
1610 | * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed. | |
1611 | * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed. | |
1612 | ||
f4648ed1 SP |
1613 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
1614 | ||
1615 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
1616 | Early return without analyzing the data dependences if no | |
1617 | transform has been done. Call restore_scattering if the transform | |
1618 | is not legal. | |
1619 | (graphite-interchange.c): Same. | |
1620 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
1621 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
1622 | (apply_poly_transforms): Do not gcc_assert that | |
1623 | the transform is legal. | |
1624 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
1625 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
1626 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
1627 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
1628 | * graphite-poly.h (struct poly_scattering): New. | |
1629 | (struct poly_bb): Add original, transformed, and saved fields. | |
1630 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
1631 | and nb_scattering_transform fields. | |
1632 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
1633 | (poly_scattering_new): New. | |
1634 | (poly_scattering_free): New. | |
1635 | (poly_scattering_copy): New. | |
1636 | (store_scattering_pbb): New. | |
1637 | (store_scattering): New. | |
1638 | (restore_scattering_pbb): New. | |
1639 | (restore_scattering): New. | |
1640 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
1641 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
273c5dd3 | 1642 | |
e31a5bd4 SP |
1643 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
1644 | ||
1645 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
1646 | (print_scop): Same. | |
1647 | ||
8e88f9fd SP |
1648 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
1649 | ||
1650 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
1651 | * graphite.c: Include predict.h. | |
1652 | (graphite_finalize): Call tree_estimate_probability. | |
1653 | * predict.c (predict_loops): Do not call scev_initialize and | |
1654 | scev_finalize. | |
1655 | (tree_estimate_probability_bb): New. | |
1656 | (tree_estimate_probability): Do not initialize loops: move that | |
1657 | code to the driver. Call tree_estimate_probability_bb. | |
1658 | (tree_estimate_probability_driver): New. | |
1659 | (pass_profile): Use tree_estimate_probability_driver. | |
1660 | * predict.h (tree_estimate_probability): Declared. | |
1661 | ||
87d4d0ee SP |
1662 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
1663 | ||
1664 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
1665 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
1666 | TV_GRAPHITE_DATA_DEPS. | |
1667 | (dependency_between_pbbs_p): Same. | |
1668 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
1669 | ||
1670 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
1671 | ||
1672 | * Merge from mainline (r149952:150372). | |
1673 | ||
2abae5f1 SP |
1674 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
1675 | ||
1676 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
1677 | * graphite-blocking.c: Same. | |
1678 | * graphite-clast-to-gimple.c: Same. | |
1679 | * graphite-dependences.c: Same. | |
1680 | * graphite-poly.c: Same. | |
1681 | * graphite-poly.h: Same. | |
1682 | * graphite-ppl.c: Same. | |
1683 | * graphite-scop-detection.c: Same. | |
1684 | * graphite-sese-to-poly.c: Same. | |
1685 | * graphite.c: Same. | |
1686 | ||
1687 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1688 | ||
1689 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
1690 | (remove_simple_copy_phi): New. | |
1691 | (remove_invariant_phi): New. | |
1692 | (simple_copy_phi_p): New. | |
1693 | (reduction_phi_p): New. | |
1694 | (gsi_for_ssa_name_def): New. | |
1695 | (insert_out_of_ssa_copy): New. | |
1696 | (insert_out_of_ssa_copy_on_edge): New. | |
1697 | (create_zero_dim_array): New. | |
1698 | (scalar_close_phi_node_p): New. | |
1699 | (rewrite_close_phi_out_of_ssa): New. | |
1700 | (rewrite_phi_out_of_ssa): New. | |
1701 | (rewrite_reductions_out_of_ssa): New. | |
1702 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
1703 | ||
1704 | * testsuite/gcc.dg/graphite/id-11.c: New. | |
1705 | * testsuite/gcc.dg/graphite/id-15.c: New. | |
1706 | * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
1707 | * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
1708 | * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
1709 | * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
1710 | * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
1711 | * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
1712 | * testsuite/gfortran.dg/graphite/id-13.f: New. | |
1713 | * testsuite/gfortran.dg/graphite/id-5.f: New. | |
1714 | ||
1715 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1716 | ||
1717 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
1718 | check that nb_reductions_in_loop is zero. | |
1719 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
1720 | reduction phi nodes. | |
1721 | (nb_reductions_in_loop): Removed. | |
1722 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
1723 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
1724 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
1725 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
1726 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
1727 | ||
1728 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1729 | ||
1730 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
1731 | statements that have an empty iteration domain. | |
1732 | * testsuite/gfortran.dg/graphite/id-16.f: New. | |
1733 | ||
1734 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1735 | ||
1736 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
1737 | chrec_dont_know when the result is not above instantiate_below. | |
1738 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
1739 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
1740 | the tree has a known scalar evolution. | |
1741 | * testsuite/gfortran.dg/graphite/id-14.f: New. | |
1742 | * testsuite/gfortran.dg/graphite/id-15.f: New. | |
1743 | ||
1744 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1745 | ||
1746 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
1747 | insert_gsi. | |
1748 | (rename_variables): Keep inserting renames after the ones already | |
1749 | inserted. | |
1750 | ||
1751 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1752 | ||
1753 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
1754 | (graphite_sort_dominated_info): New. | |
1755 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
1756 | (build_scop_scattering): Fix comment. | |
1757 | ||
1758 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
1759 | ||
1760 | * graphite.c (graphite_finalize): Call print_loops instead of | |
1761 | dump_function_to_file. | |
1762 | * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting. | |
1763 | * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
1764 | loops generated in the graphite output file. | |
1765 | * testsuite/gcc.dg/graphite/pr35356-2.c: New. | |
1766 | * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
1767 | * testsuite/gfortran.dg/graphite/id-12.f: New. | |
1768 | ||
1769 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
1770 | ||
1771 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: | |
1772 | Remove 2 XFAIL. | |
1773 | ||
1774 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
1775 | Tobias Grosser <grosser@fim.uni-passau.de> | |
1776 | ||
1777 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
1778 | alias set number build alias in ACCESSES polyhedron. | |
1779 | (build_alias_set_for_drs): New. | |
1780 | (build_pbb_drs): Added build_alias_set_for_drs. | |
1781 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
1782 | (graphite_carried_dependence_level_k): Check alias information | |
1783 | before building polyhedron. | |
1784 | ||
1785 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
1786 | ||
1787 | * Makefile.in (lambda-code.o): Fix formatting. | |
1788 | ||
1789 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
1790 | ||
1791 | * Merge from mainline (r149350-149952) | |
1792 | ||
1793 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
1794 | ||
1795 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
1796 | before interchange to prepare for loop blocking. | |
1797 | ||
1798 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
1799 | ||
1800 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
1801 | transformation. | |
1802 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
1803 | done in apply_poly_transforms. | |
1804 | ||
1805 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
1806 | ||
1807 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
1808 | Replace RES parameter with *RES. | |
1809 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
1810 | instead of value of RES. | |
1811 | ||
1812 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1813 | ||
1814 | * graphite.c (graphite_finalize): Fix comment. | |
1815 | (graphite_transform_loops): Reset scev info after code generation | |
1816 | of each scop. | |
1817 | ||
1818 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1819 | ||
1820 | * graphite.c (graphite_finalize): Call scev_reset. | |
1821 | ||
1822 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1823 | ||
1824 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
1825 | GBB_CLOOG_IV_TYPES hash table twice. | |
1826 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
1827 | (add_condition_to_domain): Clear GMP values. | |
1828 | ||
1829 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1830 | ||
1831 | * graphite-dependences.c: Fix formatting. | |
1832 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
1833 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
1834 | * graphite-sese-to-poly.c: Fix formatting. | |
1835 | * graphite.c (graphite_transform_loops): Create the hash table | |
1836 | after the early return. | |
1837 | ||
1838 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1839 | ||
1840 | * testsuite/gcc.dg/graphite/id-14.c: New. | |
1841 | * testsuite/gcc.dg/graphite/pr40157.c: New. | |
1842 | * testsuite/gfortran.dg/graphite/id-11.f: New. | |
1843 | ||
1844 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1845 | ||
1846 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
1847 | (build_poly_scop): Return false when there are no pbbs within | |
1848 | loops to avoid to pass to cloog scops with no loops. | |
1849 | ||
1850 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
1851 | ||
1852 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
1853 | useless test "i % 2". | |
1854 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
1855 | (build_poly_dr): Same. | |
1856 | * graphite.c (graphite_transform_loops): Restructure. | |
1857 | ||
1858 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
1859 | ||
1860 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
1861 | reduction_list parameter. | |
1862 | (rewrite_all_phi_nodes_with_iv): Same. | |
1863 | (canonicalize_loop_ivs): Same. | |
1864 | * tree-parloops.c (struct brli): Removed. | |
1865 | (build_reduction_list_info): Removed. | |
1866 | (build_new_reduction): New. | |
1867 | (analyze_reduction_list): Removed. | |
1868 | (gather_scalar_reductions): Find reductions instead of phi | |
1869 | nodes that can't be canonicalized. | |
1870 | (try_create_reduction_list): Remove reduction_list parameter. | |
1871 | (gen_parallel_loop): Same. | |
1872 | (parallelize_loops): Remove analyze_reductions variable, | |
1873 | initialization and free. | |
1874 | Change reduction_list htab initialization to reduction_info | |
1875 | elements instead of ssa names. | |
1876 | Call try_create_reduction_list and gen_parallel_loop without | |
1877 | analyzed_reduction argument. | |
1878 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
1879 | canonicalize_loop_ivs with one less argument. | |
1880 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
1881 | ||
1882 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
1883 | ||
1884 | * graphite-dependences.c (new_poly_dr_pair): New. | |
1885 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
1886 | (new_poly_dr_pair): New. | |
1887 | (eq_poly_dr_pair_p): New. | |
1888 | (hash_poly_dr_pair_p): New. | |
1889 | * graphite-dependences.h (struct poly_dr_pair): New. | |
1890 | (eq_poly_dr_pair_p): Declared. | |
1891 | (hash_poly_dr_pair_p): Declared. | |
1892 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
1893 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
1894 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
1895 | * Makefile.in (graphite-poly.o): Add dependence on | |
1896 | graphite-dependences.h. | |
1897 | ||
1898 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
1899 | ||
1900 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
1901 | polynomials of degree > 1 pass to Graphite. | |
1902 | * tree-chrec.c (scev_is_linear_expression): Call | |
1903 | evolution_function_is_affine_multivariate_p. | |
1904 | * testsuite/gfortran.dg/graphite/id-10.f90: New. | |
1905 | ||
1906 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
1907 | ||
1908 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
1909 | Instantiate scevs varying in outer loops. | |
1910 | * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase. | |
1911 | ||
1912 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
1913 | ||
1914 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
1915 | redundant constraint. | |
1916 | ||
1917 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
1918 | ||
1919 | * testsuite/gcc.dg/graphite/graphite.exp: Fix comments. | |
1920 | * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions | |
1921 | based on the file names as in the C testsuite. | |
1922 | * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns. | |
1923 | * testsuite/gfortran.dg/graphite/block-2.f: Same. | |
1924 | * testsuite/gfortran.dg/graphite/block-3.f90: Same. | |
1925 | * testsuite/gfortran.dg/graphite/block-4.f90: Same. | |
1926 | * testsuite/gfortran.dg/graphite/id-1.f90: Same. | |
1927 | * testsuite/gfortran.dg/graphite/id-2.f90: Same. | |
1928 | * testsuite/gfortran.dg/graphite/id-3.f90: Same. | |
1929 | * testsuite/gfortran.dg/graphite/id-4.f90: Same. | |
1930 | * testsuite/gfortran.dg/graphite/id-6.f: Same. | |
1931 | * testsuite/gfortran.dg/graphite/id-9.f: Same. | |
1932 | * testsuite/gfortran.dg/graphite/interchange-1.f: Same. | |
1933 | * testsuite/gfortran.dg/graphite/interchange-2.f: Same. | |
1934 | * testsuite/gfortran.dg/graphite/scop-1.f: Same. | |
1935 | ||
1936 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
1937 | ||
1938 | * sese.c (expand_scalar_variables_call): New. | |
1939 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
1940 | ||
1941 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
1942 | ||
1943 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: | |
1944 | Expect to see the pattern twice. | |
1945 | * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL. | |
1946 | * testsuite/gcc.dg/graphite/interchange-5.c: Same. | |
1947 | * testsuite/gcc.dg/graphite/interchange-6.c: Same. | |
1948 | ||
1949 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
1950 | ||
1951 | * testsuite/gcc.dg/graphite/id-10.c: New. | |
1952 | * testsuite/gcc.dg/graphite/id-12.c: New. | |
1953 | * testsuite/gfortran.dg/graphite/id-7.f: New. | |
1954 | * testsuite/gfortran.dg/graphite/id-8.f: New. | |
1955 | ||
1956 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
1957 | ||
1958 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
1959 | zero. | |
1960 | ||
1961 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
1962 | ||
1963 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
1964 | ||
1965 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
1966 | ||
1967 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
1968 | ||
1969 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
1970 | ||
1971 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
1972 | building PDR subscripts. | |
1973 | ||
1974 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
1975 | ||
1976 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
1977 | computation of array sizes. | |
1978 | ||
1979 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
1980 | ||
1981 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
1982 | ||
1983 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
1984 | ||
1985 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
1986 | build_pairwise_constraint, dr_equality_constraints, | |
1987 | build_pairwise_scheduling_equality, | |
1988 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
1989 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
1990 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
1991 | Move from NNC_Polyhedron to C_Polyhedron. | |
1992 | * graphite-interchange.c (compute_array_size_poly, | |
1993 | gather_access_strides): Dito. | |
1994 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
1995 | free_scop, pbb_number_of_iterations): Dito. | |
1996 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
1997 | pbb_dim_iter_domain, struct scop): Dito. | |
1998 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
1999 | new_Cloog_Domain_from_ppl_Polyhedron, | |
2000 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
2001 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
2002 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
2003 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
2004 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
2005 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
2006 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
2007 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
2008 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
2009 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
2010 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
2011 | build_scop_iteration_domain, build_poly_dr): Dito | |
2012 | ||
2013 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2014 | ||
2015 | * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute | |
2016 | run-id-*.c files. | |
2017 | * testsuite/gcc.dg/graphite/run-id-1.c: New. | |
2018 | ||
2019 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2020 | ||
2021 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
2022 | positivity constraint on the symbolic number of iterations. | |
2023 | ||
2024 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2025 | ||
2026 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
2027 | ||
2028 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2029 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2030 | ||
2031 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
2032 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
2033 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
2034 | (free_scop): Free SCOP_CONTEXT. | |
2035 | (print_scop_context): New. | |
2036 | (print_scop): Call print_scop_context. | |
2037 | (debug_scop_context): New. | |
2038 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
2039 | (struct scop): Added field context. | |
2040 | (SCOP_CONTEXT): New. | |
2041 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
2042 | (build_scop_context): New. | |
2043 | (build_poly_scop): Call build_scop_context. | |
2044 | ||
2045 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2046 | ||
2047 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
2048 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
2049 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
2050 | * graphite-ppl.h: Include double-int.h and tree.h. | |
2051 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
2052 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
2053 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
2054 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
2055 | ||
2056 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2057 | ||
2058 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
2059 | POINTER_PLUS_EXPR for pointer types. | |
2060 | (clast_to_gcc_expression): Same. | |
2061 | ||
2062 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
2063 | ||
2064 | * graphite-poly.c (print_scattering_function): Early return when | |
2065 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
2066 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
2067 | ||
2068 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
2069 | ||
2070 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
2071 | to fix bootstrap. | |
2072 | ||
2073 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
2074 | ||
2075 | * tree-parloops.c (analyze_reduction_list): Change return | |
2076 | value to void. | |
2077 | (try_create_reduction_list): Move the call to | |
2078 | analyze_reduction_list to the beginining. | |
2079 | Call reduction_phi with analyzed_reductions as argument | |
2080 | instead of reduction_list. | |
2081 | ||
2082 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
2083 | ||
2084 | * Merge from mainline (r148296:149346) | |
2085 | ||
2086 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
2087 | ||
2088 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
2089 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
2090 | check that the initial value does not contain multiplications of | |
2091 | parameters. | |
2092 | (stmt_has_simple_data_refs_p): New. | |
2093 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
2094 | (is_simple_operand): Fix formatting. | |
2095 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
2096 | ||
2097 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
2098 | ||
2099 | * testsuite/gcc.dg/graphite/id-13.c: New. | |
2100 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call | |
2101 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
2102 | (scan_tree_for_params_right_scev): Add extra assert. | |
2103 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
2104 | (idx_record_params): Use scalar_evolution_in_region. | |
2105 | (find_params_in_bb): Same. | |
2106 | (find_scop_parameters): Same. | |
2107 | (build_loop_iteration_domains): Same. | |
2108 | (create_linear_expr_from_tree): Same. | |
2109 | * sese.c (scalar_evolution_in_region): New. | |
2110 | * sese.h (scalar_evolution_in_region): Declared. | |
2111 | (defined_in_sese_p): New. | |
2112 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
2113 | static anymore. | |
2114 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
2115 | Declared. | |
2116 | ||
2117 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
2118 | ||
2119 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
2120 | TREE_DATA_REF_H also implies SCEV_H. | |
2121 | ||
2122 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
2123 | ||
2124 | * graphite-poly.c (print_scop_params): New. | |
2125 | (print_scop): Call print_scop_params. | |
2126 | (debug_scop_params): New. | |
2127 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
2128 | ||
2129 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
2130 | ||
2131 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. | |
2132 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
2133 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
2134 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
2135 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
2136 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
2137 | ||
2138 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
2139 | ||
2140 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
2141 | for dependency checking part. | |
2142 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add | |
2143 | tests for dependency checking. | |
2144 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. | |
2145 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
2146 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
2147 | flag -fdump-tree-graphite-all for autopar testsuites. | |
2148 | ||
2149 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
2150 | ||
2151 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
2152 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
2153 | canonicalize_loop_ivs): Moved... | |
2154 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
2155 | ||
2156 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
2157 | ||
2158 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
2159 | argument analyzed_reductions. Call analyze_reduction_list. | |
2160 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
2161 | (parallelize_loops): Init and finalize analyzed_reductions. | |
2162 | ||
2163 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
2164 | ||
2165 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: | |
2166 | Added flag -fno-loop-strip-mine for autopar testcase. | |
2167 | ||
2168 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
2169 | ||
2170 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
2171 | transformed scattering dimension instead of unmatch orignal when | |
2172 | calling dependence_polyhedron. | |
2173 | ||
2174 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
2175 | ||
2176 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
2177 | ||
2178 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
2179 | ||
2180 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
2181 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
2182 | ||
2183 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
2184 | ||
2185 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
2186 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
2187 | * graphite-poly.c (pbb_number_of_iterations): New. | |
2188 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
2189 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
2190 | ||
2191 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
2192 | ||
2193 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
2194 | last commit on type of lower and upper bound of loops. | |
2195 | ||
2196 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
2197 | ||
2198 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
2199 | graphite-dependences.h. | |
2200 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
2201 | (mark_bb_with_pbb): New. | |
2202 | (get_stmtfor_depth): New. | |
2203 | (find_pbb_via_hash): New. | |
2204 | (dependency_in_loop_p): New. | |
2205 | (mark_loops_parallel): New. | |
2206 | (free_aux_in_new_loops): New. | |
2207 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
2208 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
2209 | innermost loop parallel without checking. | |
2210 | (gloog): Add parameter BB_PBB_MAPPING. | |
2211 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
2212 | (gloog): Change declaration. | |
2213 | (mark_loop_parallel): Make extern. | |
2214 | (free_aux_in_new_loops): Declare. | |
2215 | (bb_pbb_map_hash): New. | |
2216 | (eq_bb_pbb_map): New. | |
2217 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
2218 | auto parallelization when flag_graphite_force_parallel is set. | |
2219 | (graphite_finalize): Added free_aux_in_new_loops. | |
2220 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
2221 | the innermost loop that marked parallel. Use | |
2222 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
2223 | (loop_parallel_p): Move inner most checking out of function. | |
2224 | ||
2225 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2226 | ||
2227 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
2228 | type of lower and upper bound of loops signed long int. | |
2229 | ||
2230 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2231 | ||
2232 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
2233 | expression outside the loop. | |
2234 | ||
2235 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2236 | ||
2237 | * gcc.dg/graphite/interchange-8.c: New. | |
2238 | ||
2239 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2240 | ||
2241 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
2242 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
2243 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
2244 | ||
2245 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2246 | ||
2247 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
2248 | recursion should return 1. | |
2249 | ||
2250 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2251 | ||
2252 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
2253 | subscript multiplier to be -1. | |
2254 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
2255 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
2256 | data_container. Initializes PDR_DATA_CONTAINER. | |
2257 | (print_pdr_access_layout): New. | |
2258 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
2259 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
2260 | data_container. | |
2261 | (PDR_DATA_CONTAINER): New. | |
2262 | (new_poly_dr): Update declaration. | |
2263 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
2264 | (build_poly_dr): Call pdr_add_data_dimensions. | |
2265 | ||
2266 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2267 | ||
2268 | * graphite-poly.h (struct poly_dr): Fix comment. | |
2269 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
2270 | (pdr_add_memory_accesses): New. | |
2271 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
2272 | ||
2273 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
2274 | ||
2275 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
2276 | (print_pbb): Add call to print_pdrs. | |
2277 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
2278 | ||
2279 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
2280 | Li Feng <nemokingdom@gmail.com> | |
2281 | ||
2282 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
2283 | (dependency_between_pbbs_p): New. | |
2284 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
2285 | intersection assign. | |
2286 | (build_lexicographically_gt_constraint): Correct lexicographically | |
2287 | judging. | |
2288 | * graphite-dependences.h: New. | |
2289 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
2290 | ||
2291 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
2292 | ||
2293 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
2294 | (gloog): Print to dump_file the generated clast. | |
2295 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
2296 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
2297 | ||
2298 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
2299 | ||
2300 | * graphite-poly.c (extend_scattering): Increment | |
2301 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
2302 | ||
2303 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
2304 | ||
2305 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
2306 | recursion condition. Continue iterating even after the first equality. | |
2307 | (compute_array_size): Same. | |
2308 | ||
2309 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
2310 | ||
2311 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update | |
2312 | -fdump-tree-final_cleanup to -fdump-tree-optimized. | |
2313 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. | |
2314 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
2315 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
2316 | ||
2317 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2318 | ||
2319 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
2320 | only when the use verifies is_gimple_reg. | |
2321 | ||
2322 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2323 | ||
2324 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
2325 | Allocate scaldims after call to unify_scattering_dimensions. | |
2326 | ||
2327 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2328 | ||
2329 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
2330 | ||
2331 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2332 | Albert Cohen <albert.cohen@inria.fr> | |
2333 | ||
2334 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
2335 | variables for the strip mining. | |
2336 | ||
2337 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2338 | Pranav Garg <pranav.garg2107@gmail.com> | |
2339 | ||
2340 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
2341 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
2342 | (graphite-blocking.o): New rule. | |
2343 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
2344 | * graphite-blocking.c: New. | |
2345 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
2346 | flag_loop_strip_mine. | |
2347 | (psct_scattering_dim_for_loop_depth): New. | |
2348 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
2349 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
2350 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
2351 | flag_loop_strip_mine. | |
2352 | ||
2353 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2354 | ||
2355 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
2356 | a GMP value and a PPL coefficient at each iteration of a loop. | |
2357 | ||
2358 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2359 | ||
2360 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
2361 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
2362 | pbb_nb_scattering_transform. | |
2363 | (graphite_legal_transform_dr): Same. | |
2364 | * graphite-poly.c (extend_scattering): Same. | |
2365 | (unify_scattering_dimensions): Same. | |
2366 | (print_scattering_function): Same. | |
2367 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
2368 | PBB_NB_LOCAL_VARIABLES. | |
2369 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
2370 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
2371 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
2372 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
2373 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
2374 | (pbb_nb_scattering_transform): New. | |
2375 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
2376 | (psco_scattering_dim): Add assert on parameters. | |
2377 | (psct_scattering_dim): Same. | |
2378 | (psct_scattering_dim_for_loop_depth): Declared. | |
2379 | (psct_local_var_dim): New. | |
2380 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
2381 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
2382 | correct layout, call pbb_nb_local_vars. | |
2383 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
2384 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
2385 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
2386 | ||
2387 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2388 | ||
2389 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
2390 | (set_coef): Renamed ppl_set_coef. | |
2391 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
2392 | ||
2393 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
2394 | ||
2395 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
2396 | test a boolean against 1. | |
2397 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
2398 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
2399 | (pbb_do_interchange): Returns true when a transform has been performed. | |
2400 | (scop_do_interchange): Same. | |
2401 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
2402 | scop_do_interchange. | |
2403 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
2404 | ||
2405 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
2406 | ||
2407 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
2408 | after last use. | |
2409 | * sese.c (sese_reset_aux_in_loops): New. | |
2410 | * sese.h (sese_reset_aux_in_loops): New. | |
2411 | ||
2412 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
2413 | ||
2414 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
2415 | multiplier and multiply the constant by the multiplier. | |
2416 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
2417 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
2418 | ||
2419 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
2420 | ||
2421 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
2422 | compiler's data reference. Initialize PDR_CDR. | |
2423 | (print_pdr): Call dump_data_reference. | |
2424 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
2425 | Add compiler_dr field. | |
2426 | (PDR_BB): Renamed PDR_PBB. | |
2427 | (PDR_CDR): New. | |
2428 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
2429 | GCC's data reference representation. | |
2430 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
2431 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
2432 | ||
2433 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
2434 | ||
2435 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
2436 | * graphite-poly.h (pbb_nb_local_vars): New. | |
2437 | ||
2438 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
2439 | ||
2440 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
2441 | ||
2442 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
2443 | ||
2444 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
2445 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
2446 | (PDR_BASE): Removed. | |
2447 | ||
2448 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
2449 | ||
2450 | * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of | |
2451 | ltrans-{1..6,8}.c. | |
2452 | ||
2453 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
2454 | ||
2455 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
2456 | subscript identification column. | |
2457 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
2458 | interchanged". Rely on that chain of characters in the testcases. | |
2459 | * gcc.dg/graphite/interchange-0.c: New. | |
2460 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
2461 | interchange-*.c files and compile them with -floop-interchange. | |
2462 | ||
2463 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
2464 | ||
2465 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
2466 | pbb_interchange_profitable_p. | |
2467 | ||
2468 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
2469 | Harsha Jagasia <harsha.jagasia@amd.com> | |
2470 | Pranav Garg <pranav.garg2107@gmail.com> | |
2471 | ||
2472 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
2473 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
2474 | scop_do_interchange): New. | |
2475 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
2476 | for flag_loop_interchange. | |
2477 | * graphite-poly.h (scop_do_interchange): Declared. | |
2478 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
2479 | flag_loop_interchange is used. | |
2480 | ||
2481 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
2482 | ||
2483 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
2484 | pbb_nb_scattering_dims. | |
2485 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
2486 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
2487 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
2488 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
2489 | ||
2490 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
2491 | ||
2492 | * graphite.c: Cleanup foo. | |
2493 | ||
2494 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
2495 | ||
2496 | * Merge from mainline (r143684:148293). | |
2497 | * Disabled libpcp until it gets fixed. | |
2498 | ||
2499 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
2500 | Harsha Jagasia <harsha.jagasia@amd.com> | |
2501 | ||
2502 | * graphite-interchange.c: New. | |
2503 | * Makefile.in (graphite-interchange.o): New. | |
2504 | * graphite-poly.h (interchange_profitable_p): Declared. | |
2505 | * graphite-ppl.h (value_max): New. | |
2506 | ||
2507 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
2508 | ||
2509 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
2510 | * graphite-poly.h: Fix some comments. | |
2511 | (pdr_dim): New. | |
2512 | (pdr_scop): New. | |
2513 | ||
2514 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
2515 | ||
2516 | * graphite-poly.h | |
2517 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
2518 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
2519 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
2520 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
2521 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
2522 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
2523 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
2524 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
2525 | * graphite-clast-to-gimple.c: Same. | |
2526 | * graphite-dependences.c: Same. | |
2527 | * graphite-poly.c: Same. | |
2528 | * graphite-sese-to-poly.c: Same. | |
2529 | ||
2530 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
2531 | ||
2532 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
2533 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
2534 | (copy_renames): Rename new_name to expr. | |
2535 | * sese.c (debug_rename_elt): Same. | |
2536 | (get_rename): Same. | |
2537 | (set_rename): Same. | |
2538 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
2539 | the information from the rename map. | |
2540 | (rename_variables_in_stmt): Same. | |
2541 | (add_loop_exit_phis): Rename new_name to expr. | |
2542 | (insert_loop_close_phis): Same. | |
2543 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
2544 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
2545 | (new_rename_map_elt): Same. | |
2546 | ||
2547 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
2548 | ||
2549 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
2550 | * sese.c (set_rename): Make it extern. | |
2551 | * sese.h (set_rename): Declared. | |
2552 | ||
2553 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
2554 | ||
2555 | * graphite-poly.c (extend_scattering): Free values. | |
2556 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
2557 | Free iterators. | |
2558 | (ppl_print_powerset_matrix): Same. | |
2559 | * graphite-scop-detection.c (free_scops_1): New. | |
2560 | (limit_scops): Call free_scops_1. | |
2561 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
2562 | (build_poly_dr): Free PPL coefficients. | |
2563 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
2564 | ||
2565 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
2566 | ||
2567 | * graphite-dependences.c: New. | |
2568 | * graphite-data-ref.c: Removed. | |
2569 | * graphite-data-ref.h: Removed. | |
2570 | * Makefile.in (graphite-data-ref.o): Removed. | |
2571 | (graphite-dependences.o): Added. | |
2572 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
2573 | * graphite-poly.c: Same. | |
2574 | Move the data dependence testing to graphite-dependences.c. | |
2575 | ||
2576 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
2577 | ||
2578 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
2579 | from graphite_cannot_represent_loop. Code refactored. | |
2580 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
2581 | ||
2582 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
2583 | ||
2584 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: | |
2585 | Cover all the testcases (not only the filtered ones). | |
2586 | ||
2587 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
2588 | ||
2589 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
2590 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
2591 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
2592 | done in (stmt_simple_for_scop_p). | |
2593 | ||
2594 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
2595 | ||
2596 | * graphite.c (print_global_statistics): New. | |
2597 | (print_graphite_scop_statistic): New. | |
2598 | (print_graphite_statistics): New. | |
2599 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
2600 | * graphite-scop-detection (build_scops): Print statistics. | |
2601 | (print_graphite_scop_statistics): New. | |
2602 | (print_graphite_statistics): New. | |
2603 | ||
2604 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2605 | ||
2606 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
2607 | (debug_clast_name_index): Removed. | |
2608 | (debug_clast_name_indexes_1): Removed. | |
2609 | (debug_clast_name_indexes): Removed. | |
2610 | (clast_name_index_elt_info): Removed. | |
2611 | (eq_clast_name_indexes): Removed. | |
2612 | (clast_name_to_index): Removed. | |
2613 | (new_clast_name_index): Removed. | |
2614 | (save_clast_name_index): Removed. | |
2615 | (save_var_name): Moved... | |
2616 | (init_sese_params_index): Removed. | |
2617 | (clast_name_to_gcc): Remove use of name_tree. | |
2618 | (initialize_cloog_names): Same. | |
2619 | (gloog): Do not call init_sese_params_index. | |
2620 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
2621 | (parameter_index_in_region): New. | |
2622 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
2623 | (parameter_index_in_region): Removed. | |
2624 | (is_parameter): Remove use of name_tree. | |
2625 | * sese.h (struct name_tree): Removed. | |
2626 | (struct sese): Remove use of name_tree. New field params_names. | |
2627 | (SESE_PARAMS_NAMES): New. | |
2628 | (SESE_PARAMS): Remove duplicate. | |
2629 | (parameter_index_in_region): Removed. | |
2630 | (sese_nb_params): Remove use of name_tree. | |
2631 | (struct clast_name_index): New. | |
2632 | (new_clast_name_index): New. | |
2633 | (clast_name_to_index): New. | |
2634 | (save_clast_name_index): New. | |
2635 | (debug_clast_name_index): New. | |
2636 | (debug_clast_name_indexes_1): New. | |
2637 | (debug_clast_name_indexes): New. | |
2638 | (clast_name_index_elt_info): New. | |
2639 | (eq_clast_name_indexes): New. | |
2640 | ||
2641 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2642 | ||
2643 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
2644 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
2645 | (graphite_loop_normal_form): Do not pass region. Do not | |
2646 | initialize SESE_OLDIVS. | |
2647 | (build_graphite_loop_normal_form): Update call to | |
2648 | graphite_loop_normal_form. | |
2649 | * sese.c (debug_oldivs): Removed. | |
2650 | (new_sese): Do not initialize SESE_OLDIVS. | |
2651 | (free_sese): Do not free SESE_OLDIVS. | |
2652 | (oldiv_for_loop): Removed. | |
2653 | * sese.h (struct sese): Remove old_ivs. | |
2654 | (SESE_OLDIVS): Removed. | |
2655 | (oldiv_for_loop): Removed. | |
2656 | ||
2657 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2658 | ||
2659 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
2660 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
2661 | replaced by a call to newivs_to_depth_to_newiv. | |
2662 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
2663 | (clast_to_gcc_expression_red): Same. | |
2664 | (gcc_type_for_clast_expr): Same. | |
2665 | (gcc_type_for_clast_eq): Same. | |
2666 | (graphite_translate_clast_equation): Same. | |
2667 | (graphite_create_guard_cond_expr): Same. | |
2668 | (graphite_create_new_guard): Same. | |
2669 | (graphite_create_new_loop): Same. | |
2670 | (build_iv_mapping): Same. | |
2671 | (translate_clast): Same. | |
2672 | (gloog): Same. | |
2673 | (loop_iv_stack_patch_for_consts): Removed. * | |
2674 | sese.c (iv_stack_entry_is_constant): Removed. | |
2675 | (iv_stack_entry_is_iv): Removed. | |
2676 | (loop_iv_stack_push_iv): Removed. | |
2677 | (loop_iv_stack_insert_constant): Removed. | |
2678 | (loop_iv_stack_pop): Removed. | |
2679 | (loop_iv_stack_get_iv): Removed. | |
2680 | (loop_iv_stack_get_iv_from_name): Removed. | |
2681 | (debug_loop_iv_stack): Removed. | |
2682 | (free_loop_iv_stack): Removed. | |
2683 | (loop_iv_stack_remove_constants): Removed. * | |
2684 | sese.h (iv_stack_entry_kind): Removed. | |
2685 | (iv_stack_entry_data_union): Removed. | |
2686 | (iv_stack_entry_struct): Removed. | |
2687 | (iv_stack_entry_p): Removed. | |
2688 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
2689 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
2690 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
2691 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
2692 | (gbb_loop_at_index): Fix indenting. | |
2693 | (gbb_loop_index): Removed. | |
2694 | ||
2695 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2696 | ||
2697 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
2698 | Call clast_name_to_index. | |
2699 | ||
2700 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2701 | ||
2702 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
2703 | do not pass params. Get params from SESE_PARAMS. | |
2704 | (clast_to_gcc_expression): Same. | |
2705 | (clast_to_gcc_expression_red): Same. | |
2706 | (gcc_type_for_clast_eq): Same. | |
2707 | (graphite_translate_clast_equation): Same. | |
2708 | (graphite_create_new_loop): Same. | |
2709 | * sese.c (rename_variables_in_stmt): Fix comment. | |
2710 | ||
2711 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2712 | ||
2713 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
2714 | newivs_index. | |
2715 | Call save_clast_name_index. | |
2716 | (translate_clast): Pass newivs_index. | |
2717 | (gloog): Create and free newivs_index. | |
2718 | ||
2719 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2720 | ||
2721 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
2722 | (clast_name_index_p): New type. | |
2723 | (debug_clast_name_index): New. | |
2724 | (debug_clast_name_indexes_1): New. | |
2725 | (debug_clast_name_indexes): New. | |
2726 | (clast_name_index_elt_info): New. | |
2727 | (eq_clast_name_indexes): New. | |
2728 | (clast_name_to_index): New. | |
2729 | (new_clast_name_index): New. | |
2730 | (save_clast_name_index): New. | |
2731 | (init_sese_params_index): New. | |
2732 | (gloog): Call init_sese_params_index. | |
2733 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
2734 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
2735 | (free_sese): Free SESE_PARAMS_INDEX. | |
2736 | * sese.h (struct sese): Add params_index. | |
2737 | (SESE_PARAMS_INDEX): New. | |
2738 | ||
2739 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2740 | ||
2741 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
2742 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
2743 | newly created IV to newivs. | |
2744 | (translate_clast): Pass the newivs vector. | |
2745 | (gloog): Create and destroy the newivs vector. | |
2746 | ||
2747 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
2748 | ||
2749 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
2750 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
2751 | IV that has been created. | |
2752 | ||
2753 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
2754 | ||
2755 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
2756 | scev with parameters in the base part. They where forbidden | |
2757 | exidently. | |
2758 | ||
2759 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
2760 | ||
2761 | * testsuite/gcc.dg/graphite/graphite.exp: Set different default | |
2762 | compile options by file names. | |
2763 | * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line. | |
2764 | * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto. | |
2765 | * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
2766 | * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto. | |
2767 | ||
2768 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
2769 | ||
2770 | * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. | |
2771 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
2772 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
2773 | * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
2774 | ||
2775 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
2776 | ||
2777 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
2778 | by final cleanup. | |
2779 | ||
2780 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
2781 | ||
2782 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
2783 | allow integer constant strides. | |
2784 | (graphite_can_represent_expr): Depend on outermost_loop. | |
2785 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
2786 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
2787 | build_scops_1): Same. | |
2788 | (scopdet_basic_block_info): Same and insert layered SCoP | |
2789 | detection. | |
2790 | (try_generate_gimple_bb): Cleanup. | |
2791 | (build_scops): Enable data references. | |
2792 | ||
2793 | * testsuite/gcc.dg/graphite/id-5.c: New. | |
2794 | * testsuite/gcc.dg/graphite/id-9.c: New. | |
2795 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. | |
2796 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
2797 | ||
2798 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
2799 | ||
2800 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
2801 | that we have not yet built for this SCoP. | |
2802 | ||
2803 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
2804 | ||
2805 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
2806 | for complex numbers. | |
2807 | ||
2808 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
2809 | ||
2810 | * graphite-ppl.c: Fix build if cloog is not available. | |
2811 | ||
2812 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
2813 | ||
2814 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
2815 | NITER and REDUCTION_LIST. | |
2816 | (try_get_loop_niter): New. | |
2817 | (try_create_reduction_list): New. | |
2818 | (parallelize_loops): Bypass the failed checkings in autopar | |
2819 | when can_be_parallel in loop structure is set to true. | |
2820 | ||
2821 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
2822 | ||
2823 | * testsuite/gcc.dg/graphite/id-6.c: Update testcase. | |
2824 | * testsuite/gcc.dg/graphite/scop-3.c: Dito. | |
2825 | ||
2826 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
2827 | ||
2828 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
2829 | Enable EQ_EXPR and NE_EXPR again. | |
2830 | ||
2831 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
2832 | ||
2833 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
2834 | Add check if scev is affine multivariate. | |
2835 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
2836 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
2837 | harmful_stmt_in_bb. | |
2838 | * testsuite/gcc.dg/graphite/id-7.c: New. | |
2839 | ||
2840 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
2841 | ||
2842 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
2843 | Check all bbs in region, not only the bbs that are represented in | |
2844 | GRAPHITE. | |
2845 | (build_poly_scop): Add newline. | |
2846 | * testsuite/gcc.dg/graphite/id-8.c: New. | |
2847 | ||
2848 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
2849 | ||
2850 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
2851 | when loop initialize. | |
2852 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
2853 | * common.opt: Declare flag_graphite_force_parallel. | |
2854 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
2855 | loop parallel. | |
2856 | * graphite-poly.c (apply_poly_transforms): Introduce | |
2857 | flag_graphite_force_parallel. | |
2858 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
2859 | * toplev.c (process_options): ditto and replace a not correctly | |
2860 | encoded space. | |
2861 | ||
2862 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
2863 | ||
2864 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
2865 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
2866 | to the redefinition. | |
2867 | (compute_cloog_iv_types_1): ditto. | |
2868 | (build_iv_mapping): ditto. | |
2869 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
2870 | initialization. | |
2871 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
2872 | (build_bb_loops): Removed. | |
2873 | * sese.h (struct gimple_bb): Removed loops. | |
2874 | (GBB_LOOPS): Removed. | |
2875 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
2876 | (gbb_loop_index): ditto. | |
2877 | ||
2878 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
2879 | ||
2880 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
2881 | allow non constant strides. | |
2882 | * testsuite/gcc.dg/graphite/scop-20.c: New. | |
2883 | ||
2884 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2885 | ||
2886 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
2887 | return value warning. | |
2888 | (dot_scop): Same. | |
2889 | ||
2890 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2891 | ||
2892 | * testsuite/gcc.dg/graphite/id-6.c: Fix pattern. | |
2893 | * testsuite/gcc.dg/graphite/scop-3.c: Same. | |
2894 | ||
2895 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2896 | ||
2897 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
2898 | build_pairwise_constraint, dr_equality_constraints, | |
2899 | build_pairwise_scheduling_equality, | |
2900 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
2901 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
2902 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
2903 | graphite_legal_transform): New. | |
2904 | * graphite-poly.h (graphite_legal_transform): Declared. | |
2905 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
2906 | graphite_legal_transform is disabled for the moment. | |
2907 | ||
2908 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2909 | ||
2910 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
2911 | (pbb_nb_scattering): Use it. | |
2912 | ||
2913 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2914 | ||
2915 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
2916 | Pointset_Powerset version of ppl_insert_dimensions. | |
2917 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
2918 | ||
2919 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2920 | ||
2921 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
2922 | ||
2923 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2924 | ||
2925 | * graphite-poly.h: Fix comment. | |
2926 | ||
2927 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
2928 | ||
2929 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
2930 | ||
2931 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
2932 | ||
2933 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
2934 | statements. | |
2935 | ||
2936 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
2937 | ||
2938 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
2939 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
2940 | conditions. | |
2941 | ||
2942 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
2943 | ||
2944 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
2945 | handle EQ_EXPR and NE_EXPR. | |
2946 | ||
2947 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
2948 | ||
2949 | * graphite-poly.h (poly_dr): Fix comment. | |
2950 | ||
2951 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
2952 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2953 | ||
2954 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
2955 | with a zero dimension polyhedron. | |
2956 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
2957 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
2958 | domain polyhedron. | |
2959 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
2960 | by any loop in scop. | |
2961 | (build_poly_scop): Do not call scop_set_nb_params. | |
2962 | ||
2963 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
2964 | Tobias Grosser <grosser@fim.uni-passau.de> | |
2965 | ||
2966 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
2967 | add_condition_to_domain not GT_EXPR. | |
2968 | ||
2969 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
2970 | ||
2971 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
2972 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
2973 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
2974 | upper_bound_assign to calculate unions. | |
2975 | * testsuite/gcc.dg/graphite/id-6.c: New. | |
2976 | ||
2977 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
2978 | ||
2979 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
2980 | handle abnormal edges. | |
2981 | ||
2982 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
2983 | ||
2984 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
2985 | (free_poly_bb): Also free poly_drs. | |
2986 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
2987 | (poly_dr): Polyhedron to Pointset_Powerset. | |
2988 | (pdr_accessp_nb_subscripts): Same. | |
2989 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
2990 | poly_drs. | |
2991 | ||
2992 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
2993 | ||
2994 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
2995 | names into more meaningful names. | |
2996 | ||
2997 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
2998 | ||
2999 | * testsuite/gfortran.dg/graphite/interchange-1.c: New. | |
3000 | * testsuite/gfortran.dg/graphite/interchange-2.c: New. | |
3001 | ||
3002 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
3003 | ||
3004 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
3005 | the reduction_list. | |
3006 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
3007 | (rewrite_all_phi_nodes_with_iv): New. | |
3008 | (canonicalize_loop_ivs): Call them. | |
3009 | ||
3010 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
3011 | ||
3012 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
3013 | graphite_find_data_references_in_stmt. | |
3014 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
3015 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
3016 | ||
3017 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
3018 | ||
3019 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
3020 | ||
3021 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
3022 | ||
3023 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
3024 | instead of bb_in_region. | |
3025 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
3026 | (build_sese_conditions): Use flag_bb_in_sese. | |
3027 | * sese.c (register_bb_in_sese): Removed. | |
3028 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
3029 | (free_sese): Do not free SESE_REGION_BBS. | |
3030 | * sese.h (struct sese): Remove field region_basic_blocks. | |
3031 | (SESE_REGION_BBS): Removed. | |
3032 | (bb_in_sese_p): Implement in function of bb_in_region. | |
3033 | ||
3034 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
3035 | ||
3036 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
3037 | loops. | |
3038 | ||
3039 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3040 | ||
3041 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
3042 | and EQ_EXPR. | |
3043 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
3044 | (add_condition_to_domain): New. | |
3045 | (add_condition_to_pbb): New. | |
3046 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
3047 | * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. | |
3048 | ||
3049 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3050 | ||
3051 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
3052 | ppl_Pointset_Powerset. | |
3053 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
3054 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
3055 | (pbb_nb_loops): Same. | |
3056 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
3057 | add_conditions_to_domain): Same. | |
3058 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
3059 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
3060 | ppl_const_Polyhedron_t. | |
3061 | (ppl_print_powerset_matrix): New. | |
3062 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
3063 | ppl_print_powerset_matrix): New. | |
3064 | (ppl_print_polyhedron_matrix): Updated. | |
3065 | ||
3066 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
3067 | ||
3068 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
3069 | ||
3070 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
3071 | ||
3072 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
3073 | (print_iteration_domains, debug_iteration_domain, | |
3074 | debug_iteration_domains): New. | |
3075 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
3076 | debug_iteration_domains): Declared. | |
3077 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
3078 | indenting. | |
3079 | ||
3080 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
3081 | Sebastian Pop <sebastian.pop@amd.com> | |
3082 | ||
3083 | * graphite-poly.h (print_iteration_domain): New. | |
3084 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
3085 | (build_sese_conditions_1, build_sese_conditions_after, | |
3086 | build_sese_conditions_before): New. | |
3087 | (build_sese_conditions): Rewritten. | |
3088 | ||
3089 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
3090 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3091 | ||
3092 | Cleanup of code generation liveouts. | |
3093 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
3094 | rename_map instead of one per translated statement. | |
3095 | Do not use SESE_LIVEOUT_RENAMES. | |
3096 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
3097 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
3098 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
3099 | phi node of a reduction: when a loop contains a reduction used outside | |
3100 | the loop, there should be a scalar close phi node on the exit block. | |
3101 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
3102 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
3103 | (free_sese): Do not free them. | |
3104 | (sese_build_liveouts_use): Do not use them. | |
3105 | (sese_build_liveouts_bb): Same. | |
3106 | (sese_build_liveouts): Same. | |
3107 | (sese_insert_phis_for_liveouts): Same. | |
3108 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
3109 | (defined_in_loop_p): New. | |
3110 | (alive_after_loop): New. | |
3111 | (close_phi_not_yet_inserted_p): New. | |
3112 | (struct alep, alep_p): New. | |
3113 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
3114 | in the code generated loop. | |
3115 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
3116 | Don't use SESE_LIVEOUT_RENAMES. | |
3117 | (default_liveout_before_guard): Renamed default_before_guard. | |
3118 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
3119 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
3120 | (register_sese_liveout_renames): Removed. | |
3121 | (copy_bb_and_scalar_dependences): Do not call it. | |
3122 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
3123 | reduction_list. | |
3124 | (SESE_LIVEOUT): Removed. | |
3125 | (SESE_LIVEOUT_RENAMES): Removed. | |
3126 | (SESE_REDUCTION_LIST): Removed. | |
3127 | (sese_build_liveouts): Removed. | |
3128 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
3129 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
3130 | (insert_guard_phis): Same. | |
3131 | (rename_map_elt): Declare a VEC of them. | |
3132 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
3133 | trees not pointers to trees. | |
3134 | ||
3135 | Rewrite in canonical close SSA form: | |
3136 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
3137 | (limit_scops): Close the scop after the block containing the close phi | |
3138 | nodes. | |
3139 | (canonicalize_loop_closed_ssa): New. | |
3140 | (canonicalize_loop_closed_ssa_form): New. | |
3141 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
3142 | ||
3143 | * graphite-sese-to-poly.c: Fix typos. | |
3144 | ||
3145 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
3146 | ||
3147 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
3148 | Extended. | |
3149 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
3150 | (print_pbb): Add conditions. | |
3151 | ||
3152 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
3153 | Sebastian Pop <sebastian.pop@amd.com> | |
3154 | ||
3155 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
3156 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
3157 | (build_scop_bbs_1): New. | |
3158 | (build_scop_bbs): Rewrite. | |
3159 | * sese.h (bb_in_region): New. | |
3160 | ||
3161 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
3162 | ||
3163 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
3164 | poly_drs vector. | |
3165 | (print_scop): Style. | |
3166 | * graphite-poly.h (poly_bb): Add drs vector. | |
3167 | (PBB_DRS): Add accessor. | |
3168 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
3169 | (build_pbb_drs, build_scop_drs): New. | |
3170 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
3171 | ||
3172 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
3173 | ||
3174 | * tree-ssa-loop.c: Include forgotten toplev.h | |
3175 | ||
3176 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
3177 | ||
3178 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
3179 | * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-* | |
3180 | * testsuite/gcc.dg/graphite/pr37928.c: Same | |
3181 | * testsuite/gcc.dg/graphite/pr38409.c: Same | |
3182 | * testsuite/gcc.dg/graphite/pr38498.c: Same | |
3183 | * testsuite/gcc.dg/graphite/pr38559.c: Same | |
3184 | * testsuite/gcc.dg/graphite/pr39335.c: Same | |
3185 | * testsuite/gcc.dg/graphite/pr39335_1.c: Same | |
3186 | * testsuite/gfortran.dg/graphite/block-2.f: Same | |
3187 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called | |
3188 | with -floop-*. | |
3189 | ||
3190 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
3191 | ||
3192 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
3193 | build_access_matrix, build_scop_data_accesses): Remove access function | |
3194 | building. (We get a new version soon). | |
3195 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
3196 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
3197 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
3198 | ||
3199 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
3200 | Sebastian Pop <sebastian.pop@amd.com> | |
3201 | ||
3202 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
3203 | field to exit. | |
3204 | (scopdet_basic_block_info, build_scops_1): Don't use | |
3205 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
3206 | ||
3207 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
3208 | Sebastian Pop <sebastian.pop@amd.com> | |
3209 | ||
3210 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
3211 | * sese.c (sese_build_liveouts_use): Renamed from | |
3212 | sese_build_livein_liveouts_use. Remove liveins. | |
3213 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
3214 | Call sese_build_liveouts_use. | |
3215 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
3216 | Call sese_build_liveouts_bb. | |
3217 | (new_sese, free_sese): Remove liveins. | |
3218 | (sese_add_exit_phis_var): Deleted. | |
3219 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
3220 | directly. | |
3221 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
3222 | ||
3223 | * sese.h (sese): Remove num_ver and livein. | |
3224 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
3225 | ||
3226 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
3227 | ||
3228 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
3229 | ||
3230 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
3231 | ||
3232 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
3233 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
3234 | (nb_common_loops): New. | |
3235 | ||
3236 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3237 | ||
3238 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
3239 | (register_old_and_new_names): Renamed set_rename. | |
3240 | ||
3241 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3242 | ||
3243 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
3244 | of the decl from the previous commit. | |
3245 | ||
3246 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3247 | ||
3248 | * graphite-scop-detection.c (dot_scop): New. | |
3249 | * graphite-scop-detection.h (dot_scop): Declared. | |
3250 | ||
3251 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3252 | ||
3253 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
3254 | ||
3255 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3256 | ||
3257 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
3258 | condition at the end of the loop. | |
3259 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
3260 | dump_file the compiled function. | |
3261 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
3262 | of create_empty_loop_on_edge. | |
3263 | (translate_clast): Update the code generation of loops for the new | |
3264 | shape of loops. | |
3265 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
3266 | ||
3267 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
3268 | ||
3269 | Reverted the patch from 2009-03-19. | |
3270 | ||
3271 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
3272 | ||
3273 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
3274 | poly_drs vector. | |
3275 | (print_scop): Style. | |
3276 | * graphite-poly.h (poly_bb): Add drs vector. | |
3277 | (PBB_DRS): Add accessor. | |
3278 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
3279 | (build_access_matrix_with_af, build_access_matrix, | |
3280 | build_scop_data_accesses): Delete. | |
3281 | (build_poly_dr): New. | |
3282 | (build_pbb_drs, build_scop_drs): New. | |
3283 | (build_poly_scop): call build_scop_drs. | |
3284 | ||
3285 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
3286 | ||
3287 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
3288 | once per basic block. | |
3289 | ||
3290 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
3291 | ||
3292 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
3293 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
3294 | and enhanced. | |
3295 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
3296 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
3297 | (scopdet_basic_block_info): Actually define entry_block. | |
3298 | (stmt_simple_memref_p): Moved here from ... | |
3299 | ||
3300 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
3301 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
3302 | ||
3303 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
3304 | ||
3305 | * testsuite/gcc.dg/graphite/id-4.c: New. | |
3306 | ||
3307 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
3308 | ||
3309 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
3310 | (register_old_and_new_names): Update the content of the map. | |
3311 | When there was already a rename_map_elt in the map at that | |
3312 | location, free it. | |
3313 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
3314 | expand_scalar_variables. | |
3315 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
3316 | of the map. When there was already a rename_map_elt in the | |
3317 | map at that location, free it. | |
3318 | (translate_clast): Pass the rename_map. Do not initialize and free | |
3319 | a rename_map per stmt_user. | |
3320 | (gloog): Initialize and free one rename_map and pass it to | |
3321 | translate_clast. | |
3322 | ||
3323 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
3324 | ||
3325 | * sese.c (expand_scalar_variables_stmt, | |
3326 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
3327 | parameter. | |
3328 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
3329 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
3330 | the gimple_stmt_iterator of the statement to be expanded. | |
3331 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
3332 | REALPART_EXPR. | |
3333 | ||
3334 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3335 | ||
3336 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
3337 | REALPART_EXPR. | |
3338 | * testsuite/gcc.dg/graphite/id-2.c: New. | |
3339 | ||
3340 | * graphite-sese-to-poly.c (build_bb_loops, | |
3341 | add_value_to_dim, scan_tree_for_params_right_scev, | |
3342 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
3343 | find_params_in_bb, build_loop_iteration_domains, | |
3344 | add_conditions_to_domain): Remove subtract. | |
3345 | ||
3346 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3347 | ||
3348 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
3349 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
3350 | pbb_loop_at_index -> gbb_loop_at_index. | |
3351 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
3352 | (debug_loop_vec): Delete. | |
3353 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
3354 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
3355 | (PBB_LOOPS): Removed. | |
3356 | (PBB_BLACK_BOX): Insert cast. | |
3357 | (pbb_set_black_box): New setter. | |
3358 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
3359 | (scop_set_region, scop_set_nb_params): New. | |
3360 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
3361 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
3362 | (build_poly_scop): Use scop_set_nb_params. | |
3363 | * sese.h (gimple_bb): Add LOOPS. | |
3364 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
3365 | ||
3366 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3367 | ||
3368 | Revert previous commit. | |
3369 | ||
3370 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
3371 | ||
3372 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
3373 | (register_old_and_new_names): Update the content of the map. | |
3374 | When there was already a rename_map_elt in the map at that | |
3375 | location, free it. | |
3376 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
3377 | expand_scalar_variables. | |
3378 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
3379 | of the map. When there was already a rename_map_elt in the | |
3380 | map at that location, free it. | |
3381 | (translate_clast): Pass the rename_map. Do not initialize and free | |
3382 | a rename_map per stmt_user. | |
3383 | (gloog): Initialize and free one rename_map and pass it to | |
3384 | translate_clast. | |
3385 | ||
3386 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
3387 | ||
3388 | Remove forgotten line in revert. | |
3389 | ||
3390 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
3391 | ||
3392 | Revert previous commit. | |
3393 | ||
3394 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
3395 | ||
3396 | * sese.c (register_old_and_new_names): Update the content | |
3397 | of the map. When there was already a rename_map_elt in the | |
3398 | map at that location, free it. | |
3399 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
3400 | expand_scalar_variables. | |
3401 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
3402 | of the map. When there was already a rename_map_elt in the | |
3403 | map at that location, free it. | |
3404 | (translate_clast): Pass the rename_map. Do not initialize and free | |
3405 | a rename_map per stmt_user. | |
3406 | (gloog): Initialize and free one rename_map and pass it to | |
3407 | translate_clast. | |
3408 | ||
3409 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
3410 | ||
3411 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
3412 | is never NULL. | |
3413 | ||
3414 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3415 | Sebastian Pop <sebastian.pop@amd.com> | |
3416 | ||
3417 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
3418 | of the use of ppl_Polyhedron_map_space_dimensions. | |
3419 | ||
3420 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3421 | Sebastian Pop <sebastian.pop@amd.com> | |
3422 | ||
3423 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
3424 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
3425 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
3426 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
3427 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
3428 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
3429 | pbb_nb_params): New. | |
3430 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
3431 | nb_loops_around_pbb): Adapt return types. | |
3432 | ||
3433 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
3434 | ||
3435 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
3436 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
3437 | graphite-scop-detection.o, graphite-poly.o): Add | |
3438 | more headers. | |
3439 | ||
3440 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
3441 | ||
3442 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
3443 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
3444 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
3445 | ||
3446 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
3447 | ||
3448 | * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block | |
3449 | * testsuite/gcc.dg/graphite/pr37828.c: Same. | |
3450 | * testsuite/gcc.dg/graphite/pr37684.c: Same. | |
3451 | * testsuite/gcc.dg/graphite/block-0.c: Same. | |
3452 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
3453 | * testsuite/gcc.dg/graphite/block-2.c: Same. | |
3454 | * testsuite/gcc.dg/graphite/block-3.c: Same. | |
3455 | * testsuite/gcc.dg/graphite/block-4.c: Same. | |
3456 | * testsuite/gcc.dg/graphite/block-5.c: Same. | |
3457 | * testsuite/gcc.dg/graphite/block-6.c: Same. | |
3458 | * testsuite/gfortran.dg/graphite/pr38083.f90: Same. | |
3459 | * testsuite/gfortran.dg/graphite/block-1.f90: Same. | |
3460 | * testsuite/gfortran.dg/graphite/block-3.f90: Same. | |
3461 | * testsuite/gfortran.dg/graphite/pr37852.f90: Same. | |
3462 | * testsuite/gfortran.dg/graphite/block-4.f90: Same. | |
3463 | * testsuite/gfortran.dg/graphite/pr37980.f90: Same. | |
3464 | * testsuite/gfortran.dg/graphite/pr38953.f90: Same. | |
3465 | * testsuite/gfortran.dg/graphite/pr37857.f90: Same. | |
3466 | * opts.c: Remove -floop-block from -O2. | |
3467 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
3468 | -floop-strip-mine are used. | |
3469 | ||
3470 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
3471 | Sebastian Pop <sebastian.pop@amd.com> | |
3472 | ||
3473 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
3474 | dimensions. | |
3475 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
3476 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
3477 | strip_mine_profitable_p, is_interchange_valid, | |
3478 | graphite_trans_bb_block, graphite_trans_loop_block, | |
3479 | graphite_trans_scop_block): Temporary removed. | |
3480 | (extend_scattering, unify_scattering_dimensions): New. | |
3481 | (print_scattering_function, graphite_read_transforms): | |
3482 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
3483 | (graphite_generate_scattering_fns): Removed. | |
3484 | (apply_poly_transforms): Cleanup. | |
3485 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
3486 | (schedule_to_scattering): Moved. | |
3487 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
3488 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
3489 | (pbb_nb_scattering): New. | |
3490 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
3491 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
3492 | Removed. | |
3493 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
3494 | shift_poly. | |
3495 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
3496 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
3497 | -> PBB_TRANSFORMED_SCATTERING. | |
3498 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
3499 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
3500 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
3501 | (check_poly_representation): Do not return bool. | |
3502 | (graphite_transform_loops): Reformat. | |
3503 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
3504 | ||
3505 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
3506 | ||
3507 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
3508 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
3509 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
3510 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
3511 | ||
3512 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
3513 | ||
3514 | PR middle-end/39335 | |
3515 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
3516 | when the type precision of the induction variable should be | |
3517 | larger than the type precision of nit. | |
3518 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
3519 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
3520 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
3521 | ||
3522 | * testsuite/gcc.dg/graphite/pr39335_1.c: New. | |
3523 | * testsuite/gcc.dg/graphite/pr39335.c: New. | |
3524 | ||
3525 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
3526 | ||
3527 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
3528 | SSA_NAMES not struct reduction_info. | |
3529 | ||
3530 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
3531 | ||
3532 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
3533 | ||
3534 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
3535 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3536 | ||
3537 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
3538 | (free_sese): Free SESE_REDUCTION_LIST. | |
3539 | * sese.h (struct sese): Add field reduction_list. | |
3540 | (SESE_REDUCTION_LIST): New. | |
3541 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
3542 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
3543 | ||
3544 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
3545 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3546 | ||
3547 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
3548 | of loop_p. | |
3549 | ||
3550 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
3551 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3552 | ||
3553 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
3554 | analyze_reduction_list, gather_scalar_reductions): New. | |
3555 | (loop_parallel_p): Build a reduction list containing only | |
3556 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
3557 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
3558 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
3559 | * tree-flow.h (gather_scalar_reductions): Declared. | |
3560 | ||
3561 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
3562 | ||
3563 | PR middle-end/39308 | |
3564 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
3565 | number_of_iterations_exit from a gcc_assert. | |
3566 | ||
3567 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
3568 | Jan Sjodin <jan.sjodin@amd.com> | |
3569 | ||
3570 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
3571 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
3572 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
3573 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
3574 | Don't call schedule_to_scattering. | |
3575 | * common.opt (fgraphite-write, fgraphite-read): New. | |
3576 | * graphite-poly.c: Include output.h. | |
3577 | (print_scattering_function, print_scattering_functions, | |
3578 | debug_scattering_function, debug_scattering_functions, | |
3579 | graphite_write_transforms, graphite_read_transforms, | |
3580 | graphite_generate_scattering_fns): New. | |
3581 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
3582 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
3583 | graphite_read_transforms. | |
3584 | (new_poly_bb): Initialize PBB_SCATTERING. | |
3585 | (free_poly_bb): Free PBB_SCATTERING. | |
3586 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
3587 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
3588 | (PBB_SCATTERING): New. | |
3589 | (print_scattering_function, print_scattering_functions, | |
3590 | debug_scattering_function, debug_scattering_functions): Declared. | |
3591 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
3592 | GMP values, not integers! | |
3593 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
3594 | ppl_read_polyhedron_matrix): New. | |
3595 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
3596 | debug_ppl_polyhedron_matrix, | |
3597 | ppl_read_polyhedron_matrix): Declared. | |
3598 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
3599 | ||
3600 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3601 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3602 | ||
3603 | Revert this change: | |
3604 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
3605 | scalar evolutions in the scop_entry->loop_father. | |
3606 | ||
3607 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3608 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3609 | ||
3610 | * graphite.h (ref_nb_loops): Remove declaration. | |
3611 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
3612 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
3613 | debug_gbb): Moved to sese.h. | |
3614 | * sese.h: As said. | |
3615 | ||
3616 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3617 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3618 | ||
3619 | * graphite-data-ref.[ch]: Disable. | |
3620 | ||
3621 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3622 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3623 | ||
3624 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
3625 | scalar evolutions in the scop_entry->loop_father. | |
3626 | ||
3627 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3628 | ||
3629 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
3630 | (graphite_cannot_represent_loop_niter): Renamed | |
3631 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
3632 | (limit_scops): build_sese_loop_nests does not return a bool. | |
3633 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
3634 | * sese.c (nb_reductions_in_loop): ... from here. | |
3635 | (graphite_loop_normal_form): ... from here. | |
3636 | (sese_record_loop): Does not fail, so does not return a bool. | |
3637 | (build_sese_loop_nests): Same. | |
3638 | * sese.h (build_sese_loop_nests): Update declaration. | |
3639 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
3640 | (build_graphite_loop_normal_form): New. | |
3641 | (gloog): Call build_graphite_loop_normal_form. | |
3642 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
3643 | build_sese_loop_nests. | |
3644 | ||
3645 | * testsuite/gcc.dg/graphite/id-1.c: New. | |
3646 | ||
3647 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
3648 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3649 | ||
3650 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
3651 | The SCoP detection fix is sufficient. | |
3652 | ||
3653 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
3654 | ||
3655 | PR tree-optimization/39260 | |
3656 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
3657 | the basic block contains a condition with a real type. | |
3658 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
3659 | ||
3660 | * gcc.dg/graphite/pr39260.c: New. | |
3661 | ||
3662 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
3663 | ||
3664 | * graphite-poly.c: Inlcude params.h. | |
3665 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
3666 | the size of a tile. | |
3667 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
3668 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
3669 | ||
3670 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
3671 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3672 | ||
3673 | * graphite-scop-detection.c (dot_all_scops_1, | |
3674 | dot_all_scops): Moved here. | |
3675 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
3676 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
3677 | (graphite_transform_loops): Cleaned up. | |
3678 | * sese.c (debug_oldivs): Moved here. | |
3679 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
3680 | apply_poly_transforms. | |
3681 | (debug_loop_vec): Moved here. | |
3682 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
3683 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
3684 | find_scop_parameters, build_scop_iteration_domain, | |
3685 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
3686 | build_scop_data_accesses): Now static. | |
3687 | (build_poly_scop, check_poly_representation): New. | |
3688 | ||
3689 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
3690 | ||
3691 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
3692 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
3693 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
3694 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
3695 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
3696 | scan_tree_for_params, struct irp_data, dx_record_params, | |
3697 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
3698 | build_loop_iteration_domains, add_conditions_to_domain, | |
3699 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
3700 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
3701 | build_sese_conditions, add_conditions_to_constraints, | |
3702 | build_scop_iteration_domain, build_access_matrix_with_af, | |
3703 | build_access_matrix, | |
3704 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
3705 | ||
3706 | * graphite-sese-to-poly.c: New. | |
3707 | * graphite-sese-to-poly.h: New. | |
3708 | ||
3709 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
3710 | ||
3711 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
3712 | ||
3713 | * graphite.c: Split graphite code generation to a new file. | |
3714 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
3715 | max_precision_type, clast_to_gcc_expression_red, | |
3716 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
3717 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
3718 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
3719 | graphite_create_new_guard, clast_get_body_of_loop, | |
3720 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
3721 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
3722 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
3723 | compute_cloog_iv_types, free_scattering, save_var_name, | |
3724 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
3725 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
3726 | print_generated_program, debug_generated_program, | |
3727 | gloog): Moved to graphite-clast-to-gimple.c. | |
3728 | ||
3729 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
3730 | ||
3731 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
3732 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
3733 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
3734 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
3735 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
3736 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
3737 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
3738 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
3739 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
3740 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
3741 | get_vdef_before_sese, sese_adjust_vphi, | |
3742 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
3743 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
3744 | is_iv, expand_scalar_variables_ssa_name, | |
3745 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
3746 | expand_scalar_variables, rename_variables, remove_condition, | |
3747 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
3748 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
3749 | default_liveout_before_guard, add_guard_exit_phis, | |
3750 | insert_guard_phis, register_old_and_new_names, | |
3751 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
3752 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
3753 | if_region_set_false_region, create_if_region_on_edge, | |
3754 | move_sese_in_condition): Moved to sese.c. | |
3755 | ||
3756 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
3757 | if_region_exit, if_region_get_condition_block, | |
3758 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
3759 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
3760 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
3761 | ivtype_map_elt, new_ivtype_map_elt, | |
3762 | recompute_all_dominators): Moved to sese.h. | |
3763 | ||
3764 | * graphite-clast-to-gimple.c: New. | |
3765 | * graphite-clast-to-gimple.h: New. | |
3766 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
3767 | * sese.c: Modified as said above. | |
3768 | * sese.h: Same. | |
3769 | ||
3770 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
3771 | ||
3772 | * graphite.c: Split scop detection to a new file. | |
3773 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
3774 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
3775 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
3776 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
3777 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
3778 | find_single_entry_edge, find_single_exit_edge, | |
3779 | create_single_entry_edge, sd_region_without_exit, | |
3780 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
3781 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
3782 | Moved to graphite-scop-detection.c. | |
3783 | ||
3784 | * graphite-scop-detection.c: New. | |
3785 | * graphite-scop-detection.h: New. | |
3786 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
3787 | ||
3788 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
3789 | tree-scalar-evolution.h. | |
3790 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
3791 | build_sese_loop_nests): Moved here from graphite.c. | |
3792 | (param_index): Renamed parameter_index_in_region. | |
3793 | ||
3794 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3795 | Sebastian Pop <sebastian.pop@amd.com> | |
3796 | ||
3797 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
3798 | * gcc.dg/graphite/block-1.c: Same. | |
3799 | * gcc.dg/graphite/block-5.c: Same. | |
3800 | * gcc.dg/graphite/block-6.c: Same. | |
3801 | ||
3802 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3803 | Sebastian Pop <sebastian.pop@amd.com> | |
3804 | ||
3805 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
3806 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
3807 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
3808 | graphite-data-ref.h. | |
3809 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
3810 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
3811 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
3812 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
3813 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
3814 | scop_nb_params): Moved to graphite-poly.h. | |
3815 | * graphite-data-ref.c: Same. | |
3816 | * graphite-data-ref.h: New. | |
3817 | * graphite.c: Same. | |
3818 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
3819 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
3820 | is_interchange_valid, graphite_trans_bb_block, | |
3821 | graphite_trans_loop_block, scop_max_loop_depth, | |
3822 | graphite_trans_scop_block, graphite_apply_transformations, | |
3823 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
3824 | graphite-poly.c. | |
3825 | * graphite-poly.h: New. | |
3826 | * graphite-poly.c: New. | |
3827 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
3828 | (graphite-poly.o): New rule. | |
3829 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
3830 | (DR_SCOP): Removed. | |
3831 | ||
3832 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
3833 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3834 | ||
3835 | * graphite.c: Replace gb -> gbb. | |
3836 | * graphite.h: Same. | |
3837 | * graphite-data-ref.c: Same. | |
3838 | ||
3839 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
3840 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3841 | ||
3842 | * Makefile.in (OBJS-commmon): Add sese.o. | |
3843 | (sese.o): New. | |
3844 | (graphite.o): Add sese.h. | |
3845 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
3846 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
3847 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
3848 | Move to sese. | |
3849 | (block_before_scop): Add missing return. | |
3850 | (new_scop, free_scop): Remove SESE data structures. | |
3851 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
3852 | find_scop_parameters, build_loop_iteration_domains, | |
3853 | add_conditions_to_domain, register_scop_liveout_renames, | |
3854 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
3855 | ||
3856 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
3857 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
3858 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
3859 | non iv scalar phi nodes. | |
3860 | (print_scop_statistics): New. | |
3861 | (graphite_transform_loops): Cleanup. | |
3862 | ||
3863 | * graphite.h: Move to sese & cleanup. | |
3864 | * sese.c: New. | |
3865 | * sese.h: New. | |
3866 | ||
3867 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3868 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3869 | ||
3870 | * graphite.c (build_scop_conditions_1): Conditions are only | |
3871 | at the end of a basic block. | |
3872 | ||
3873 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3874 | Tobias Grosser <grosser@fim.uni-passau> | |
3875 | ||
3876 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
3877 | field. | |
3878 | (GBB_ALPHA): Removed. | |
3879 | ||
3880 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3881 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3882 | ||
3883 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
3884 | GBB_DYNAMIC_SCHEDULE. | |
3885 | * graphite.c (new_graphite_bb): Same. | |
3886 | (free_graphite_bb): Same. | |
3887 | (build_scop_dynamic_schedules): Removed. | |
3888 | (graphite_transform_loops): Don't call it. | |
3889 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
3890 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
3891 | ||
3892 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3893 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3894 | ||
3895 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
3896 | (print_graphite_bb): Same. | |
3897 | (build_cloog_prog): Same. | |
3898 | ||
3899 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3900 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3901 | ||
3902 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
3903 | ||
3904 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3905 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3906 | ||
3907 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
3908 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
3909 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
3910 | ||
3911 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3912 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3913 | ||
3914 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
3915 | liveout_renames, add_params fields... | |
3916 | (struct sese): ... here. | |
3917 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
3918 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
3919 | ||
3920 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3921 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3922 | ||
3923 | * graphite.c (print_scop): Do not print the CLooG program. | |
3924 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
3925 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
3926 | (find_transform): Renamed scop_to_clast. | |
3927 | (print_generated_program, debug_generated_program): New. | |
3928 | (graphite_transform_loops): Adapt to new interface. | |
3929 | * graphite.h (struct scop): Remove program field. | |
3930 | (SCOP_PROG): Removed. | |
3931 | (print_generated_program, debug_generated_program): Declared. | |
3932 | ||
3933 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
3934 | ||
3935 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
3936 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
3937 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
3938 | free_graphite_bb, build_scop_canonical_schedules, | |
3939 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
3940 | schedules are now represented using a ppl_Linear_Expression_t. | |
3941 | * graphite.h (struct graphite_bb): Same. | |
3942 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
3943 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
3944 | ||
3945 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
3946 | ||
3947 | * graphite.c: Free local memory. | |
3948 | * graphite-ppl.c: Same. | |
3949 | ||
3950 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
3951 | ||
3952 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
3953 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
3954 | swap_constraint_variables, scale_constraint_variable): Removed. | |
3955 | (graphite_trans_bb_strip_mine): Remove pong. | |
3956 | * graphite-ppl.c: Include missing header files. | |
3957 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
3958 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
3959 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
3960 | ||
3961 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
3962 | ||
3963 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
3964 | (build_scop_iteration_domain): Same. | |
3965 | ||
3966 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
3967 | ||
3968 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
3969 | ping pong. | |
3970 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
3971 | scan_tree_for_params_int): New. | |
3972 | * graphite-ppl.c (oppose_constraint): New. | |
3973 | (insert_constraint_into_matrix): Implement missing cases. | |
3974 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
3975 | ||
3976 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
3977 | ||
3978 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
3979 | use ppl_move_dimension. | |
3980 | ||
3981 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
3982 | ||
3983 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
3984 | * graphite.c: Same. | |
3985 | * graphite.h: Same. | |
3986 | * graphite-ppl.c: Same. | |
3987 | * graphite-ppl.h: Same. | |
3988 | ||
3989 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
3990 | ||
3991 | Revert last 3 commits. | |
3992 | ||
3993 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
3994 | ||
3995 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
3996 | ping pong. | |
3997 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
3998 | scan_tree_for_params_int): New. | |
3999 | * graphite-ppl.c (oppose_constraint): New. | |
4000 | (insert_constraint_into_matrix): Implement missing cases. | |
4001 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
4002 | ||
4003 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
4004 | ||
4005 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
4006 | ||
4007 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
4008 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4009 | ||
4010 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
4011 | use ppl_move_dimension. | |
4012 | * graphite-ppl.c (ppl_move_dimension): New. | |
4013 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
4014 | ||
4015 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
4016 | ||
4017 | * graphite.c: Do not include cloog/cloog.h. | |
4018 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
4019 | ||
4020 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4021 | ||
4022 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
4023 | (graphite.o): Add dependence on graphite-ppl.h. | |
4024 | (graphite-ppl.o): New. | |
4025 | (graphite-data-ref.c): Ping pong between PPL data structures | |
4026 | and matrices. | |
4027 | * graphite-ppl.c: New. | |
4028 | * graphite-ppl.h: New. | |
4029 | * graphite.c: Include graphite-ppl.h. | |
4030 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
4031 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
4032 | Ping pong between PPL data structures and matrices. | |
4033 | (new_graphite_bb): Create a PPL constraint system. | |
4034 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
4035 | (build_loop_iteration_domains): Use PPL functions. | |
4036 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
4037 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
4038 | CloogMatrix for representing the domain. | |
4039 | (scop): Remove static_schedule. | |
4040 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
4041 | ||
4042 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
4043 | ||
4044 | * graphite.c: Fix some comments. | |
4045 | ||
4046 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
4047 | ||
4048 | PR middle-end/38953 | |
4049 | * graphite.c (if_region_set_false_region): After moving a region | |
4050 | in the false branch of a condition, remove the empty dummy | |
4051 | basic block. | |
4052 | (gloog): Remove wrong fix for PR38953. | |
4053 | ||
4054 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
4055 | ||
4056 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
4057 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
4058 | register_bb_in_sese, new_sese, free_sese): Moved. | |
4059 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
4060 | outermost_loop_in_scop, build_scop_iteration_domain, | |
4061 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
4062 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
4063 | Use loop_in_sese_p instead of loop_in_scop_p. | |
4064 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
4065 | (free_scop): Do not free SCOP_BBS_B. | |
4066 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
4067 | ref_nb_loops): Moved here... | |
4068 | * graphite.h (ref_nb_loops): ... from here. | |
4069 | (struct scop): Remove bbs_b bitmap. | |
4070 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
4071 | * testsuite/gcc.dg/graphite/scop-19.c: New | |
4072 | ||
4073 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
4074 | ||
4075 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
4076 | detection. | |
4077 | ||
4078 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4079 | ||
4080 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
4081 | eq_loop_to_cloog_loop): Remove. | |
4082 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
4083 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
4084 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
4085 | ||
4086 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4087 | ||
4088 | * opts.c (decode_options): Only add graphite options to O2 | |
4089 | if we compile with graphite enabled. | |
4090 | ||
4091 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
4092 | ||
4093 | * Merge from mainline (r143163:143684). | |
4094 | ||
4095 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
4096 | ||
4097 | * graphite.c (debug_value): Removed. | |
4098 | * graphite.h (debug_value): Removed. | |
4099 | ||
4100 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
4101 | ||
4102 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
4103 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
4104 | SSA form. pass_copy_prop should be fixed. | |
4105 | ||
4106 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
4107 | ||
4108 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
4109 | ||
4110 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
4111 | ||
4112 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
4113 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
4114 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
4115 | changed the CFG. | |
4116 | ||
4117 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
4118 | ||
4119 | * graphite.c (gloog): Return true when code gen succeeded. | |
4120 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
4121 | the code of the function did not changed. After cleanup_tree_cfg | |
4122 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
4123 | form. | |
4124 | ||
4125 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
4126 | ||
4127 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
4128 | gimple_call_lhs is NULL. | |
4129 | ||
4130 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
4131 | Tobias Grosser <tobi.grosser@amd.com> | |
4132 | ||
4133 | * graphite.c (graphite_trans_scop_block): Do not block single | |
4134 | nested loops. | |
4135 | ||
4136 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
4137 | Tobias Grosser <tobi.grosser@amd.com> | |
4138 | ||
4139 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
4140 | zero. | |
4141 | ||
4142 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
4143 | Tobias Grosser <tobi.grosser@amd.com> | |
4144 | ||
4145 | * graphite.c (compare_prefix_loops): New. | |
4146 | (build_scop_canonical_schedules): Rewritten. | |
4147 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
4148 | after build_scop_iteration_domain. | |
4149 | ||
4150 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
4151 | Tobias Grosser <tobi.grosser@amd.com> | |
4152 | ||
4153 | * graphite.c (add_conditions_to_domain): Add the loops to | |
4154 | the dimension of the iteration domain. Do copy the domain | |
4155 | only when it exists. | |
4156 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
4157 | (add_conditions_to_constraints): New. | |
4158 | (can_generate_code_stmt, can_generate_code): Removed. | |
4159 | (gloog): Do not call can_generate_code. | |
4160 | (graphite_transform_loops): Call add_conditions_to_constraints | |
4161 | after building the iteration domain. | |
4162 | ||
4163 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
4164 | Tobias Grosser <tobi.grosser@amd.com> | |
4165 | Jan Sjodin <jan.sjodin@amd.com> | |
4166 | ||
4167 | * graphite.c (scan_tree_for_params): On substractions negate | |
4168 | all the coefficients of the term. | |
4169 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
4170 | of more than two operands. | |
4171 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
4172 | (get_vdef_before_scop): Handle also the case of default definitions. | |
4173 | ||
4174 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
4175 | ||
4176 | PR middle-end/38431 | |
4177 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
4178 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
4179 | (gloog): Do not call cleanup_tree_cfg. | |
4180 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
4181 | scops have been code generated. | |
4182 | ||
4183 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
4184 | ||
4185 | * passes.c (init_optimization_passes): Schedule after | |
4186 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
4187 | ||
4188 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
4189 | ||
4190 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
4191 | Fix comment. | |
4192 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
4193 | Set the type of an expression to the type of its assign statement. | |
4194 | (expand_scalar_variables_expr): Do not pass loop_p. | |
4195 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
4196 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
4197 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
4198 | ||
4199 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
4200 | ||
4201 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
4202 | an expression to the gimple_expr_type of its assign statement. | |
4203 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
4204 | or tcc_declaration. | |
4205 | ||
4206 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
4207 | ||
4208 | PR tree-optimization/38786 | |
4209 | * testsuite/gcc.dg/graphite/pr38786.c: New. | |
4210 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from | |
4211 | the SSA_NAME case of expand_scalar_variables_expr. | |
4212 | (expand_scalar_variables_expr): Also gather the scalar computation | |
4213 | used to index the memory access. | |
4214 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
4215 | the gimple_stmt_iterator where it inserts new code. | |
4216 | ||
4217 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
4218 | ||
4219 | * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit. | |
4220 | ||
4221 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
4222 | ||
4223 | * opts.c (decode_options): Enable flag_graphite_identity and | |
4224 | flag_loop_block in -O2 and above. | |
4225 | ||
4226 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
4227 | ||
4228 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
4229 | Fix merge problem: replace with the file from trunk. | |
4230 | ||
4231 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
4232 | ||
4233 | * Merge from mainline (r141727:143163). | |
4234 | ||
4235 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
4236 | Jan Sjodin <jan.sjodin@amd.com> | |
4237 | ||
4238 | PR tree-optimization/38559 | |
4239 | * testsuite/gcc.dg/graphite/pr38559.c: New. | |
4240 | ||
4241 | * graphite.c (debug_value, copy_constraint, | |
4242 | swap_constraint_variables, scale_constraint_variable, ): New. | |
4243 | (get_lower_bound, get_upper_bound): Removed. | |
4244 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
4245 | only for constant number of iterations. Fully copy upper and | |
4246 | lower bound constraints, not only the constant part of them. | |
4247 | * graphite.h (debug_value): Declared. | |
4248 | ||
4249 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
4250 | ||
4251 | PR tree-optimization/38492 | |
4252 | PR tree-optimization/38498 | |
4253 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
4254 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
4255 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
4256 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
4257 | (graphite_loop_normal_form): Use gcc_assert. | |
4258 | (scan_tree_for_params): Use CASE_CONVERT. | |
4259 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
4260 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
4261 | Use gcc_assert. Discard scops that contain unhandled cases. | |
4262 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
4263 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
4264 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
4265 | recompute it wrongly. | |
4266 | (graphite_trans_bb_block): Same. | |
4267 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
4268 | (graphite_trans_scop_block): Do not print that the loop has been | |
4269 | blocked. | |
4270 | (graphite_transform_loops): Do not handle scops that contain condition | |
4271 | scalar phi nodes. | |
4272 | ||
4273 | * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed | |
4274 | in trunk. | |
4275 | * testsuite/gcc.dg/graphite/block-0.c: Update test. | |
4276 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
4277 | * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for | |
4278 | blocking. | |
4279 | * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine. | |
4280 | * testsuite/gcc.dg/graphite/block-3.c: New. | |
4281 | * testsuite/gcc.dg/graphite/pr38498.c: New. | |
4282 | ||
4283 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
4284 | ||
4285 | PR tree-optimization/38510 | |
4286 | * gcc.dg/graphite/pr38510.c: New. | |
4287 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
4288 | (translate_clast): Call recompute_all_dominators before | |
4289 | graphite_verify. | |
4290 | (gloog): Call recompute_all_dominators before graphite_verify. | |
4291 | ||
4292 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
4293 | ||
4294 | PR tree-optimization/38492 | |
4295 | * graphite.c (rename_map_elt, debug_rename_elt, | |
4296 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
4297 | rename_map_elt_info, eq_rename_map_elts, | |
4298 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
4299 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
4300 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
4301 | (sese_build_livein_liveouts): New. | |
4302 | (new_sese, free_sese): New. | |
4303 | (new_scop): Call new_sese. | |
4304 | (free_scop): Call free_sese. | |
4305 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
4306 | (register_old_new_names): Renamed register_old_and_new_names. | |
4307 | (register_scop_liveout_renames, add_loop_exit_phis, | |
4308 | insert_loop_close_phis, struct igp, | |
4309 | default_liveout_before_guard, add_guard_exit_phis, | |
4310 | insert_guard_phis, copy_renames): New. | |
4311 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
4312 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
4313 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
4314 | (scop_adjust_phis_for_liveouts): New. | |
4315 | (gloog): Call scop_adjust_phis_for_liveouts. | |
4316 | ||
4317 | * graphite.h (struct sese): Documented. Added fields liveout, | |
4318 | num_ver and livein. | |
4319 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
4320 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
4321 | (struct scop): Added field liveout_renames. | |
4322 | (SCOP_LIVEOUT_RENAMES): New. | |
4323 | ||
4324 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
4325 | ||
4326 | PR tree-optimization/38409 | |
4327 | * gcc.dg/graphite/pr38409.c: New. | |
4328 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
4329 | ||
4330 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
4331 | ||
4332 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
4333 | integer_type_node. | |
4334 | (graphite_create_new_loop): Don't fold_convert the already | |
4335 | fold_convert-ed expression. | |
4336 | ||
4337 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
4338 | ||
4339 | PR tree-optimization/38446 | |
4340 | * gcc.dg/graphite/pr38446.c: New. | |
4341 | * graphite.c (register_bb_in_sese): New. | |
4342 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
4343 | looking at the bbs in the region. | |
4344 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
4345 | structure and initialize at the time of defining new scop. | |
4346 | ||
4347 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4348 | ||
4349 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
4350 | (find_params_in_bb): Do not free data refs. | |
4351 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
4352 | ||
4353 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
4354 | ||
4355 | * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info. | |
4356 | * testsuite/gcc.dg/graphite/scop-17.c: Same. | |
4357 | * testsuite/gcc.dg/graphite/block-5.c: New. | |
4358 | * testsuite/gcc.dg/graphite/block-6.c: New. | |
4359 | * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after. | |
4360 | * testsuite/gcc.dg/graphite/pr37684.c: Same. | |
4361 | * testsuite/gcc.dg/graphite/block-2.c: Same. | |
4362 | ||
4363 | * graphite.c (struct ivtype_map_elt): New. | |
4364 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
4365 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
4366 | gcc_type_for_cloog_iv): New. | |
4367 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
4368 | variable from the original loop, except for the automatically | |
4369 | generated loops, i.e., in the case of a strip-mined loop, in | |
4370 | which case there is no original loop: in that case just use | |
4371 | integer_type_node. | |
4372 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
4373 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
4374 | (clast_name_to_gcc): Accept params to be NULL. | |
4375 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
4376 | Convert to that type all the expressions built by this function. | |
4377 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
4378 | (graphite_translate_clast_equation): Compute the type of the | |
4379 | clast_equation before translating its LHS and RHS. | |
4380 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
4381 | (graphite_create_new_loop): Compute the type of the induction | |
4382 | variable before translating the lower and upper bounds and before | |
4383 | creating the induction variable. | |
4384 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
4385 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
4386 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
4387 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
4388 | compute_cloog_iv_types): New. | |
4389 | (gloog): Call compute_cloog_iv_types before starting the | |
4390 | translation of the clast. | |
4391 | ||
4392 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
4393 | (GBB_CLOOG_IV_TYPES): New. | |
4394 | (debug_ivtype_map): Declared. | |
4395 | (oldiv_for_loop): New. | |
4396 | ||
4397 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
4398 | ||
4399 | PR middle-end/38459 | |
4400 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
4401 | (param_index): Assert if parameter is not know after parameter | |
4402 | detection. | |
4403 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
4404 | (find_scop_parameters): Mark, that we have finished parameter | |
4405 | detection. | |
4406 | (graphite_transform_loops): Move condition detection before parameter | |
4407 | detection. | |
4408 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
4409 | * testsuite/gfortran.dg/graphite/pr38459.f90: New. | |
4410 | ||
4411 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4412 | ||
4413 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
4414 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
4415 | generate code. | |
4416 | ||
4417 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4418 | ||
4419 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
4420 | (print_scop): Ditto. | |
4421 | ||
4422 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4423 | ||
4424 | PR middle-end/38084 | |
4425 | Fix testsuite/gfortran.dg/graphite/id-3.f90. | |
4426 | * graphite.c (scopdet_basic_block_info): Fix bug that found some | |
4427 | regions more than once. | |
4428 | ||
4429 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
4430 | ||
4431 | Fix testsuite/gfortran.dg/graphite/id-4.f90. | |
4432 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand | |
4433 | when not needed. | |
4434 | ||
4435 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
4436 | ||
4437 | Fix testsuite/gfortran.dg/graphite/id-1.f90. | |
4438 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. | |
4439 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
4440 | (max_precision_type): New. | |
4441 | (value_clast): Removed. | |
4442 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
4443 | Use max_precision_type and update use of gmp_cst_to_tree. | |
4444 | (graphite_translate_clast_equation): Use max_precision_type. | |
4445 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
4446 | use the type of the condition. | |
4447 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
4448 | max_precision_type of lb and ub. | |
4449 | ||
4450 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
4451 | ||
4452 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
4453 | and sinfo.last. | |
4454 | ||
4455 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
4456 | ||
4457 | * testsuite/gcc.dg/graphite/pr38084.c: New. | |
4458 | * testsuite/gfortran.dg/graphite/id-1.f90: New. | |
4459 | * testsuite/gfortran.dg/graphite/id-2.f90: New. | |
4460 | * testsuite/gfortran.dg/graphite/id-3.f90: New. | |
4461 | * testsuite/gfortran.dg/graphite/id-4.f90: New. | |
4462 | * testsuite/gfortran.dg/graphite/pr37857.f90: New. | |
4463 | ||
4464 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
4465 | Jan Sjodin <jan.sjodin@amd.com> | |
4466 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4467 | ||
4468 | PR middle-end/37852 | |
4469 | PR middle-end/37883 | |
4470 | PR middle-end/37928 | |
4471 | PR middle-end/37980 | |
4472 | PR middle-end/38038 | |
4473 | PR middle-end/38039 | |
4474 | PR middle-end/38073 | |
4475 | PR middle-end/38083 | |
4476 | PR middle-end/38125 | |
4477 | ||
4478 | * testsuite/gcc.dg/graphite/pr38073.c: New. | |
4479 | * testsuite/gcc.dg/graphite/pr37928.c: New. | |
4480 | * testsuite/gcc.dg/graphite/pr37883.c: New. | |
4481 | * testsuite/gcc.dg/graphite/pr38125.c: New. | |
4482 | * testsuite/gfortran.dg/graphite/pr38083.f90: New. | |
4483 | * testsuite/gfortran.dg/graphite/pr37852.f90: New. | |
4484 | * testsuite/gfortran.dg/graphite/pr37980.f90: New. | |
4485 | ||
4486 | * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for | |
4487 | the number of detected scops. Copy exact same test for loop | |
4488 | blocking... | |
4489 | * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected | |
4490 | loops to be blocked as reductions are not handled. | |
4491 | * testsuite/gcc.dg/graphite/block-4.c: ...here. New. | |
4492 | ||
4493 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
4494 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
4495 | ...here. | |
4496 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
4497 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
4498 | (graphite.o-warn): Removed -Wno-error. | |
4499 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
4500 | to be a NULL pointer. Call update_stmt. Return the newly created | |
4501 | cannonical induction variable. | |
4502 | ||
4503 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
4504 | ||
4505 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
4506 | Include value-prof.h. | |
4507 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
4508 | (get_old_iv_from_ssa_name): Removed. | |
4509 | (graphite_stmt_p): New. | |
4510 | (new_graphite_bb): Test for useful statements before building a | |
4511 | graphite statement for the basic block. | |
4512 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
4513 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
4514 | reason. | |
4515 | (recompute_all_dominators, graphite_verify, | |
4516 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
4517 | (scop_record_loop): Call graphite_loop_normal_form. | |
4518 | (build_scop_loop_nests): Iterate over all the blocks of the | |
4519 | function instead of relying on the incomplete information from | |
4520 | SCOP_BBS. Return the success of the operation. | |
4521 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
4522 | (add_bb_domains): Removed. | |
4523 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
4524 | Add the iteration domain only to the basic blocks that have been | |
4525 | translated to graphite. | |
4526 | (build_scop_conditions_1): Add constraints only if the basic | |
4527 | block have been translated to graphite. | |
4528 | (build_scop_data_accesses): Completely disabled until data | |
4529 | dependence is correctly implemented. | |
4530 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
4531 | (remove_all_edges_1, remove_all_edges): Removed. | |
4532 | (get_new_name_from_old_name): New. | |
4533 | (graphite_rename_variables_in_stmt): Renamed | |
4534 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
4535 | Use replace_exp and update_stmt. | |
4536 | (is_old_iv): Renamed is_iv. | |
4537 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
4538 | Use replace_exp and update_stmt. | |
4539 | (expand_scalar_variables_expr): Same. Use the map to get the | |
4540 | new names for the renaming of induction variables and for the | |
4541 | renaming of variables after a basic block has been copied. | |
4542 | (expand_scalar_variables): Same. | |
4543 | (graphite_rename_variables): Renamed rename_variables. | |
4544 | (move_phi_nodes): Removed. | |
4545 | (get_false_edge_from_guard_bb): New. | |
4546 | (build_iv_mapping): Do not insert the induction variable of a | |
4547 | loop in the renaming iv map if the basic block does not belong | |
4548 | to that loop. | |
4549 | (register_old_new_names, graphite_copy_stmts_from_block, | |
4550 | copy_bb_and_scalar_dependences): New. | |
4551 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
4552 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
4553 | At each translation step call graphite_verify ensuring the | |
4554 | consistency of the SSA, loops and dominators information. | |
4555 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
4556 | find_vdef_for_var_1, find_vdef_for_var, | |
4557 | patch_phis_for_virtual_defs): Removed huge hack. | |
4558 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
4559 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
4560 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
4561 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
4562 | if_region_get_condition_block, if_region_set_false_region, | |
4563 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
4564 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
4565 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
4566 | rewrite_into_sese_closed_ssa): New. | |
4567 | (gloog): Remove dead code. Early return if code cannot be | |
4568 | generated. Call cleanup_tree_cfg once the scop has been code | |
4569 | generated. | |
4570 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
4571 | block loops with less than two loops. | |
4572 | (graphite_apply_transformations): Remove the call to | |
4573 | scop_remove_ignoreable_gbbs. | |
4574 | (limit_scops): When build_scop_loop_nests fails, continue on | |
4575 | the next scop. Fix open_scop.entry. | |
4576 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
4577 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
4578 | Call initialize_original_copy_tables and free_original_copy_tables | |
4579 | to be able to copy basic blocks during code generation. | |
4580 | When build_scop_loop_nests fails, continue on next scop. | |
4581 | (value_clast): New union. | |
4582 | (clast_to_gcc_expression): Fix type cast warning. | |
4583 | ||
4584 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
4585 | ||
4586 | * Merge from mainline (r140838:141727). | |
4587 | ||
4588 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4589 | ||
4590 | PR middle-end/37833 | |
4591 | ||
4592 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
4593 | ||
4594 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
4595 | ||
4596 | PR middle-end/37943 | |
4597 | ||
4598 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
4599 | exits and conditions. | |
4600 | * testsuite/gcc.dg/graphite/pr37943.c: New. | |
4601 | ||
4602 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
4603 | ||
4604 | PR middle-end/37886 | |
4605 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
4606 | ||
4607 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
4608 | ||
4609 | * doc/invoke.texi: Fix spaces. | |
4610 | ||
4611 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
4612 | ||
4613 | PR tree-optimization/37891 | |
4614 | Reverted last commit. | |
4615 | * graphite.c (create_single_entry_edge): Set | |
4616 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
4617 | ||
4618 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
4619 | Mitul Thakkar <mitul.thakkar@amd.com> | |
4620 | ||
4621 | * graphite.c (create_single_entry_edge): Set | |
4622 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
4623 | ||
4624 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
4625 | ||
4626 | * doc/invoke.texi: Add -fgraphite-identity. | |
4627 | * graphite.c (graphite_apply_transformations): Check for | |
4628 | -fgraphite-identity. | |
4629 | * toplev.c (process_options): Add flag_graphite_identity. | |
4630 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
4631 | ||
4632 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
4633 | ||
4634 | Undo changes from 2008-10-02: | |
4635 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
4636 | operand type when copying the operand to a variable of different type. | |
4637 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
4638 | with the IV name after increment. | |
4639 | ||
4640 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
4641 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4642 | ||
4643 | PR tree-optimization/37828 | |
4644 | * testsuite/gcc.dg/graphite/pr37828.c: New. | |
4645 | * graphite.c (graphite_trans_loop_block): Do not loop block | |
4646 | single nested loops. | |
4647 | ||
4648 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
4649 | Sebastian Pop <sebastian.pop@amd.com> | |
4650 | ||
4651 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
4652 | rename_map_elt_info, eq_rename_map_elts): New. | |
4653 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
4654 | (expand_scalar_variables_expr): Change parameters. | |
4655 | (expand_scalar_variables_stmt): Same. | |
4656 | (expand_scalar_variables): Same. | |
4657 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
4658 | (build_iv_mapping): New. | |
4659 | (translate_clast): Call build_iv_mapping. | |
4660 | * graphite.h (gbb_p): New name. | |
4661 | ||
4662 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
4663 | ||
4664 | PR tree-optimization/37684 | |
4665 | * gcc.dg/graphite/pr37684.c: New. | |
4666 | * graphite.c (exclude_component_ref): New. | |
4667 | (is_simple_operand): Call exclude_component_ref. | |
4668 | ||
4669 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
4670 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4671 | ||
4672 | PR tree-optimization/37485 | |
4673 | * gcc.dg/graphite/block-2.c: New | |
4674 | * graphite.c (gmp_cst_to_tree): Moved. | |
4675 | (iv_stack_entry_is_constant): New. | |
4676 | (iv_stack_entry_is_iv): New. | |
4677 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
4678 | (loop_iv_stack_insert_constant): New. | |
4679 | (loop_iv_stack_pop): Use new datatpype. | |
4680 | (loop_iv_stack_get_iv): Same. | |
4681 | (loop_iv_stack_get_iv_from_name): Same. | |
4682 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
4683 | (loop_iv_stack_patch_for_consts): New. | |
4684 | (loop_iv_stack_remove_constants): New. | |
4685 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
4686 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
4687 | loop_iv_stack_remove_constants. | |
4688 | (gloog): Use new datatype. Redirect construction edge to end | |
4689 | block to avoid accidental deletion. | |
4690 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
4691 | iv stack entry. | |
4692 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
4693 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
4694 | ||
4695 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
4696 | ||
4697 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
4698 | operand type when copying the operand to a variable of different type. | |
4699 | ||
4700 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
4701 | ||
4702 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
4703 | with the IV name after increment. | |
4704 | ||
4705 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
4706 | ||
4707 | * Merge from mainline (r140164:140838). | |
4708 | ||
4709 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
4710 | ||
4711 | * graphite-data-ref.c: New. | |
4712 | * graphite.c (print_scop): Also dump the dependence graph. | |
4713 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
4714 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
4715 | (build_scop_dynamic_schedules): New. | |
4716 | (build_access_matrix_with_af): Fixed column numbering. | |
4717 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
4718 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
4719 | (struct scop): Add dep_graph field. | |
4720 | (SCOP_DEP_GRAPH): Defined. | |
4721 | (ref_nb_loops): Fixed and moved to other position. | |
4722 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
4723 | (nb_loops_around_loop_in_scop): New. | |
4724 | (graphite_dump_dependence_graph): Declared. | |
4725 | (graphite_build_rdg_all_levels): Declared. | |
4726 | (graphite_test_dependence): Declared. | |
4727 | * Makefile.in (graphite-data-ref.o): New target. | |
4728 | ||
4729 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
4730 | ||
4731 | * Merge from mainline (139870:140164). | |
4732 | ||
4733 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
4734 | ||
4735 | * Merge from mainline (138275:139870). | |
4736 | * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of | |
4737 | the commits from trunk broke the niter detection. | |
4738 | ||
4739 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
4740 | ||
4741 | * graphite.c: Add more documentation. Fix formatting. | |
4742 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
4743 | loop_iv_stack_debug): Moved... | |
4744 | (schedule_to_scattering): Move before use. | |
4745 | (dot_all_scops): Include in "#if 0" the code for system | |
4746 | call dotty. | |
4747 | ||
4748 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
4749 | loop_iv_stack_debug): ...here. | |
4750 | ||
4751 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
4752 | ||
4753 | * tree-phinodes.c (make_phi_node): Extern. | |
4754 | (add_phi_node_to_bb): New. | |
4755 | (create_phi_node): Call add_phi_node_to_bb. | |
4756 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
4757 | (remove_statement): Handle case where stored phi was updated | |
4758 | and is no longer the same. | |
4759 | * graphite.c (is_parameter): New. | |
4760 | (is_old_iv): New. | |
4761 | (expand_scalar_variables_expr): New. | |
4762 | (expand_scalar_variables_stmt): New. | |
4763 | (expand_scalar_variables): New. | |
4764 | (move_phi_nodes): Create new phi instead of moving old one. | |
4765 | (translate_clast): Call expand_scalar_variables. | |
4766 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
4767 | (skip_phi_defs): New. | |
4768 | (collect_scop_exit_phi_args): New. | |
4769 | (patch_scop_exit_phi_args): New. | |
4770 | (gloog): Patch phis after scop. | |
4771 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
4772 | (make_phi_node): Declared. | |
4773 | ||
4774 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
4775 | ||
4776 | * graphite.c (end_scop): Split the entry of the scop when it | |
4777 | is the header of the loop in which the scop is ending. | |
4778 | (build_scops_1, limit_scops): Update uses of end_scop. | |
4779 | ||
4780 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
4781 | ||
4782 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
4783 | SCOP_ENTRY or SCOP_EXIT. | |
4784 | ||
4785 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4786 | ||
4787 | * graphite.c (get_construction_edge): Removed. | |
4788 | (gloog): Construction edge is the scop entry edge. | |
4789 | ||
4790 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4791 | ||
4792 | * graphite.c (can_generate_for_scop): Removed. | |
4793 | (gloog): Do not call it. | |
4794 | ||
4795 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4796 | ||
4797 | * graphite.c (new_scop): Entry of a scop is an edge. | |
4798 | Initialize SESE region. | |
4799 | (free_scop): Free SESE region. | |
4800 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
4801 | (split_difficult_bb): New, split from end_scop. | |
4802 | (end_scop): Exit of a scop is an edge. | |
4803 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
4804 | not automatically updated and thus is always wrong. | |
4805 | * graphite.h (struct sese): New. | |
4806 | (SESE_ENTRY): New. | |
4807 | (SESE_EXIT): New. | |
4808 | (struct scop): New field for a SESE region. Remove entry, exit. | |
4809 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
4810 | semantics as before. Moved comment around. | |
4811 | ||
4812 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4813 | Sebastian Pop <sebastian.pop@amd.com> | |
4814 | ||
4815 | * graphite.c (graphite_transform_loops): Always enable gloog | |
4816 | and find_transform when ENABLE_CHECKING. | |
4817 | ||
4818 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4819 | ||
4820 | * graphite.c (graphite_transform_loops): Move pretty printer | |
4821 | of SCOPs before doing any transform. Remove call to print_scops | |
4822 | and dot_all_scops_1. | |
4823 | ||
4824 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4825 | ||
4826 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
4827 | (print_graphite_bb): Same. | |
4828 | ||
4829 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4830 | ||
4831 | * graphite.c (dot_all_scops_1): Cleanup. | |
4832 | (move_scops): Fix comment. | |
4833 | ||
4834 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
4835 | ||
4836 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
4837 | ||
4838 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
4839 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
4840 | ||
4841 | * graphite.c (build_scop_bbs): Factor up code. | |
4842 | ||
4843 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4844 | ||
4845 | * graphite.c (gloog): Update dominator info. | |
4846 | ||
4847 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4848 | ||
4849 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
4850 | ||
4851 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
4852 | ||
4853 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
4854 | initialization. | |
4855 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
4856 | (translate_clast): Correct formatting. | |
4857 | * graphite.h (struct num_map): Removed. | |
4858 | (struct graphite_bb): Remove num_map field. | |
4859 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
4860 | ||
4861 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
4862 | ||
4863 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
4864 | (build_scop_data_accesses): Same. | |
4865 | ||
4866 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
4867 | ||
4868 | * graphite.c (build_scop_data_accesses): Don't construct | |
4869 | access matrices. Add a FIXME and an assert condition that | |
4870 | should pass when the access matrices will be needed. | |
4871 | ||
4872 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
4873 | ||
4874 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
4875 | really_constant_p. | |
4876 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
4877 | Moved close by free_graphite_bb. | |
4878 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
4879 | (new_scop): Move close by free_scop. | |
4880 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
4881 | ||
4882 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
4883 | ||
4884 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
4885 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
4886 | instead of recursive call. | |
4887 | (graphite_translate_clast_equation): New. | |
4888 | (graphite_create_guard_cond_expr): New. | |
4889 | (graphite_create_new_guard): New. | |
4890 | (get_stack_index_from_iv): Removed. | |
4891 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
4892 | (get_true_edge_from_guard_bb): New. | |
4893 | (translate_clast): Handle stmt_guard in clast. | |
4894 | (get_construction_edge): Allow construction edge detection for | |
4895 | a scope entry with multiple predecessors if one predecessor is | |
4896 | the immediate dominator of scope entry. | |
4897 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
4898 | (gloog): Use correct context loop. Removed check for post dominators. | |
4899 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
4900 | ||
4901 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
4902 | ||
4903 | * graphite.c (remove_dead_loops): Document better which | |
4904 | loops are removed. | |
4905 | ||
4906 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
4907 | ||
4908 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
4909 | and PPLINC. | |
4910 | (graphite.o): Also depends on pointer-set.h. | |
4911 | ||
4912 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
4913 | ||
4914 | * graphite.c (scop_record_loop): Fix compile warning. | |
4915 | ||
4916 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
4917 | Sebastian Pop <sebastian.pop@amd.com> | |
4918 | ||
4919 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
4920 | ||
4921 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
4922 | ||
4923 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
4924 | point to the graphite_bb_p. | |
4925 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
4926 | content of bb->aux. | |
4927 | (add_bb_domains): Does not use the scop parameter. | |
4928 | (graphite_transform_loops): Clean bb->aux at the end. | |
4929 | ||
4930 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
4931 | Sebastian Pop <sebastian.pop@amd.com> | |
4932 | ||
4933 | * testsuite/lib/target-supports.exp | |
4934 | (check_effective_target_fgraphite): New. | |
4935 | ||
4936 | * testsuite/gcc.dg/graphite/graphite.exp: Early exit when | |
4937 | check_effective_target_fgraphite returns false. | |
4938 | Set dg-do-what-default to compile. | |
4939 | (scan-graphite-dump-times): Removed. | |
4940 | * testsuite/gfortran.dg/graphite/graphite.exp: Same. | |
4941 | ||
4942 | * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". | |
4943 | Use scan-tree-dump-times instead of scan-graphite-dump-times. | |
4944 | * testsuite/gcc.dg/graphite/scop-1.c: Same. | |
4945 | * testsuite/gcc.dg/graphite/scop-2.c: Same. | |
4946 | * testsuite/gcc.dg/graphite/scop-3.c: Same. | |
4947 | * testsuite/gcc.dg/graphite/scop-4.c: Same. | |
4948 | * testsuite/gcc.dg/graphite/scop-5.c: Same. | |
4949 | * testsuite/gcc.dg/graphite/scop-6.c: Same. | |
4950 | * testsuite/gcc.dg/graphite/scop-7.c: Same. | |
4951 | * testsuite/gcc.dg/graphite/scop-8.c: Same. | |
4952 | * testsuite/gcc.dg/graphite/scop-9.c: Same. | |
4953 | * testsuite/gcc.dg/graphite/scop-10.c: Same. | |
4954 | * testsuite/gcc.dg/graphite/scop-11.c: Same. | |
4955 | * testsuite/gcc.dg/graphite/scop-12.c: Same. | |
4956 | * testsuite/gcc.dg/graphite/scop-13.c: Same. | |
4957 | * testsuite/gcc.dg/graphite/scop-matmult.c: Same. | |
4958 | * testsuite/gcc.dg/graphite/scop-14.c: Same. | |
4959 | * testsuite/gcc.dg/graphite/scop-15.c: Same. | |
4960 | * testsuite/gcc.dg/graphite/block-0.c: Same. | |
4961 | * testsuite/gcc.dg/graphite/scop-16.c: Same. | |
4962 | * testsuite/gcc.dg/graphite/block-1.c: Same. | |
4963 | * testsuite/gcc.dg/graphite/scop-17.c: Same. | |
4964 | * testsuite/gcc.dg/graphite/scop-18.c: Same. | |
4965 | * testsuite/gfortran.dg/graphite/block-1.f90: Same. | |
4966 | * testsuite/gfortran.dg/graphite/scop-1.f: Same. | |
4967 | * testsuite/gfortran.dg/graphite/block-2.f: Same. | |
4968 | ||
4969 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
4970 | ||
4971 | * graphite.c: Fix some XXX comments. | |
4972 | (build_scop_dynamic_schedules): Removed. | |
4973 | ||
4974 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
4975 | ||
4976 | * graphite.h (scop_max_loop_depth): Moved... | |
4977 | * graphite.c (scop_max_loop_depth): ...here. | |
4978 | (remove_all_edges_1): New. | |
4979 | (remove_all_edges): Factored code. | |
4980 | (remove_cond_exprs): Check only the last statement for | |
4981 | a GIMPLE_COND expression. | |
4982 | ||
4983 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
4984 | ||
4985 | * graphite.c (scan_tree_for_params): Early return when the | |
4986 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
4987 | (find_scop_parameters): Factor out code. | |
4988 | (graphite_trans_bb_strip_mine): Remove dead code. | |
4989 | ||
4990 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
4991 | ||
4992 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
4993 | graphite_trans_bb_move_loop): Factor asserts. | |
4994 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
4995 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
4996 | ||
4997 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
4998 | ||
4999 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
5000 | create_loops_mapping_num, debug_loop_mapping_1, | |
5001 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
5002 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
5003 | graphite_loops_mapping_add_child_num, | |
5004 | graphite_loops_mapping_insert_child, | |
5005 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
5006 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
5007 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
5008 | create_num_from_index, get_num_from_index, | |
5009 | swap_loop_mapped_depth): Removed. | |
5010 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
5011 | (free_scop): Do not call free_loops_mapping. | |
5012 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
5013 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
5014 | get_loop_mapped_depth. | |
5015 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
5016 | (graphite_trans_bb_strip_mine): Same. | |
5017 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
5018 | (struct scop): Remove field loops_mapping. | |
5019 | ||
5020 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5021 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5022 | ||
5023 | * graphite.c (scop_record_loop): Factor out one level of the | |
5024 | condition by early return. | |
5025 | (build_scop_loop_nests): Format following FSF coding style. | |
5026 | (build_scop_dynamic_schedules): Factor out code. | |
5027 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
5028 | ||
5029 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5030 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5031 | ||
5032 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
5033 | assignments that are not handled as simple operands for now. | |
5034 | ||
5035 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5036 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5037 | ||
5038 | * graphite.c (build_scop_bbs): Factor up code. | |
5039 | ||
5040 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5041 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5042 | ||
5043 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
5044 | of the loop. | |
5045 | (enum gbb_type): New. Group all the GBB_* types under it. | |
5046 | (is_loop_exit): Moved... | |
5047 | (end_scop): Enable BB spliting. | |
5048 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
5049 | * cfgloop.h (is_loop_exit): Declared. | |
5050 | ||
5051 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5052 | ||
5053 | * doc/invoke.texi: Remove strides from examples containing | |
5054 | DO loops when the strides are equal to 1. | |
5055 | ||
5056 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
5057 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5058 | ||
5059 | * graphite.c (graphite_trans_scop_block): Or the result with | |
5060 | the result from graphite_trans_loop_block. | |
5061 | * testsuite/gcc.dg/graphite/block-1.c: New. | |
5062 | * testsuite/gfortran.dg/graphite/block-1.f90: New. | |
5063 | * testsuite/gfortran.dg/graphite/block-2.f: New. | |
5064 | ||
5065 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5066 | ||
5067 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
5068 | and cloog_finalize. | |
5069 | ||
5070 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5071 | ||
5072 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
5073 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
5074 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
5075 | (is_simple_operand): Call stmt_simple_memref_p. | |
5076 | ||
5077 | * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not | |
5078 | using pointer arithmetic, as this is optimized by PRE and | |
5079 | makes the code too difficult to analyze. | |
5080 | ||
5081 | * testsuite/gcc.dg/graphite/scop-18.c: Same. | |
5082 | ||
5083 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
5084 | ||
5085 | * gdbinit.in (pgg): New. | |
5086 | ||
5087 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
5088 | ||
5089 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
5090 | ||
5091 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
5092 | ||
5093 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
5094 | ||
5095 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
5096 | ||
5097 | * graphite.c (graphite_trans_bb_block): Remove check for | |
5098 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
5099 | Check if loop blocking is profitable for every loop, before applying | |
5100 | the changes. | |
5101 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
5102 | if flag_loop_block is set. | |
5103 | ||
5104 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
5105 | ||
5106 | * graphite.c: Add some more documentation for the loop | |
5107 | mapping. | |
5108 | ||
5109 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
5110 | ||
5111 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
5112 | * graphite.c: Format on less than 80 columns. | |
5113 | * graphite.h: Same. | |
5114 | ||
5115 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
5116 | ||
5117 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
5118 | ||
5119 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
5120 | ||
5121 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
5122 | floop-interchange): Update documentation with examples. | |
5123 | ||
5124 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
5125 | ||
5126 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
5127 | add_referenced_var. | |
5128 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
5129 | ||
5130 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
5131 | ||
5132 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
5133 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
5134 | * tree-scalar-evolution.c: Revert useless changes. | |
5135 | * tree-phinodes.c: Same. | |
5136 | * cfghooks.c: Same. | |
5137 | * vec.h: Same. | |
5138 | * tree-vectorizer.h: Same. | |
5139 | * tree-flow.h: Same. | |
5140 | * tree-cfg.c: Same. | |
5141 | * common.opt (fgraphite): Update documentation. | |
5142 | ||
5143 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
5144 | ||
5145 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
5146 | -floop-interchange): Add more text for explaining what each of these | |
5147 | flags is doing. | |
5148 | * tree-into-ssa.c (gimple_vec): Moved to... | |
5149 | * graphite.c: Include gimple.h. | |
5150 | (gimple_vec): Moved to... | |
5151 | (del_loop_to_cloog_loop): Removed. | |
5152 | (loop_affine_expr): Do not call create_data_ref when the | |
5153 | operand is a constant. | |
5154 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
5155 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
5156 | * gimple.h (gimple_vec): ... here. | |
5157 | ||
5158 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5159 | ||
5160 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
5161 | latch executions. | |
5162 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
5163 | ||
5164 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5165 | ||
5166 | * graphite.c (add_conditions_to_domain): New. | |
5167 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
5168 | (set_cloog_options): Allow to disable optimizations. | |
5169 | ||
5170 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5171 | ||
5172 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
5173 | Do not use walk_dominator_tree. | |
5174 | (find_scop_parameters): Do not use walk_dominator_tree. | |
5175 | ||
5176 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5177 | ||
5178 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
5179 | (idx_record_params): Adapt. | |
5180 | * graphite.h (scop_gimple_loop_depth): New. | |
5181 | ||
5182 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5183 | ||
5184 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
5185 | (scan_tree_for_params): Remove value_init. | |
5186 | (build_scop_context): Remove value_init. | |
5187 | (build_loop_iteration_domains): Remove value_init. | |
5188 | (schedule_to_scattering): Remove value_init. | |
5189 | (graphite_trans_bb_strip_mine): Remove value_init. | |
5190 | ||
5191 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5192 | ||
5193 | * gcc/graphite.c (limit_scops): New. | |
5194 | (graphite_transform_loops): Add limit SCoPs. | |
5195 | * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs. | |
5196 | * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
5197 | * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
5198 | * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
5199 | * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
5200 | * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
5201 | * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
5202 | * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
5203 | * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
5204 | Change loop numbers. | |
5205 | * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs. | |
5206 | Change loop numbers. | |
5207 | * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs. | |
5208 | * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
5209 | * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
5210 | * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
5211 | * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
5212 | * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
5213 | * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
5214 | * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
5215 | * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
5216 | * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
5217 | ||
5218 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5219 | ||
5220 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
5221 | ||
5222 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
5223 | ||
5224 | * graphite.c (free_loops_mapping): New. | |
5225 | (stmt_simple_for_scop_p): Fix typo. | |
5226 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
5227 | broke polyhedron. | |
5228 | (free_graphite_bb): Fix some memleaks. | |
5229 | (free_scop): Fix some memleaks. | |
5230 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
5231 | (find_params_in_bb): Fix some memleaks. | |
5232 | (clast_to_gcc_expression): Fix warning. | |
5233 | ||
5234 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
5235 | ||
5236 | * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit. | |
5237 | * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
5238 | ||
5239 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
5240 | ||
5241 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
5242 | Move code ifdef-ed HAVE_cloog... | |
5243 | * graphite.c: Include toplev.h. | |
5244 | ... here. | |
5245 | * Makefile.in (OBJS-common): Always build graphite.o. | |
5246 | (BACKEND): Remove @GRAPHITE@. | |
5247 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
5248 | (graphite.o): Depend on TOPLEV_H. | |
5249 | ||
5250 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
5251 | ||
5252 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
5253 | Remove typo left from polylib to ppl conversion. | |
5254 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
5255 | ||
5256 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
5257 | ||
5258 | * toplev.c (process_options): Move the graphite loop optimization | |
5259 | flags... | |
5260 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
5261 | When not configured with CLooG, print to dump_file that | |
5262 | Graphite transforms were not performed. | |
5263 | * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): | |
5264 | New. | |
5265 | * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use | |
5266 | scan-graphite-dump-times. | |
5267 | ||
5268 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
5269 | ||
5270 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
5271 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
5272 | ||
5273 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
5274 | Jan Sjodin <jan.sjodin@amd.com> | |
5275 | ||
5276 | * configure: Regenerated. | |
5277 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
5278 | * config.in (HAVE_polylib): Removed. | |
5279 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
5280 | (PPLLIBS, PPLINC): Added. | |
5281 | * graphite.c: Replace unsigned with int wherever possible. | |
5282 | Don't access Cloog's data structures, but use accessor functions. | |
5283 | Clast's stmt->type is now implemented as a vtable: change the | |
5284 | switches of stmt->type into ifs. | |
5285 | (polylib/polylibgmp.h): Don't include. | |
5286 | (initialize_dependence_polyhedron, | |
5287 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
5288 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
5289 | dump_dependence_graph): Removed until this code is cleaned up | |
5290 | or ported to Cloog. | |
5291 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
5292 | (POLYLIBINC): Renamed PPLINC. | |
5293 | ||
5294 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
5295 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5296 | Jan Sjodin <jan.sjodin@amd.com> | |
5297 | ||
5298 | Finish the merge and tuplification of graphite. | |
5299 | ||
5300 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
5301 | Jan Sjodin <jan.sjodin@amd.com> | |
5302 | ||
5303 | Partial merge from mainline (138072:138275). | |
5304 | * graphite.c still has to be tuplified. | |
5305 | ||
5306 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
5307 | ||
5308 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
5309 | (create_num_from_index): New. | |
5310 | (get_num_from_index): Also pass in the graphite BB. | |
5311 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
5312 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
5313 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
5314 | (is_interchange_valid): Return false when failing. | |
5315 | * graphite.h (struct num_map): New. | |
5316 | (struct graphite_bb): New field num_map. | |
5317 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
5318 | ||
5319 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5320 | ||
5321 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
5322 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
5323 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
5324 | {<, <=, >, >=}. | |
5325 | ||
5326 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
5327 | ||
5328 | * graphite.h (struct scop): Removed new_ivs field. | |
5329 | (SCOP_NEWIVS): Deleted. | |
5330 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
5331 | clast_to_gcc_expression, graphite_create_new_loop): | |
5332 | Removed use of new_ivs. | |
5333 | ||
5334 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
5335 | ||
5336 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
5337 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
5338 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
5339 | (get_loop_mapping_for_num, | |
5340 | graphite_loops_mapping_add_child, | |
5341 | graphite_loops_mapping_add_child_num, | |
5342 | graphite_loops_mapping_insert_child, | |
5343 | graphite_loops_mapping_parent, | |
5344 | split_loop_mapped_depth_for_num, | |
5345 | loop_mapped_depth_split_loop): New. | |
5346 | (increment_loop_mapped_depths): Removed. | |
5347 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
5348 | (new_scop): Call create_loops_mapping. | |
5349 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
5350 | (translate_clast): Pass the old loop father in parameter, and pass | |
5351 | it to get_old_iv_from_ssa_name. | |
5352 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
5353 | can_generate_code, can_generate_for_scop): New. | |
5354 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
5355 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
5356 | ||
5357 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
5358 | ||
5359 | Reverted all the changes related to the streamization and | |
5360 | loop fusion. | |
5361 | These changes are now tracked in the streamization branch. | |
5362 | ||
5363 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
5364 | Jan Sjodin <jan.sjodin@amd.com> | |
5365 | ||
5366 | * graphite.c (gbb_compare): Correctly constify. | |
5367 | (gbb_can_be_ignored): Indent. | |
5368 | (graphite_trans_scop_swap_1and2): Add legality check. | |
5369 | Remove dead FIXMEs. | |
5370 | ||
5371 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
5372 | ||
5373 | Remove fallouts from "Reverted the Condate changes". | |
5374 | * tree.h: Remove unused decl. | |
5375 | * testsuite/gcc.dg/tree-checker: Same. | |
5376 | * timevar.def: Remove counter. | |
5377 | ||
5378 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
5379 | ||
5380 | * Merge from mainline (135673:138072). | |
5381 | ||
5382 | Reverted the MIRO changes (from 2008-04-05) that are now | |
5383 | tracked in the miro branch. | |
5384 | * tree-bounds.c: Removed. | |
5385 | * tree-bounds.h: Removed. | |
5386 | ||
5387 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
5388 | are now tracked in the condate branch. | |
5389 | * tree-check.c: Removed. | |
5390 | * tree-match.c: Removed. | |
5391 | * condate.y: Removed. | |
5392 | ||
5393 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5394 | ||
5395 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
5396 | and -floop-interchange. | |
5397 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
5398 | graphite loop optimization flags is turned on. | |
5399 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
5400 | flag_loop_strip_mine and flag_loop_interchange checks before | |
5401 | optimizations. | |
5402 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
5403 | -floop-strip-mine and -floop-interchange. | |
5404 | * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove | |
5405 | -fgraphite. | |
5406 | * testsuite/gcc.dg/graphite/scop-16.c: Ditto. | |
5407 | * testsuite/gcc.dg/graphite/scop-17.c: Ditto. | |
5408 | * testsuite/gcc.dg/graphite/scop-18.c: Ditto. | |
5409 | ||
5410 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
5411 | Sebastian Pop <sebastian.pop@amd.com> | |
5412 | ||
5413 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
5414 | (create_empty_loop_on_edge): More fixes. | |
5415 | * tree-phinodes.c (resize_phi_node): Extern. | |
5416 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
5417 | * cfghooks.c (update_dominator_information): New split from | |
5418 | split_edge. | |
5419 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
5420 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
5421 | successor of the function entry block. | |
5422 | ||
5423 | * graphite.c: Include pointer-set.h. | |
5424 | (debug_loop_mapping, increment_loop_mapped_depths, | |
5425 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
5426 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
5427 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
5428 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
5429 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
5430 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
5431 | get_old_iv_from_ssa_name): New. | |
5432 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
5433 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
5434 | (scop_record_loop): Record old ivs. | |
5435 | (create_var_name): Removed. | |
5436 | (initialize_cloog_names): Allocate double space in case strip mine | |
5437 | applies to all loops once. | |
5438 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
5439 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
5440 | translation. | |
5441 | (graphite_create_new_loop): Pass in ivstack. | |
5442 | (remove_all_edges): Pass in the construction_edge. | |
5443 | (graphite_remove_iv): Removed. | |
5444 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
5445 | remove_cond_exprs): Rewritten. | |
5446 | (move_phi_nodes): New. | |
5447 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
5448 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
5449 | (set_cloog_options, debug_clast_stmt): New. | |
5450 | (find_transform): Use set_cloog_options. | |
5451 | (outermost_loop_layer): Removed. | |
5452 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
5453 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
5454 | mark_old_loops, remove_dead_loops): New. | |
5455 | (gloog): Rewritten. | |
5456 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
5457 | (const_column_index, get_first_matching_sign_row_index, | |
5458 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
5459 | get_upper_bound): New. | |
5460 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
5461 | ||
5462 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
5463 | (struct name_tree): Add a loop field. | |
5464 | (struct scop): Add a graphite_loops_mapping field. | |
5465 | (SCOP_LOOPS_MAPPING): New. | |
5466 | (debug_clast_stmt): Declare. | |
5467 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
5468 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
5469 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
5470 | (create_empty_loop_on_edge): Updated. | |
5471 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
5472 | rename_variables_in_bb): Declare. | |
5473 | * tree-cfg.c (remove_bb): Extern. | |
5474 | ||
5475 | * testsuite/gcc.dg/graphite/block-0.c: New. | |
5476 | ||
5477 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
5478 | Sebastian Pop <sebastian.pop@amd.com> | |
5479 | ||
5480 | * graphite.c (strip_mine_profitable_p): New. | |
5481 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
5482 | ||
5483 | * testsuite/gcc.dg/graphite/scop-18.c: New. | |
5484 | * testsuite/gcc.dg/graphite/scop-17.c: Fixed. | |
5485 | * testsuite/gcc.dg/graphite/scop-16.c: Fixed. | |
5486 | ||
5487 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
5488 | Jan Sjodin <jan.sjodin@amd.com> | |
5489 | Sebastian Pop <sebastian.pop@amd.com> | |
5490 | ||
5491 | * graphite.c (is_interchange_valid): New. | |
5492 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
5493 | of interchange. | |
5494 | ||
5495 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
5496 | outer_most_loop, gbb_outer_most_loop_index): New. | |
5497 | ||
5498 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
5499 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
5500 | * testsuite/gcc.dg/graphite/scop-16.c: New. | |
5501 | * testsuite/gcc.dg/graphite/scop-17.c: New. | |
5502 | ||
5503 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5504 | ||
5505 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
5506 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
5507 | ||
5508 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5509 | ||
5510 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
5511 | (scopdet_info): Add. | |
5512 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
5513 | (build_scops_1): Cleanup, bugfixes. | |
5514 | (build_scops): Cleanup. | |
5515 | ||
5516 | * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code. | |
5517 | * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
5518 | ||
5519 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
5520 | ||
5521 | * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case. | |
5522 | ||
5523 | * testsuite/gfortran.dg/graphite/graphite.exp: Use | |
5524 | DEFAULT_GRAPHITE_FLAGS. | |
5525 | ||
5526 | * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case. | |
5527 | ||
5528 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
5529 | ||
5530 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
5531 | MULT_EXPR parameter is negative. | |
5532 | ||
5533 | * testsuite/gfortran.dg/graphite/scop-1.f: New. | |
5534 | ||
5535 | * testsuite/gfortran.dg/graphite/graphite.exp: New. | |
5536 | ||
5537 | * testsuite/gcc.dg/graphite/scop-15.c: New. | |
5538 | ||
5539 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
5540 | ||
5541 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
5542 | ||
5543 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5544 | ||
5545 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
5546 | graphite_swap_loops. | |
5547 | (graphite_trans_bb_move_loop): New. | |
5548 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
5549 | (graphite_trans_bb_block): New. | |
5550 | (graphite_trans_loop_block): New. | |
5551 | (graphite_trans_scop_swap_1and2): Rename from | |
5552 | graphite_trans_swap_1and2. | |
5553 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
5554 | (graphite_trans_scop_block): New. | |
5555 | (graphite_apply_transformations): Rename from | |
5556 | graphite_transformations. | |
5557 | ||
5558 | * testsuite/gcc.dg/graphite/scop-matmult.c: New. | |
5559 | ||
5560 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5561 | ||
5562 | * graphite.c (gbb_compare): New. | |
5563 | (graphite_sort_gbbs): New. | |
5564 | (gbb_can_be_ignored): New. | |
5565 | (scop_remove_ignoreable_gbbs): New. | |
5566 | (graphite_transformations): Cleanup and add | |
5567 | scop_remove_ignoreable_gbbs. | |
5568 | * lambda.h (lambda_vector_compare): New. | |
5569 | ||
5570 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5571 | ||
5572 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
5573 | (graphite_swap_loops): int -> unsigned | |
5574 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
5575 | (graphite_transformations): New. | |
5576 | (graphite_transform_loops): Move to graphite_transformations. | |
5577 | * graphite.h (gbb_nb_loops): Return unsigned. | |
5578 | ||
5579 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5580 | ||
5581 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
5582 | the domain matrix. This makes scop-0.c work again. | |
5583 | ||
5584 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
5585 | ||
5586 | * graphite.h: Adjust copyright to GPLv3. | |
5587 | * graphite.c: Likewise. | |
5588 | (stmt_simple_memref_for_scop_p): Split out from ... | |
5589 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
5590 | and simplify. | |
5591 | (get_bb_type): Optimize. | |
5592 | (is_pred): Remove. | |
5593 | (is_bb_addable): Fix memleak, replace is_pred call with | |
5594 | single_pred. | |
5595 | (build_scops): Use current_loops. | |
5596 | (param_index): Fix memleak. | |
5597 | ||
5598 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
5599 | ||
5600 | * graphite.c: Fix formatting. | |
5601 | ||
5602 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
5603 | ||
5604 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
5605 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
5606 | (create_var_name, save_var_name): Newly defined functions. | |
5607 | (initialize_cloog_names): Part of the code factored out to | |
5608 | save_var_name. | |
5609 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
5610 | in clast_reduction statement. | |
5611 | (graphite_create_new_loop): Now takes a new parameter | |
5612 | for outer_loop. | |
5613 | (translate_clast): Now also takes the context_loop and bb_exit | |
5614 | parameters. Rewritten the code so that it creates a gimple code | |
5615 | inside the given context. | |
5616 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
5617 | remove_cond_expr, disconnect_cond_expr, | |
5618 | disconnect_virtual_phi_nodes): Newly defined functions. | |
5619 | * graphite.h (struct scop): added old_ivs vector. | |
5620 | SCOP_OLDIVS: New macro. | |
5621 | ||
5622 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
5623 | ||
5624 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
5625 | ||
5626 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
5627 | ||
5628 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
5629 | (create_empty_loop_on_edge): Defined. | |
5630 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
5631 | instead of void. | |
5632 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
5633 | (update_dominators_in_loop): Declared as extern | |
5634 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
5635 | ||
5636 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
5637 | ||
5638 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
5639 | in SCoP domain. | |
5640 | (initialize_cloog_names): Allow changing number of loops. | |
5641 | (build_cloog_prog): Simplify. | |
5642 | (find_transform): Enable cloog option --strides. | |
5643 | (graphite_swap_loops): New. | |
5644 | (graphite_strip_mine_loop): New. | |
5645 | (graphite_trans_swap_1and2): New. | |
5646 | (graphite_trans_strip): New. | |
5647 | (graphite_transform_loops): Add graphite_trans_strip. | |
5648 | * graphite.h (scop_max_loop_depth): New. | |
5649 | ||
5650 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
5651 | ||
5652 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
5653 | line. (Fixes compile) | |
5654 | ||
5655 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
5656 | ||
5657 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
5658 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
5659 | (build_bb_loops): New. | |
5660 | (graphite_transform_loops): Add build_bb_loops. | |
5661 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
5662 | numbers. | |
5663 | * graphite.h (graphite_bb): Add loops. | |
5664 | (gbb_nb_loops): New. | |
5665 | (gbb_loop_at_index): New. | |
5666 | (gbb_loop_index): New. | |
5667 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
5668 | using nb_params_in_scop. | |
5669 | ||
5670 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
5671 | ||
5672 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
5673 | (build_scop_canonical_schedules): Build minimized schedule. | |
5674 | (schedule_to_scattering): Adapt to minimized schedule. | |
5675 | * graphite.h (graphite_bb): Add/Update descriptions. | |
5676 | ||
5677 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
5678 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5679 | ||
5680 | * graphite.c (print_graphite_bb): Add condition printing. | |
5681 | (dump_value): New. | |
5682 | (dump_gbb_conditions): New. | |
5683 | (build_scop_conditions_1): New. | |
5684 | (build_scop_conditions): New. | |
5685 | * graphite.h (graphite_bb): Add conditions. | |
5686 | ||
5687 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
5688 | ||
5689 | * graphite.c (print_graphite_bb): | |
5690 | (free_graphite_bb): New. | |
5691 | (free_scop): Free bbs. | |
5692 | (get_bb_type): Free doms. | |
5693 | (build_scop_context): Free context matrix. | |
5694 | (build_loop_iteration_domains): Remove unused code. | |
5695 | (build_cloog_prog): Free scattering function and blocklist. | |
5696 | (find_transform): Free options. | |
5697 | ||
5698 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
5699 | ||
5700 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
5701 | Remove unnecessery cloog data structures. Make a copy of the domain | |
5702 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
5703 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
5704 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
5705 | used. | |
5706 | (build_scop_iteration_domain): Remove unnecessary cloog | |
5707 | data structures. Fix memory leaks. | |
5708 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
5709 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
5710 | ||
5711 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
5712 | ||
5713 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
5714 | ||
5715 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
5716 | ||
5717 | * graphite.c (end_scop): Style fix. | |
5718 | (schedule_to_scattering): Style and comment fix. | |
5719 | ||
5720 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
5721 | * graphite.c (print_graphite_bb): Fix definiton of | |
5722 | schedule_to_scattering. | |
5723 | (initialize_cloog_names): Change nb_scattdims to max loop | |
5724 | depth in SCoP. | |
5725 | (schedule_to_scattering): Take parameter for number of scattering | |
5726 | dimensions. | |
5727 | (build_cloog_prog): Only build as much scattering dimensions as | |
5728 | necessary. | |
5729 | ||
5730 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
5731 | ||
5732 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
5733 | in polyhedron/aermod.f90. | |
5734 | ||
5735 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5736 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
5737 | Harsha Jagasia <harsha.jagasia@amd.com> | |
5738 | ||
5739 | * graphite.c (is_bb_addable): Fix segfault. | |
5740 | ||
5741 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5742 | ||
5743 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
5744 | with multiple exits and conditional handling in edge cases. | |
5745 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
5746 | ||
5747 | * testsuite/gcc.dg/graphite/scop-14.c: New. | |
5748 | ||
5749 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
5750 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
5751 | ||
5752 | * graphite.c (is_bb_addable): Add more comments and enhance | |
5753 | readablity of the source code. Fix memory leak. | |
5754 | (is_loop_exit): Fix memory leak. | |
5755 | ||
5756 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
5757 | ||
5758 | * graphite.c (first_loop_in_scop): Deleted. | |
5759 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
5760 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
5761 | all loops in the first layer. | |
5762 | ||
5763 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
5764 | ||
5765 | * graphite.c (scan_tree_for_params): Change the way params are | |
5766 | added to be indepenent of the number of loops. | |
5767 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
5768 | handling. | |
5769 | (build_cloog_prog): Revert to short matrix format. | |
5770 | ||
5771 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
5772 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
5773 | ||
5774 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
5775 | warning. | |
5776 | ||
5777 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
5778 | ||
5779 | * graphite.c (nb_data_refs_in_scop): New. | |
5780 | (graphite_transform_loops): Print more stats: number of | |
5781 | loops, basic blocks and data references per scop. | |
5782 | ||
5783 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
5784 | Jan Sjodin <jan.sjodin@amd.com> | |
5785 | ||
5786 | * graphite.c (loop_affine_expr, idx_record_params, | |
5787 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
5788 | instead of instantiate_parameters. | |
5789 | ||
5790 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5791 | ||
5792 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
5793 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
5794 | cleanup. | |
5795 | ||
5796 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5797 | ||
5798 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
5799 | are contained completely in the SCoP. | |
5800 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
5801 | and the domains are fixed. | |
5802 | (build_scop_canonical_schedules): Add support for bbs not contained | |
5803 | in any SCoP. | |
5804 | ||
5805 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5806 | ||
5807 | * graphite.h (scop_contains_loop): Update comments to match | |
5808 | the actual behavior. | |
5809 | (scop_contains_loop): New. | |
5810 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
5811 | ||
5812 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
5813 | ||
5814 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
5815 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
5816 | as GBB_COND_HEADER. | |
5817 | ||
5818 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
5819 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5820 | ||
5821 | * graphite.c (graphite_transform_loops): Early return when | |
5822 | there are no loops in the function. | |
5823 | ||
5824 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
5825 | Jan Sjodin <jan.sjodin@amd.com> | |
5826 | ||
5827 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
5828 | offset of the last loop. | |
5829 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
5830 | ||
5831 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
5832 | Jan Sjodin <jan.sjodin@amd.com> | |
5833 | ||
5834 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
5835 | invariant_in_scop_p): Removed. | |
5836 | (scan_tree_for_params): Can be used with no constraint | |
5837 | matrix for gathering parameters. | |
5838 | (idx_record_params): Don't use idx_record_param, instead use | |
5839 | scan_tree_for_params. | |
5840 | (find_scop_parameters): Same. | |
5841 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
5842 | Fix the size of loop domains. | |
5843 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
5844 | (find_transform): Enable build_cloog_prog. | |
5845 | ||
5846 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
5847 | Jan Sjodin <jan.sjodin@amd.com> | |
5848 | ||
5849 | * graphite.c (schedule_to_scattering): Make scattering domains | |
5850 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
5851 | ||
5852 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
5853 | Jan Sjodin <jan.sjodin@amd.com> | |
5854 | ||
5855 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
5856 | translation of the scheduling function to scattering. | |
5857 | (build_cloog_prog): Call schedule_to_scattering only once. | |
5858 | * graphite.h (scop_loop_index): Do not fail for loops not | |
5859 | in the scop: return -1. | |
5860 | ||
5861 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5862 | ||
5863 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
5864 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
5865 | (setup_cloog_loop): Export GBB_DOMAIN. | |
5866 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
5867 | able to rebuild the original control flow. | |
5868 | * graphite.h (graphite_bb): Add domain field and access macro. | |
5869 | (GBB_DOMAIN): New. | |
5870 | ||
5871 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
5872 | ||
5873 | * graphite.c (debug_gbb): New. | |
5874 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
5875 | (build_scop_bbs): Reimplemented. | |
5876 | (dfs_bb_in_scop_p): Removed. | |
5877 | (build_scop_loop_nests): Reorder loops inserted in | |
5878 | SCOP_LOOP_NEST: outer loops should come first. | |
5879 | (build_scop_canonical_schedules): Reinitialize at zero | |
5880 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
5881 | that have already been parsed. | |
5882 | ||
5883 | * graphite.h (debug_gbb): Declared. | |
5884 | ||
5885 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
5886 | Jan Sjodin <jan.sjodin@amd.com> | |
5887 | ||
5888 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
5889 | (graphite_loop_to_gcc_loop): Removed. | |
5890 | (remove_all_edges): New. | |
5891 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
5892 | (gloog): Remove useless code. | |
5893 | ||
5894 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5895 | ||
5896 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
5897 | loops with one or multiple exits. | |
5898 | (is_loop_exit): New. | |
5899 | (is_pred): New. | |
5900 | (is_bb_addable): Rework condition handling, now support for case | |
5901 | case statements and loops with multiple exits. | |
5902 | ||
5903 | * testsuite/gcc.dg/graphite/scop-11.c: New. | |
5904 | * testsuite/gcc.dg/graphite/scop-12.c: New. | |
5905 | * testsuite/gcc.dg/graphite/scop-13.c: New. | |
5906 | ||
5907 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
5908 | ||
5909 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
5910 | we have too many colors. | |
5911 | ||
5912 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
5913 | ||
5914 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
5915 | * tree-pass.h (pass_loop_fusion): Declared. | |
5916 | * tree-loop-fusion.c: New. | |
5917 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
5918 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
5919 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
5920 | * common.opt (ftree-loop-fusion): Declared. | |
5921 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
5922 | ||
5923 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
5924 | ||
5925 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
5926 | ||
5927 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
5928 | ||
5929 | * Merge from mainline (130800:135673). | |
5930 | ||
5931 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
5932 | ||
5933 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
5934 | Update dominators after splitting. | |
5935 | ||
5936 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
5937 | ||
5938 | * graphite.c (is_bb_addable): Return the harmful statement. | |
5939 | Factor up some code. | |
5940 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
5941 | (build_scops_1): Call end_scop. | |
5942 | ||
5943 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
5944 | ||
5945 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
5946 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
5947 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
5948 | build_scops_1): Removed. | |
5949 | (build_scops_2): Renamed build_scops_1. | |
5950 | ||
5951 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
5952 | ||
5953 | * graphite.c: Fix formatting. | |
5954 | ||
5955 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
5956 | ||
5957 | * graphite.c (get_bb_type): New. | |
5958 | (move_scops): New. | |
5959 | (build_scops_2): New. | |
5960 | (is_bb_addable): New. | |
5961 | (build_scops): Switch the scop detection. | |
5962 | (build_scop_bbs): Add entry bb to scop. | |
5963 | * graphite.h (struct scop): Update comment. | |
5964 | ||
5965 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
5966 | ||
5967 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
5968 | more colors. | |
5969 | ||
5970 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
5971 | ||
5972 | * testsuite/gcc.dg/graphite/scop-1.c: Update. | |
5973 | * testsuite/gcc.dg/graphite/scop-2.c: Update. | |
5974 | * testsuite/gcc.dg/graphite/scop-4.c: Update. | |
5975 | * testsuite/gcc.dg/graphite/scop-5.c: Add. | |
5976 | * testsuite/gcc.dg/graphite/scop-6.c: Add. | |
5977 | ||
5978 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
5979 | ||
5980 | * testsuite/gcc.dg/graphite/scop-0.c: Add. | |
5981 | * testsuite/gcc.dg/graphite/scop-7.c: Add. | |
5982 | * testsuite/gcc.dg/graphite/scop-8.c: Add. | |
5983 | * testsuite/gcc.dg/graphite/scop-9.c: Add. | |
5984 | * testsuite/gcc.dg/graphite/scop-10.c: Add. | |
5985 | ||
5986 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
5987 | ||
5988 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
5989 | Check affine expressions depending on the outermost loop | |
5990 | instead of a scop. | |
5991 | (stmt_simple_for_scop_p): Same. | |
5992 | (harmfule_stmt_in_scop): Same. | |
5993 | ||
5994 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
5995 | ||
5996 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
5997 | mark entry and exit, that are not part of the SCoP and update HTML | |
5998 | formatting. | |
5999 | ||
6000 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
6001 | ||
6002 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
6003 | harmful_stmt_in_bb. | |
6004 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
6005 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
6006 | (all_preds_visited_p, all_succs_visited_p, | |
6007 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
6008 | scop_end_loop): New. | |
6009 | (build_scops): Do not use dfs_enumerate_from. | |
6010 | ||
6011 | * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated. | |
6012 | ||
6013 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
6014 | ||
6015 | * graphite.c: Add comments to functions that are missing a | |
6016 | description. | |
6017 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
6018 | ||
6019 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
6020 | ||
6021 | * graphite.c (nb_params_in_scop): Moved... | |
6022 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
6023 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
6024 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
6025 | (graphite_create_iv): Return the new name of the IV. | |
6026 | (find_transform): Set options->esp and options->cpp. | |
6027 | (gloog): Comment out the invalidation of the old loop code. | |
6028 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
6029 | nb_params_in_scop. | |
6030 | ||
6031 | * graphite.h (nb_params_in_scop): ... here. | |
6032 | (scop_nb_params): Removed. | |
6033 | (loop_domain_dim): Return something even when the loop was not | |
6034 | found in the hash table: avoid ICEing on all the graphite.exp | |
6035 | testcases. | |
6036 | ||
6037 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6038 | ||
6039 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
6040 | ||
6041 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
6042 | according to nesting level. | |
6043 | (find_scop_parameters): Call instantiate_parameters. | |
6044 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
6045 | Inner loop bound can depend on outer loop induction variable. | |
6046 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
6047 | instantiate_parameters with respect to outermost_loop_in_scop. | |
6048 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
6049 | graphite.h. | |
6050 | (create_empty_loop): Function loopify should be given edge | |
6051 | probability, instead of edge frequency. Dominance relation from | |
6052 | switch_bb to loop_header. | |
6053 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
6054 | (gloog): New functionality for removing old loop. | |
6055 | (test_dependence): Factored out from build_rdg_all_levels. | |
6056 | (build_rdg_all_levels): Dependence testing factored out to | |
6057 | test_dependence function. | |
6058 | ||
6059 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
6060 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
6061 | from graphite.c | |
6062 | ||
6063 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
6064 | ||
6065 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
6066 | nb_params_in_scop): Use name_tree map instead of just a tree | |
6067 | for keeping track of the variable name associated to that tree. | |
6068 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
6069 | clast_to_gcc_expression, graphite_create_iv, | |
6070 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
6071 | graphite_stmt_to_gcc_stmt): New. | |
6072 | (gloog): Call these. | |
6073 | * graphite.h (struct name_tree): New. | |
6074 | (struct scop): Use name_tree instead of tree for params. | |
6075 | Store a vector of name_tree for new_ivs. | |
6076 | (SCOP_NEWIVS): New. | |
6077 | (scop_nb_params): Use name_tree instead of tree. | |
6078 | ||
6079 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
6080 | Sebastian Pop <sebastian.pop@amd.com> | |
6081 | ||
6082 | * tree-bounds.c: New. | |
6083 | * tree-bounds.h: New. | |
6084 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
6085 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
6086 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
6087 | flag_mudflap. | |
6088 | * gcc.c: Same. | |
6089 | * toplev.c: Same. | |
6090 | * c-cppbuiltin.c: Same. | |
6091 | * c-pragma.c: Same. | |
6092 | * common.opt: Same. | |
6093 | * varasm.c: Same. | |
6094 | * tree-outof-ssa.c: Same. | |
6095 | * c-common.c: Same. | |
6096 | * Makefile.in: Same. | |
6097 | ||
6098 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
6099 | Sebastian Pop <sebastian.pop@amd.com> | |
6100 | ||
6101 | * tree-loop-distribution.c (remaining_stmts, | |
6102 | upstream_mem_writes): Removed static variables. | |
6103 | (copy_loop_before, create_bb_after_loop, | |
6104 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
6105 | rdg_build_components, rdg_build_partitions, | |
6106 | dump_rdg_partitions): Extern. | |
6107 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
6108 | return a bool. | |
6109 | (already_processed_vertex_p, predecessor_has_mem_write, | |
6110 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
6111 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
6112 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
6113 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
6114 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
6115 | (rdg_component): Moved... | |
6116 | (build_rdg_partition_for_component): Do not aggregate components when | |
6117 | flag_streamize_loops is set. | |
6118 | (gen_sequential_loops): New. | |
6119 | (ldist_gen): Call gen_sequential_loops. | |
6120 | ||
6121 | * tree-pass.h (pass_loop_streamization): Declared. | |
6122 | ||
6123 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
6124 | basic blocks when loops structures exist. | |
6125 | ||
6126 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
6127 | ||
6128 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
6129 | ||
6130 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
6131 | eliminate_local_variables_stmt, eliminate_local_variables, | |
6132 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
6133 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
6134 | of code delimited by two edges in the CFG. | |
6135 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
6136 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
6137 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
6138 | the case of parallelisation of reductions. | |
6139 | (create_loop_fn): Extern. | |
6140 | (create_omp_parallel_region): New. | |
6141 | ||
6142 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
6143 | dump_data_reference for printing dra and drb. | |
6144 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
6145 | RDGE_RELATION. | |
6146 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
6147 | we attach dependence relations on each edge of the RDG. | |
6148 | To be fixed later. | |
6149 | ||
6150 | * tree-data-ref.h (rdg_component): ...here. | |
6151 | (struct rdg_edge): New field ddr_p relation. | |
6152 | (RDGE_RELATION): New. | |
6153 | (create_bb_after_loop, copy_loop_before, | |
6154 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
6155 | rdg_build_partitions, dump_rdg_partitions, | |
6156 | free_rdg_components): Declared. | |
6157 | ||
6158 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
6159 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
6160 | ||
6161 | * tree-loop-streamization.c: New. | |
6162 | ||
6163 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
6164 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
6165 | ||
6166 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
6167 | ||
6168 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
6169 | ||
6170 | * passes.c: Schedule pass_loop_streamization. | |
6171 | ||
6172 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
6173 | ||
6174 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
6175 | update comment. | |
6176 | ||
6177 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
6178 | ||
6179 | * graphite.c (dot_all_scops): Update formatting. | |
6180 | Bbs can now be part of more than one SCoP. | |
6181 | ||
6182 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
6183 | ||
6184 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
6185 | malloc problems. | |
6186 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
6187 | * graphite.h (loop_to_cloog_loop): New. | |
6188 | ||
6189 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6190 | ||
6191 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
6192 | loop_iteration_vector_dim): New. | |
6193 | (build_access_matrix_with_af, build_access_matrix, | |
6194 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
6195 | No longer assume that all iteration domains are of the same | |
6196 | dimensionality. | |
6197 | ||
6198 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
6199 | ||
6200 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
6201 | defined in a loop at depth 0 is invariant. | |
6202 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
6203 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
6204 | be called at loop depth 0. | |
6205 | ||
6206 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
6207 | a parameter. | |
6208 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
6209 | (down_open_scop): Removed. | |
6210 | (loop_in_scop_p): Redefined. | |
6211 | (scop_affine_expr): New argument: scop. | |
6212 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
6213 | a harmful statement ending a scop. | |
6214 | (basic_block_simple_for_scop_p): New argument: scop. | |
6215 | (get_loop_start): Removed. | |
6216 | (new_scop): Initialize SCOP_LOOPS. | |
6217 | (free_scop): Free SCOP_LOOPS. | |
6218 | (succs_at_same_depth, preds_at_same_depth): New. | |
6219 | (end_scop): Test the validity of a scop. | |
6220 | (add_dominators_to_open_scops): New. | |
6221 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
6222 | Add cases for opening and closing multiple scops. | |
6223 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
6224 | depth first order. | |
6225 | (build_graphite_bb): Pass scop directly. | |
6226 | (dfs_bb_in_scop_p): New. | |
6227 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
6228 | several times. | |
6229 | (nb_loops_around_gb): Use loop_in_scop_p. | |
6230 | (schedule_to_scattering): Disabled for the moment the code computing | |
6231 | the "textual order for outer loop". | |
6232 | ||
6233 | * graphite.h (struct scop): New field loops. | |
6234 | (SCOP_LOOPS): New. | |
6235 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
6236 | ||
6237 | * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated. | |
6238 | ||
6239 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
6240 | Sebastian Pop <sebastian.pop@amd.com> | |
6241 | ||
6242 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
6243 | * common.opt (fstreamize-loops): New. | |
6244 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
6245 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
6246 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
6247 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
6248 | ||
6249 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6250 | ||
6251 | * tree-data-ref.c (build_empty_rdg): New. | |
6252 | (build_rdg): Use it. | |
6253 | * tree-data-ref.h (build_empty_rdg): Declared. | |
6254 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
6255 | (find_vertex_for_stmt): Removed. | |
6256 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
6257 | ||
6258 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
6259 | ||
6260 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
6261 | loop tree, also delete basic blocks. | |
6262 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
6263 | processed. | |
6264 | ||
6265 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6266 | ||
6267 | * graphite.c (build_scop_alpha): Removed. | |
6268 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
6269 | and dump_dependence_graph to avoid compiler warnings. | |
6270 | ||
6271 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6272 | ||
6273 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
6274 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
6275 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
6276 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
6277 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
6278 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
6279 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
6280 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
6281 | dump_dependence_graph): New. | |
6282 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
6283 | (GBB_ALPHA): New. | |
6284 | (struct scop): New field loop2cloog_loop. | |
6285 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
6286 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
6287 | ||
6288 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6289 | ||
6290 | * graphite.c (build_graphite_bb): Fix initialization | |
6291 | of the graphite basic block. | |
6292 | ||
6293 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
6294 | ||
6295 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
6296 | loop domain matrix. Pass in the number of loops contained in the | |
6297 | constraint matrix. | |
6298 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
6299 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
6300 | loops that are not surrounding the current loop are not represented | |
6301 | in the domain constraint matrix. | |
6302 | (build_scop_iteration_domain): Initial domain constraint matrix | |
6303 | contains only the eq/ineq, cst, and scop parameters columns. | |
6304 | ||
6305 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6306 | ||
6307 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
6308 | (print_graphite_bb): Print scattering. | |
6309 | ||
6310 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6311 | ||
6312 | * graphite.c (initialize_cloog_names): Initialize names of | |
6313 | scattering variables. | |
6314 | ||
6315 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6316 | ||
6317 | * graphite.c (dot_all_scops_1): Disable debug output while | |
6318 | printing graph. | |
6319 | ||
6320 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6321 | ||
6322 | * graphite.c (find_transform): Change cloog output language to C. | |
6323 | ||
6324 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
6325 | ||
6326 | * tree-loop-distribution.c (generate_memset_zero, | |
6327 | generate_builtin, generate_code_for_partition, | |
6328 | rdg_flag_all_uses): New. | |
6329 | (rdg_flag_uses): Gather in the same partition the statements defining | |
6330 | the VUSES of the current statement. | |
6331 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
6332 | Gather in the same partition not only the stores to the same memory | |
6333 | access, but also the reads. | |
6334 | (ldist_generate_loops): Renamed ldist_gen. | |
6335 | ||
6336 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
6337 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
6338 | ||
6339 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
6340 | next pointer, don't use the inner pointer. | |
6341 | ||
6342 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
6343 | ||
6344 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
6345 | (find_transform): Call dot_all_1. | |
6346 | * graphite.h (dot_all_scops): Declared. | |
6347 | ||
6348 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
6349 | ||
6350 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
6351 | (create_bb_after_loop): New. | |
6352 | (generate_loops_for_partition): Use it. | |
6353 | * testsuite/gfortran.dg/ldist-1.f90: New. | |
6354 | ||
6355 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
6356 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
6357 | ||
6358 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
6359 | ||
6360 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
6361 | ||
6362 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
6363 | ||
6364 | * graphite.c (initialize_cloog_names): Initialize cloog | |
6365 | iterator names. | |
6366 | ||
6367 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
6368 | ||
6369 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
6370 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
6371 | ||
6372 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
6373 | ||
6374 | * Fix merge problems. | |
6375 | ||
6376 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
6377 | ||
6378 | * graphite.c (setup_cloog_loop): Fix typo. | |
6379 | ||
6380 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
6381 | ||
6382 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
6383 | * tree-loop-distribution.c: Reimplemented. | |
6384 | * tree-pass.h (pass_loop_distribution): New. | |
6385 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
6386 | print_loops. | |
6387 | * graphds.h (struct graph): New field indexes. | |
6388 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
6389 | ||
6390 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
6391 | needed. | |
6392 | * tree-vectorizer.c: Same. | |
6393 | (rename_variables_in_loop): Now extern. | |
6394 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
6395 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
6396 | calling redirect_edge_and_branch_force. | |
6397 | ||
6398 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
6399 | ||
6400 | * tree-data-ref.c: Don't include tree-chrec.h. | |
6401 | (debug_data_dependence_relations): New. | |
6402 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
6403 | in the relation. | |
6404 | (same_access_functions): Moved... | |
6405 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
6406 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
6407 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
6408 | struct rdg_vertex_info, ): New. | |
6409 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
6410 | at DDR_REVERSED_P. | |
6411 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
6412 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
6413 | (stmts_from_loop): Don't save LABEL_EXPR. | |
6414 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
6415 | hash_stmt_vertex_del): New. | |
6416 | (build_rdg): Initialize rdg->indexes. | |
6417 | (free_rdg, stores_from_loop, ref_base_address, | |
6418 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
6419 | have_similar_memory_accesses_1, ref_base_address_1, | |
6420 | remove_similar_memory_refs): New. | |
6421 | ||
6422 | * tree-data-ref.h: Include tree-chrec.h. | |
6423 | (debug_data_dependence_relations): Declared. | |
6424 | (same_access_functions): ...here. Now static inline. | |
6425 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
6426 | ddr_dependence_level): New. | |
6427 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
6428 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
6429 | RDG_MEM_READS_STMT): New. | |
6430 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
6431 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
6432 | rdg_vertex_for_stmt): Declared. | |
6433 | (struct rdg_edge): New field level. | |
6434 | (RDGE_LEVEL, free_rdg): New. | |
6435 | (stores_from_loop, remove_similar_memory_refs, | |
6436 | rdg_defs_used_in_other_loops_p, | |
6437 | have_similar_memory_accesses): Declared. | |
6438 | (rdg_has_similar_memory_accesses): New. | |
6439 | ||
6440 | * lambda.h (dependence_level): New. | |
6441 | * common.opt (ftree-loop-distribution): New. | |
6442 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
6443 | (print_loop_ir): Renamed print_loops. | |
6444 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
6445 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
6446 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
6447 | (tree-loop-distribution.o): Added. | |
6448 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
6449 | (mark_virtual_ops_in_bb): New. | |
6450 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
6451 | * passes.c: Scheduled pass_loop_distribution. | |
6452 | ||
6453 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6454 | ||
6455 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
6456 | for polylib format. | |
6457 | (nb_flat_iterator): New. | |
6458 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
6459 | (build_scop_iteration_domain): Correct the number of columns for | |
6460 | polylib format. | |
6461 | ||
6462 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
6463 | ||
6464 | * Merge from mainline (129697:130800). | |
6465 | ||
6466 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
6467 | ||
6468 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
6469 | dominated by SCoP's exit. | |
6470 | (graphite_transform_loops): Compute post dominators. | |
6471 | ||
6472 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
6473 | ||
6474 | * Merge from mainline (127169:129697). | |
6475 | ||
6476 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
6477 | ||
6478 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
6479 | parameter for the basic block that contains the expression. Use | |
6480 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
6481 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
6482 | the expression. | |
6483 | * graphite.h (gbb_loop): New. | |
6484 | (GBB_LOOP): Removed. | |
6485 | ||
6486 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
6487 | ||
6488 | * Makefile.in: Fix merge problem. | |
6489 | ||
6490 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
6491 | ||
6492 | * Merge from mainline (125309:127169). | |
6493 | * tree-loop-distribution.c: Disabled. | |
6494 | ||
6495 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
6496 | ||
6497 | * Merge from mainline (r123693:125309). | |
6498 | ||
6499 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
6500 | ||
6501 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
6502 | correct_modify_p | |
6503 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
6504 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
6505 | instead of MODIFY_EXPR. | |
6506 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
6507 | and push new edges. | |
6508 | ||
6509 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
6510 | ||
6511 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
6512 | VECs for edges and vertices. | |
6513 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
6514 | (RDGV_NB_PARTITIONS): New. | |
6515 | (PRDG_NBV, PRDG_NBE): Removed. | |
6516 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
6517 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
6518 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
6519 | ||
6520 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
6521 | Sebastian Pop <sebpop@gmail.com> | |
6522 | ||
6523 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
6524 | * tree-loop-distribution.c: New file. | |
6525 | * tree-pass.h (pass_loop_distribution): Declared. | |
6526 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
6527 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
6528 | and set reversed_p. | |
6529 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
6530 | (DDR_REVERSED_P): New. | |
6531 | * common.opt (-ftree-loop-distribution): New. | |
6532 | * tree-flow.h (distribute_loops): Declared. | |
6533 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
6534 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
6535 | ||
6536 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6537 | ||
6538 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
6539 | (print_scop): Don't print when scop is NULL. | |
6540 | (build_scop_context, find_transform): Don't output to stderr. | |
6541 | ||
6542 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
6543 | ||
6544 | * tree-data-ref.c: Don't include graphite.h. | |
6545 | Comment out the code for printing data reference's scop. | |
6546 | (build_access_matrix_with_af): Moved... | |
6547 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
6548 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
6549 | (print_graphite_bb): Print basic block's schedule. | |
6550 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
6551 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
6552 | dominated and postdominated by the scop's entry and exit basic blocks. | |
6553 | (function_parameter_p): New. | |
6554 | (invariant_in_scop_p): Use function_parameter_p. | |
6555 | (new_scop, save_scop): New. | |
6556 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
6557 | save_scop. | |
6558 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
6559 | (loop_in_scop_p): New. | |
6560 | (scop_record_loop): Use loop_in_scop_p. | |
6561 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
6562 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
6563 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
6564 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
6565 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
6566 | (struct scop): Add a pointer to cloog's representation of a program. | |
6567 | ||
6568 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
6569 | ||
6570 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
6571 | -ftree-checks-verbose. | |
6572 | * common.opt (flag_tree_check_verbose): Renamed | |
6573 | flag_tree_checks_verbose. | |
6574 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
6575 | ||
6576 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
6577 | ||
6578 | * configure: Regenerated. | |
6579 | * config.in: Regenerated. | |
6580 | * tree-ssa-loop.c (graphite_transforms): Execute | |
6581 | graphite_transform_loops only when HAVE_cloog. | |
6582 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
6583 | * graphite.c: Include polylibgmp.h and cloog.h. | |
6584 | (graphite_transform_loops): Removed loops parameter. | |
6585 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
6586 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
6587 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
6588 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
6589 | (OBJS-common): Remove dependence on graphite.o. | |
6590 | (BACKEND): Depend on @GRAPHITE@. | |
6591 | ||
6592 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
6593 | ||
6594 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
6595 | * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New. | |
6596 | * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New. | |
6597 | * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New. | |
6598 | * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New. | |
6599 | * testsuite/gcc.dg/tree-checker/tree-checks.exp: New. | |
6600 | * testsuite/gcc.dg/tree-checker/condates.crp: New. | |
6601 | * common.opt (ftree-checks-verbose): New. | |
6602 | * tree-check.c (tree_check_warning): Move extra stderr output | |
6603 | under control of flag_tree_check_verbose. | |
6604 | ||
6605 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6606 | ||
6607 | * tree-match.c: Fix comments formatting. | |
6608 | * tree-match.h: Fix comments formatting. | |
6609 | * tree-check.c: Fix comments formatting. | |
6610 | (tree_check_init): Restructure. | |
6611 | ||
6612 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
6613 | ||
6614 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
6615 | ||
6616 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
6617 | ||
6618 | * Merge from mainline (r120733:123693). | |
6619 | ||
6620 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
6621 | ||
6622 | * condate.y: New file. | |
6623 | * tree-match.h (struct patt_info_s): New field sign. | |
6624 | (struct condate_s): New field msg. | |
6625 | (normalize_condate, name_condate, add_condate): New. | |
6626 | (conds[], condate_parse): Made extern. | |
6627 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
6628 | warning reformatted. | |
6629 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
6630 | (tree_scan): New. | |
6631 | (tree_check): Process trivial condates. | |
6632 | (read_delimited_string): Removed. | |
6633 | (print_cond): Print name and msg. | |
6634 | (conds[]): Made extern. | |
6635 | (parse_tree_check_file_once): Rewritten to use the parser in | |
6636 | condate.y. | |
6637 | Processing of option --tree_check_string moved to tree_scan(). | |
6638 | * Makefile.in: Added condate.y | |
6639 | ||
6640 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6641 | ||
6642 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
6643 | Use VECs instead of varrays. | |
6644 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
6645 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
6646 | * pretty-print.c: Include tree.h and vec.h. | |
6647 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
6648 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
6649 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
6650 | pp_free_list): Use VECs instead of varrays. | |
6651 | * pretty-print.h: Do not include varray.h. | |
6652 | (struct tree_chunk_s): Declaration moved before its use. | |
6653 | (output_buffer): Rename varray field to chunks. | |
6654 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
6655 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
6656 | save_global_holes): Use VECs instead of varrays. | |
6657 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
6658 | * tree-check.c (scan_cfg_stmts, push_node, | |
6659 | print_matching_stmt): Removed. | |
6660 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
6661 | execute_tree_check): Use VECs instead of varrays. | |
6662 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
6663 | is not available. | |
6664 | ||
6665 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6666 | ||
6667 | * Merge from mainline (r115016:120733). | |
6668 | ||
6669 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6670 | ||
6671 | * Merge from mainline (r117632:117661). | |
6672 | ||
6673 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6674 | ||
6675 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
6676 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
6677 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
6678 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
6679 | get_loop_exit_condition, analyze_evolution_in_loop, | |
6680 | analyze_initial_condition, analyze_scalar_evolution, | |
6681 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
6682 | * tree-chrec.c (chrec_apply): Use debug_p. | |
6683 | * tree-data-ref.c: Include graphite.h. | |
6684 | (dump_data_reference): Print also the access matrix. | |
6685 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
6686 | analyze_offset_expr, address_analysis, object_analysis, | |
6687 | create_data_ref, finalize_ddr_dependent, | |
6688 | non_affine_dependence_relation, analyze_ziv_subscript, | |
6689 | analyze_siv_subscript_cst_affine, | |
6690 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
6691 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
6692 | analyze_miv_subscript, analyze_overlapping_iterations, | |
6693 | build_classic_dist_vector, subscript_dependence_tester, | |
6694 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
6695 | (build_access_matrix_with_af): No longer static. | |
6696 | * tree-data-ref.h (scop_p): ... declaration here. | |
6697 | (data_reference.scop): New field. | |
6698 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
6699 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
6700 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
6701 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
6702 | (test_for_scop_bound): Use debug_p. | |
6703 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
6704 | scop_nb_params. | |
6705 | (scop_loop_index): Moved... | |
6706 | (scop_record_loop): New. | |
6707 | (build_scop_loop_nests): Use scop_record_loop. | |
6708 | (build_scop_domain): Use scop_dim_domain. | |
6709 | (build_access_matrix): Implemented. | |
6710 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
6711 | (build_graphite_bb): Initialize GBB_SCOP. | |
6712 | * graphite.h (scop_p): Moved... | |
6713 | (graphite_bb.scop): New field. | |
6714 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
6715 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
6716 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
6717 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
6718 | scop_loop_index): New. | |
6719 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
6720 | ||
6721 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
6722 | ||
6723 | * Merge from mainline (r117661:120450). | |
6724 | ||
6725 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
6726 | ||
6727 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
6728 | at the first declaration outside the varying loop, instantiate as | |
6729 | far as possible. | |
6730 | * tree-chrec.c (for_each_scev_op): New. | |
6731 | * tree-chrec.h (for_each_scev_op): Declared. | |
6732 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
6733 | * tree-data-ref.c (get_references_in_stmt, | |
6734 | find_data_references_in_stmt): New, from trunk. | |
6735 | (find_data_references_in_loop): Use get_references_in_stmt | |
6736 | and find_data_references_in_loop, modified as in trunk. | |
6737 | (build_access_matrix_with_af): New. | |
6738 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
6739 | (data_ref_loc): New, as in trunk. | |
6740 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
6741 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
6742 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
6743 | idx_record_param, idx_record_params, build_access_matrix, | |
6744 | build_scop_data_accesses, build_scop_canonical_schedules, | |
6745 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
6746 | build_scop_params): New. | |
6747 | * graphite.h (graphite_bb): New. | |
6748 | (scop): Add fields static_schedule, params, loop_nest, | |
6749 | iteration_domain. | |
6750 | * lambda.h: Declare vecs of lambda_matrix. | |
6751 | * tree-flow.h (print_loop_ir_bb): Declared. | |
6752 | * tree-cfg.c (print_loop_ir_bb): New. | |
6753 | (print_loop): Use print_loop_ir_bb. | |
6754 | ||
6755 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
6756 | ||
6757 | * Merge from mainline (r115016:117632). | |
6758 | ||
6759 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
6760 | ||
6761 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
6762 | break due to a warning. | |
6763 | ||
6764 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
6765 | ||
6766 | * graphite.c (print_scops, debug_scops): New. | |
6767 | (graphite_transform): Renamed graphite_find_transform. | |
6768 | * graphite.h (debug_scops): Declared. | |
6769 | ||
6770 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
6771 | ||
6772 | * tree-match.c: Reformat following the GNU style. | |
6773 | * tree-match.h: Reformat following the GNU style. | |
6774 | * tree-pattern.h: Removed empty file. | |
6775 | * Makefile.in: Remove references to tree-pattern.h. | |
6776 | * tree-check.c: Reformat following the GNU style. | |
6777 | (execute_tree_check): Move gate condition code to... | |
6778 | (gate_tree_check): ...here. New function. | |
6779 | (pass_check): Use the gate function. | |
6780 | ||
6781 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
6782 | ||
6783 | * tree-pattern.h: New. Tree pattern matching and checking using | |
6784 | concrete syntax. | |
6785 | * tree-check.c: New. Tree/CFG checking pass. | |
6786 | * tree-match.c: New. Library for tree pattern matching. | |
6787 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
6788 | * toplev.c, flags.h: Add globals for tree-check pass. | |
6789 | * Makefile.in: Integrate the files in tree-check pass. | |
6790 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
6791 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
6792 | Introduce a "lazy" pretty-print mode. | |
6793 | * tree.c, tree.h: Add tree_name. | |
6794 | ||
6795 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
6796 | ||
6797 | * doc/invoke.texi (-fgraphite): Correct typo. | |
6798 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
6799 | use of print_loop_ir. | |
6800 | * testsuite/gcc.dg/graphite/scop-1.c: New. | |
6801 | * testsuite/gcc.dg/graphite/scop-2.c: New. | |
6802 | * testsuite/gcc.dg/graphite/graphite.exp: New. | |
6803 | * graphite.c: Include domwalk.h. | |
6804 | (print_scop): Print only the entry and exit blocks. | |
6805 | (debug_scop): No longer static. | |
6806 | (affine_expr): Fix formating. Return also true when the expression is | |
6807 | constant. | |
6808 | (stmt_simple_for_scop_p): Fix formating. | |
6809 | (build_scops): Use domwalk. | |
6810 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
6811 | (graphite_transform_loops): Avoid printing on stderr. | |
6812 | * graphite.h (debug_scop): Declared. | |
6813 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
6814 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
6815 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
6816 | declarations for static functions. | |
6817 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
6818 | controlling output verbosity. | |
6819 | ||
6820 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
6821 | Plesco Alexandru <shurikx@gmail.com> | |
6822 | ||
6823 | * doc/invoke.texi (-fgraphite): Document. | |
6824 | * tree-pass.h (pass_graphite_transforms): Declared. | |
6825 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
6826 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
6827 | (pass_graphite_transforms): Defined. | |
6828 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
6829 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
6830 | * graphite.c, graphite.h: New. | |
6831 | * common.opt (fgraphite): Declared. | |
6832 | * tree-flow.h (graphite_transform_loops): Declared. | |
6833 | * Makefile.in (OBJS-common): Add graphite.o. | |
6834 | (graphite.o): New rule. | |
6835 | * passes.c (pass_graphite_transforms): Scheduled. | |
6836 |