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