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