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