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