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