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