1 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
4 code generation with gloog_error.
6 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
8 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9 Call fold_convert on all the returned values.
10 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
11 the type of the resulting expression.
13 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
15 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
19 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
21 * graphite-dependences.c (map_into_dep_poly): Removed.
22 (dependence_polyhedron_1): Use combine_context_id_scat.
24 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
26 * graphite-poly.h (struct poly_scattering): Add layout documentation.
27 (struct poly_bb): Same.
28 (combine_context_id_scat): New.
30 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
33 * sese.c (name_defined_in_loop_p): Return false for default
36 * gcc.dg/graphite/pr42326.c: New.
38 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
40 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
41 and clean up the logic.
43 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
45 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
48 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
51 * graphite-scop-detection.c (create_single_exit_edge): Move
52 the call to find_single_exit_edge to....
53 (create_sese_edges): ...here. Don't handle multiple edges
55 (build_graphite_scops): Don't handle multiple edges
58 * gcc.dg/graphite/pr43083.c: New.
60 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
63 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
64 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
66 * gfortran.dg/graphite/pr43097.f: New.
68 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
69 Manuel López-Ibáñez <manu@gcc.gnu.org>
72 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
74 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
77 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
79 * g++.dg/graphite/pr43026.C: New.
81 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
83 * Merge from mainline (154736:156693).
85 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
88 * gcc.dg/graphite/pr43012.c: New.
90 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
92 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
93 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
95 * g++.dg/graphite/pr42930.C: New.
97 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
100 * graphite-scop-detection.c (graphite_can_represent_scev): Call
101 graphite_can_represent_init for MULT_EXPR.
103 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
107 * graphite-sese-to-poly.c (remove_phi): New.
108 (translate_scalar_reduction_to_array): Call remove_phi.
110 * gcc.dg/graphite/pr42530.c: New.
111 * gcc.dg/graphite/pr42914.c: New.
113 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
116 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
117 * graphite-clast-to-gimple.h (gloog): Update declaration.
118 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
119 * graphite-poly.h (struct poly_bb): Add missing comments.
120 (struct scop): Add poly_scop_p field.
122 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
123 * graphite.c (graphite_transform_loops): Build the polyhedral
124 representation for each scop before code generation.
125 * sese.c (rename_variables_in_operand): Removed.
126 (rename_variables_in_expr): Return the renamed expression.
127 (rename_sese_parameters): New.
128 * sese.h (rename_sese_parameters): Declared.
130 * gcc.dg/graphite/pr42771.c: New.
132 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
134 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
136 * gcc.dg/graphite/block-1.c: Same.
137 * gcc.dg/graphite/block-3.c: Same.
138 * gcc.dg/graphite/block-4.c: Same.
139 * gcc.dg/graphite/block-5.c: Same.
140 * gcc.dg/graphite/block-6.c: Same.
141 * gcc.dg/graphite/block-7.c: Same.
142 * gcc.dg/graphite/interchange-0.c: Same.
143 * gcc.dg/graphite/interchange-1.c: Same.
144 * gcc.dg/graphite/interchange-10.c: Same.
145 * gcc.dg/graphite/interchange-11.c: Same.
146 * gcc.dg/graphite/interchange-12.c: Same.
147 * gcc.dg/graphite/interchange-2.c: Same.
148 * gcc.dg/graphite/interchange-3.c: Same.
149 * gcc.dg/graphite/interchange-4.c: Same.
150 * gcc.dg/graphite/interchange-5.c: Same.
151 * gcc.dg/graphite/interchange-6.c: Same.
152 * gcc.dg/graphite/interchange-7.c: Same.
153 * gcc.dg/graphite/interchange-8.c: Same.
154 * gcc.dg/graphite/interchange-9.c: Same.
155 * gcc.dg/graphite/interchange-mvt.c: Same.
157 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
159 * gfortran.dg/graphite/id-19.f: New.
160 * gfortran.dg/graphite/pr14741.f90: New.
161 * gfortran.dg/graphite/pr41924.f90: New.
162 * gfortran.dg/graphite/run-id-2.f90: New.
164 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
167 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
168 to unknown_dependence.
169 (graphite_legal_transform_dr): Handle the unknown_dependence.
170 (graphite_carried_dependence_level_k): Same.
172 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
174 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
176 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
177 Konrad Trifunovic <konrad.trifunovic@inria.fr>
180 * graphite-dependences.c (build_lexicographical_constraint): Return
181 a union of dependence polyhedra.
182 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
184 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
185 * gcc.dg/graphite/block-4.c: Same.
186 * gcc.dg/graphite/block-7.c: Same.
187 * gcc.dg/graphite/interchange-12.c: Same.
188 * gcc.dg/graphite/interchange-mvt.c: Same.
189 * gfortran.dg/graphite/interchange-1.f: XFAILed.
190 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
191 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
193 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
195 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
196 the execution check to FAIL. This testcase is miscompiled by Graphite
197 and the check should be re-enabled.
198 * gcc.dg/graphite/interchange-mvt.c: Same.
199 * gcc.dg/graphite/block-0.c: Same.
200 * gcc.dg/graphite/block-4.c: Same.
201 * gcc.dg/graphite/block-7.c: Same.
203 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
205 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
206 * gcc.dg/graphite/scop-0.c: Fix spaces.
207 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
208 * gfortran.dg/graphite/block-2.f: Same.
209 * gfortran.dg/graphite/block-3.f90: Same.
210 * gfortran.dg/graphite/block-4.f90: Same.
211 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
212 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
214 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
216 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
217 PDDR_ORIGINAL_SCATTERING_P.
218 (pddr_is_empty): Rewritten.
219 (print_dependence_polyhedron_layout): New.
222 (build_alias_set_powerset): Moved up.
223 (poly_drs_may_alias_p): Moved up.
224 (lexicographically_gt_p): Removed.
225 (build_lexicographically_gt_constraint): Renamed
226 build_lexicographical_constraint, reimplemented.
227 (dependence_polyhedron_1): Simplified parameters.
228 (dependence_polyhedron): Same. Keep along empty PDDRs
229 to make efficient use of the cache.
230 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
231 (graphite_legal_transform_dr): Rewritten.
232 (graphite_legal_transform_bb): Pass fewer arguments to
233 graphite_legal_transform_dr.
234 (graphite_carried_dependence_level_k): Simplified implementation.
235 (dot_original_deps_stmt_1): Call dependence_polyhedron.
236 (dot_transformed_deps_stmt_1): Same.
237 (dot_original_deps): Same.
238 (dot_transformed_deps): Same.
239 * graphite-dependences.h (struct poly_ddr): Added a new field
240 original_scattering_p.
241 (PDDR_ORIGINAL_SCATTERING_P): New.
242 (print_pddr): Declared.
243 (debug_pddr): Declared.
244 * graphite-ppl.c: Clarify comment.
245 * sese.h (print_gimple_bb): Removed unused declaration.
248 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
250 * g++.dg/graphite/graphite.exp: Rewritten.
251 * gcc.dg/graphite/graphite.exp: Rewritten.
252 * gfortran.dg/graphite/graphite.exp: Rewritten.
253 * gcc.dg/graphite/block-0.c: Added runtime test.
254 * gcc.dg/graphite/block-1.c: Same.
255 * gcc.dg/graphite/block-3.c: Same.
256 * gcc.dg/graphite/block-4.c: Same.
257 * gcc.dg/graphite/block-5.c: Same.
258 * gcc.dg/graphite/block-6.c: Same.
259 * gcc.dg/graphite/block-7.c: Same.
260 * gcc.dg/graphite/interchange-0.c: Same.
261 * gcc.dg/graphite/interchange-1.c: Same.
262 * gcc.dg/graphite/interchange-10.c: Same.
263 * gcc.dg/graphite/interchange-11.c: Same.
264 * gcc.dg/graphite/interchange-12.c: Same.
265 * gcc.dg/graphite/interchange-2.c: Same.
266 * gcc.dg/graphite/interchange-3.c: Same.
267 * gcc.dg/graphite/interchange-4.c: Same.
268 * gcc.dg/graphite/interchange-5.c: Same.
269 * gcc.dg/graphite/interchange-6.c: Same.
270 * gcc.dg/graphite/interchange-7.c: Same.
271 * gcc.dg/graphite/interchange-8.c: Same.
272 * gcc.dg/graphite/interchange-9.c: Same.
273 * gcc.dg/graphite/interchange-mvt.c: Same.
274 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
276 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
278 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
281 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
283 * common.opt: Add -fgraphite-cloog-opts.
284 * graphite-clast-to-gimple.c (set_cloog_options): Same.
285 * opts.c (decode_options): Same.
287 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
289 * gcc.dg/graphite/id-17.c: New.
290 * gcc.dg/graphite/pr41888.c: New.
291 * gcc.dg/graphite/scop-22.c: New.
292 * gfortran.dg/graphite/pr40982.f90: New.
294 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
296 * graphite-dependences.c: Clarify comments.
297 (build_pddr): Add an extra parameter direction.
298 (graphite_legal_transform_dr): Use build_pddr.
299 (dot_original_deps_stmt_1): Update use of build_pddr.
300 (dot_transformed_deps_stmt_1): Same.
301 (dot_original_deps): Same.
302 (dot_transformed_deps): Same.
304 * gcc.dg/graphite/interchange-12.c: New.
305 * gcc.dg/graphite/block-7.c: New.
307 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
309 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
310 (pddr_transformed_scattering): Removed.
311 (graphite_legal_transform_dr): Use build_pddr.
312 (dot_original_deps_stmt_1): Same.
313 (dot_transformed_deps_stmt_1): Same.
314 (dot_original_deps): Same.
315 (dot_transformed_deps): Same.
317 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
319 * graphite-dependences.c (lexicographically_gt_p): Add comments.
320 (build_lexicographically_gt_constraint): Same.
321 (dependence_polyhedron_1): Same.
322 (dependence_polyhedron): Same.
324 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
326 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
327 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
328 (lexicographically_gt_p): Change type of direction to int.
329 (build_lexicographically_gt_constraint): Same.
330 (dependence_polyhedron_1): Same.
331 (dependence_polyhedron): Same.
332 (pddr_original_scattering): Use integers for direction.
333 (pddr_transformed_scattering): Same.
334 (graphite_legal_transform_dr): Same.
335 (graphite_carried_dependence_level_k): Same.
337 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
339 * graphite-dependences.c (build_pairwise_constraint): Renamed
340 ppl_build_relation. Moved...
341 (dr_equality_constraints): Use ppl_build_relation.
342 (build_pairwise_scheduling_equality): Same.
343 (build_pairwise_scheduling_inequality): Same.
344 * graphite-ppl.c (ppl_build_relation): ...here.
345 * graphite-ppl.h (ppl_build_relation): Declared.
347 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
350 * graphite-clast-to-gimple.c (gloog_error): New static variable.
351 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
352 Set gloog_error when such an expression failed to be built.
353 (translate_clast): Early return when gloog_error is set.
354 (gloog): Clear gloog_error. When gloog_error is set, call
355 set_ifsese_condition to enable the original code. Return the status
356 of the code generation based on gloog_error.
357 * sese.c (set_ifsese_condition): New.
358 * sese.h (set_ifsese_condition): Declared.
360 * g++.dg/graphite/pr42681.C: New.
362 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
365 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
366 rename_nb_iterations.
367 * sese.c (rename_variables_in_operand): New.
368 (rename_variables_in_expr): New.
369 (rename_nb_iterations): New.
370 (sese_adjust_liveout_phis): Update the rename_map.
371 * sese.h (rename_nb_iterations): Declared.
372 * tree-scalar-evolution.c (scev_reset_htab): New.
373 (scev_reset): Call scev_reset_htab.
374 * tree-scalar-evolution.h (scev_reset_htab): Declared.
376 * gfortran.dg/graphite/pr42732.f: New.
378 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
381 * graphite-clast-to-gimple.c: Fix formatting.
382 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
383 (expr_defined_in_loop_p): New.
384 (add_loop_exit_phis): Also handle full expressions: remove from
385 the rename_map the expressions defined in the loop that we're closing.
387 * gfortran.dg/graphite/pr42393-1.f90: New.
388 * gfortran.dg/graphite/pr42393.f90: Add new flags
389 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
390 make this testcase useful in the Graphite branch.
392 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
394 * graphite-scop-detection.c (exclude_component_ref): Removed.
395 (is_simple_operand): Removed.
396 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
398 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
401 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
402 the array indexing of ADDR_EXPRs.
404 * gcc.dg/graphite/pr42221.c: New.
406 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
409 * graphite.c (graphite_finalize): Call scev_reset.
410 (graphite_transform_loops): Do not call scev_reset between the code
413 * gcc.dg/graphite/pr42521.c: New.
415 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
417 * graphite-interchange.c (memory_stride_in_loop): Renamed
419 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
420 (memory_strides_in_loop): Memoize the memory strides per loop.
421 (lst_interchange_profitable_p): Do not initialize to zero the memory
423 * graphite-poly.h (struct lst): Add a field memory_strides.
424 (LST_LOOP_MEMORY_STRIDES): New.
425 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
426 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
428 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
430 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
431 memory_strides_in_loop. Gather memory strides on a whole loop.
432 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
433 (lst_interchange_profitable_p): Removed.
434 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
436 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
438 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
439 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
440 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
441 Remove context_loop and level.
443 2010-01-07 Richard Guenther <rguenther@suse.de>
445 PR tree-optimization/42641
446 * sese.c (rename_map_elt_info): Use the SSA name version, do
449 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
451 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
452 blocked" only when both the strip mine and the interchange have
455 * gcc.dg/graphite/block-2.c: Removed.
456 * gcc.dg/graphite/block-3.c: Add scan pattern.
457 * gcc.dg/graphite/block-4.c: Same.
458 * gcc.dg/graphite/block-5.c: Same.
459 * gcc.dg/graphite/block-6.c: Same.
461 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
463 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
464 before allocating a new one.
465 (copy_renames): Check that slot is not NULL.
466 (mark_bb_with_pbb): Same.
467 (compute_cloog_iv_types_1): Same.
468 * graphite-interchange.c (lst_perfect_nestify): Free the before,
469 nest, and after LSTs.
470 (lst_try_interchange_loops): Same.
472 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
475 * graphite-interchange.c (lst_try_interchange_loops): Do not return
476 the before, nest, and after LSTs.
477 (lst_try_interchange): Removed.
478 (lst_interchange_select_inner): Do not iterate over the LSTs if they
480 (lst_interchange_select_outer): Apply interchange on the outer loop
481 until there are no more changes in the inner loops.
483 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
485 Revert patch fixing PR middle-end/42221.
487 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
490 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
493 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
495 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
498 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
499 that contain only one statement.
501 * gfortran.dg/graphite/pr42180.f90: New.
503 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
506 * gfortran.dg/graphite/pr42393.f90: New.
508 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
511 * gfortran.dg/graphite/pr42186.f90: New.
513 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
516 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
517 Insert the reduction copy in the same block as the phi node.
518 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
520 * gcc.dg/graphite/pr42205-1.c: New.
521 * gcc.dg/graphite/pr42205-2.c: New.
523 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
526 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
527 the array indexing of ADDR_EXPRs.
529 * gcc.dg/graphite/pr42221.c: New.
531 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
535 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
536 index. Call lst_interchange_select_inner only once.
537 (lst_interchange_select_inner): Update use of lst_try_interchange.
538 (lst_interchange_select_outer): Update.
540 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
544 * graphite-interchange.c (lst_try_interchange): Do not increment the
545 the OUTER index when there is no AFTER kernel. Do not increment the
546 OUTER index for after processing the AFTER kernel.
547 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
548 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
549 index. Do not pass to lst_interchange_select_inner the OUTER index.
550 (scop_do_interchange): Update use of lst_interchange_select_outer.
552 * gfortran.dg/graphite/graphite.exp
553 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
554 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
555 the graphite dump file.
556 * gfortran.dg/graphite/interchange-2.f: Same.
557 * gfortran.dg/graphite/pr42334-1.f: New.
559 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
563 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
565 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
566 (lst_try_interchange): Reimplemented.
567 (lst_interchange_select_inner): Same.
568 (lst_do_interchange): Renamed lst_interchange_select_outer.
570 (scop_do_interchange): Update use of lst_interchange_select_outer.
572 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
573 * gcc.dg/graphite/block-0.c: Un-XFAILed.
574 * gcc.dg/graphite/pr42211.c: New.
575 * gfortran.dg/graphite/pr42334.f90: New.
577 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
580 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
581 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
583 * gfortran.dg/graphite/pr42181.f90: New.
585 2009-12-12 Sebastian Pop <sebpop@gmail.com>
588 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
589 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
590 (detect_commutative_reduction_arg): Simplified.
591 (detect_commutative_reduction): Early return when the argument of
592 the close phi is not of an SSA_NAME.
594 * gcc.dg/graphite/pr42284.c: New.
596 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
598 * dbgcnt.def (graphite_scop): New counter.
599 * graphite.c: Include dbgcnt.h
600 (graphite_transform_loops): Use new counter to limit transformations.
602 2009-12-08 Sebastian Pop <sebpop@gmail.com>
605 * graphite-scop-detection.c (graphite_can_represent_init): Also
606 handle more complex MULT_EXPRs containing parameters by recursion
609 * gfortran.dg/graphite/pr42285.f90: New.
611 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
613 * g++.dg/graphite/pr42130.C: Fix type.
615 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
617 * g++.dg/graphite/pr42130.C: Correct testcase.
619 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
621 * Merge from mainline (154493:154734).
623 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
625 * Merge from mainline (151362:154491).
627 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
629 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
630 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
632 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
635 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
636 translate_clast_for_loop): New.
637 (translate_clast_for): Add a condition around the loop, to do not
638 execute loops with zero iterations.
639 * g++.dg/graphite/pr42130.C: New.
640 * gcc.dg/graphite/pr35356-2.c: Adapt.
642 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
644 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
645 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
646 Remove context_loop and level.
648 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
650 * graphite-clast-to-gimple.c (translate_clast_user,
651 translate_clast_for, translate_clast_guard): Simplify and move common
652 elements to translate_clast().
653 (translate_clast): Simplify and get common elements.
655 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
657 * graphite-clast-to-gimple.c (translate_clast_user,
658 translate_clast_for, translate_clast_guard): Split out of
661 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
663 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
664 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
665 debug_clast_name_indexes_1, debug_clast_name_indexes,
666 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
667 (clast_name_to_gcc, clast_to_gcc_expression,
668 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
669 gcc_type_for_clast_eq, graphite_translate_clast_equation,
670 graphite_create_guard_cond_expr, graphite_create_new_loop,
671 translate_clast): Add params_index.
672 (initialize_cloog_names): Create parameter strings from scratch, do
673 not reference other strings.
674 (create_params_index): New.
675 (gloog): Initialize params_index.
676 * graphite-scop-detection (free_scops_1): Removed.
677 (limit_scops): Use normal free_scops.
678 * graphite-sese-to-poly.c (save_var_names): Removed.
679 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
680 and SESE_PARAMS_INDEX.
681 * sese.c (new_sese, free_sese): Dito.
682 * sese.h (struct sese): Remove params_index, params_names.
683 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
685 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
687 Revert the following patch from 2009-09-14:
688 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
689 tree-scalar-evolution.h, and then tree-data-ref.h.
690 * graphite-clast-to-gimple.c: Same.
691 * graphite-dependences.c: Same.
692 * graphite-interchange.c: Same.
693 * graphite-poly.c: Same.
694 * graphite-scop-detection.c: Same.
695 * graphite-sese-to-poly.c: Same.
697 * lambda-code.c: Same.
698 * matrix-reorg.c: Same.
699 * tree-data-ref.c: Same.
700 * tree-if-conv.c: Same.
701 * tree-loop-distribu: Same.: Same.
702 * tree-loop-linear.c: Same.
703 * tree-parloops.c: Same.
704 * tree-predcom.c: Same.
705 * tree-vect-patterns.c: Same.
707 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
709 Revert patch from 2009-09-14.
710 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
711 passes at -O1 and below.
713 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
716 * gcc.dg/graphite/pr40281.c: New.
718 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
719 evolutions should not variate in inner loops.
721 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
724 * gfortran.dg/graphite/pr42050.f90: New.
726 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
728 * graphite-interchange.c (memory_strides_in_loop_depth): New.
729 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
731 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
733 * graphite-blocking.c (scop_do_block): New.
734 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
735 * graphite-poly.h (scop_do_block): Declared.
737 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
739 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
740 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
741 to transform depth into the time_depth before calling
742 pbb_number_of_iterations_at_time.
743 (lst_do_strip_mine): Use a scalar variable instead of recomputing
746 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
748 Reverted the patch for "scattering permutations" from 2009-10-28.
750 * graphite-poly.c (print_permutation): New.
751 (debug_permutation): New.
752 (new_poly_bb): Initialize PBB_PERMUTATION.
753 (free_poly_bb): Free PBB_PERMUTATION.
754 * graphite-poly.h (pbb_permutation_elt_p): Declared.
755 (struct pbb_permutation_elt): New.
756 (PBB_PERMUTATION_ELT_STRIDE): New.
757 (PBB_PERMUTATION_ELT_STRIDED_P): New.
758 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
759 (new_pbb_permutation_elt): New.
760 (pbb_permutation_elt_free): New.
761 (struct poly_bb): Add field permutation.
762 (PBB_PERMUTATION): New.
763 (print_permutation): Declared.
764 (debug_permutation): Declared.
766 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
768 * graphite-interchange.c (build_partial_difference): New.
769 (memory_stride_in_loop): Refactored the computation of
770 equality constraints into build_partial_difference function.
771 Added support for debugging stride computations.
773 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
775 * graphite-clast-to-gimple.c (gloog): Free if_region,
776 if_region->true_region, and if_region->region.
777 * sese.c (if_region_set_false_region): Free if_region->false_region.
778 (create_if_region_on_edge): Do not use GGC_NEW.
779 (move_sese_in_condition): Remove useless initialization.
781 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
783 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
784 for the loops created by the loop distribution. Do not modify the
786 (lst_try_interchange_loops): Same. Use a temporary LST for the
787 transformed schedule. Call lst_update_scattering before data
789 (lst_try_interchange): Pass an extra parameter INDEX.
790 (lst_do_interchange_1): New.
791 (lst_do_interchange): Call lst_do_interchange_1.
792 (scop_do_interchange): Call lst_update_scattering.
793 * graphite-poly.c (apply_poly_transforms): Do not call
794 lst_update_scattering.
795 * graphite-poly.h (lst_pred): New.
797 (lst_find_first_pbb): Return NULL when not found.
799 (lst_insert_in_sequence): Allow LST1 to be NULL.
801 (lst_substitute_3): New.
802 * gcc.dg/graphite/interchange-1.c: XFail.
803 * gcc.dg/graphite/interchange-8.c: XFail.
804 * gcc.dg/graphite/interchange-11.c: XFail.
806 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
808 * graphite-interchange.c (lst_perfectly_nested_p): New.
809 (lst_perfect_nestify): New.
810 (lst_try_interchange_loops): Call store_lst_schedule,
811 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
812 (scop_do_interchange): Avoid redundant legality test.
813 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
814 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
815 * graphite-poly.h (psct_static_dim): New.
816 (lst_dewey_number_at_depth): New.
817 (lst_find_pbb): Restructured.
818 (lst_find_first_pbb): Restructured.
819 (lst_find_last_pbb): New.
820 (lst_contains_p): New.
821 (lst_contains_pbb): New.
822 (lst_create_nest): New.
823 (lst_remove_from_sequence): New.
824 (pbb_update_scattering): New.
825 (lst_update_scattering_under): New.
826 (lst_update_scattering_seq): New.
827 (lst_update_scattering): New.
828 (lst_insert_in_sequence): New.
829 (lst_distribute_lst): New.
830 (lst_remove_all_before_including_pbb): New.
831 (lst_remove_all_before_excluding_pbb): New.
833 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
835 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
838 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
840 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
842 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
844 * graphite-poly.c (print_permutation): New.
845 (debug_permutation): New.
846 (new_poly_bb): Initialize PBB_PERMUTATION.
847 (free_poly_bb): Free PBB_PERMUTATION.
848 * graphite-poly.h (pbb_permutation_elt_p): Declared.
849 (struct pbb_permutation_elt): New.
850 (PBB_PERMUTATION_ELT_STRIDE): New.
851 (PBB_PERMUTATION_ELT_STRIDED_P): New.
852 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
853 (new_pbb_permutation_elt): New.
854 (pbb_permutation_elt_free): New.
855 (struct poly_bb): Add field permutation.
856 (PBB_PERMUTATION): New.
857 (print_permutation): Declared.
858 (debug_permutation): Declared.
860 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
862 * graphite-clast-to-gimple.c (gloog): Do not call
863 sese_reset_aux_in_loops.
864 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
865 extra argument for domains. Do not use loop->aux.
866 (build_scop_iteration_domain): Initialize and free domains, pass it
867 to build_loop_iteration_domains and extract the information from
868 domains. Do not use loop->aux.
869 * sese.c (sese_reset_aux_in_loops): Removed.
870 * sese.h (sese_reset_aux_in_loops): Removed.
872 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
874 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
875 (dependency_in_loop_p): Same.
876 (translate_clast): Do not use loop->aux. Initialize
877 loop->can_be_parallel.
878 (mark_loops_parallel): Removed.
879 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
880 * graphite.c (free_aux_in_new_loops): Removed.
881 (graphite_finalize): Do not call free_aux_in_new_loops.
882 (graphite_transform_loops): Do not call mark_loops_parallel.
884 2009-10-26 Li Feng <nemokingdom@gmail.com>
886 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
887 (translate_clast): Pass an extra parameter LEVEL.
888 Call get_scattering_level.
889 * graphite-clast-to-gimple.h (get_scattering_level): New.
891 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
893 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
894 * cfgloop.h (struct loop): New field single_iv.
896 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
897 loop->aux anymore: use loop->single_iv.
898 (graphite_loop_normal_form): Moved...
899 (build_graphite_loop_normal_form): Removed.
900 (gloog): Do not call build_graphite_loop_normal_form.
901 (free_aux_in_new_loops): Moved...
902 (mark_loops_parallel): Restructure.
903 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
904 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
905 (scop_canonicalize_loops): New.
906 (build_poly_scop): Call scop_canonicalize_loops.
907 * graphite.c (free_aux_in_new_loops): ...here.
909 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
911 * g++.dg/graphite/graphite.exp: Add the same rules as in
912 gcc.dg/graphite/graphite.exp.
914 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
916 * g++.dg/graphite/id-1.C: New.
918 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
920 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
922 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
923 (rewrite_phi_out_of_ssa): Same.
924 (rewrite_cross_bb_scalar_deps): Same.
925 (translate_scalar_reduction_to_array): Same.
927 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
929 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
932 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
934 * graphite-sese-to-poly.c (dump_alias_graphs): New.
935 (build_scop_drs): Call dump_alias_graphs.
937 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
939 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
940 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
941 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
942 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
943 * graphite-poly.h (free_lst): New.
944 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
945 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
947 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
949 * graphite-poly.h (struct scop): Add a field saved_schedule.
950 (SCOP_SAVED_SCHEDULE): New.
951 (store_lst_schedule): New.
952 (restore_lst_schedule): New.
953 (store_scattering): Call store_lst_schedule.
954 (restore_scattering): Call restore_lst_schedule.
956 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
958 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
959 (pdr_add_alias_set): Same.
960 (build_poly_dr): Same.
961 (build_alias_set_optimal_p): Same.
962 (build_base_obj_set_for_drs): Same. Do not store the result of
965 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
967 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
968 all_components_are_cliques to 1.
970 2009-10-20 Li Feng <nemokingdom@gmail.com>
972 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
974 (pdr_add_alias_set): Update retrieving alias_set_num.
975 (build_poly_dr): Update retrieving dr_base_object_set.
976 (partition_drs_to_sets): Remove.
977 (build_alias_set_optimal_p): New.
978 (build_alias_set_for_drs): Rename.
979 (build_scop_drs): Update.
980 * graphite-sese-to-poly.h (struct base_alias_pair): New.
981 (ALIAS_SET_INDEX): Remove.
982 (BASE_OBJECT_SET_INDEX): Remove.
984 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
986 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
988 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
990 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
991 loop upper bounds for 1-element arrays at end of structures.
992 * tree-flow.h (array_at_struct_end_p): Declared.
993 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
995 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
997 * g++.dg/graphite/pr41305.C: New.
999 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
1001 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
1002 construction of parameter constraints from loop iteration analysis.
1003 * gcc.dg/graphite/run-id-2.c: New test.
1005 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1007 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
1010 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1012 * graphite-dependences.c (dependence_polyhedron_1): Remove
1013 unused gdim dimensions from the DDR polyhedron.
1015 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1017 * graphite-dependences.c (pddr_transformed_scattering): New.
1018 (dot_original_deps_stmt_1): New.
1019 (dot_transformed_deps_stmt_1): New.
1020 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
1021 dot_transformed_deps_stmt_1.
1022 (dot_original_deps): New.
1023 (dot_transformed_deps): New.
1024 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
1026 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1028 * graphite-dependences.c (reduction_dr_1): Remove wrong
1029 assert: reduction BBs can have multiple reduction writes
1030 to memory. interchange-3.f90 is an example.
1032 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1034 * gfortran.dg/graphite/interchange-3.f90: New.
1036 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1038 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
1040 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1042 * graphite-dependences.c (dependence_polyhedron_1): Add the
1043 context to the dependence polyhedron.
1045 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1047 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
1048 PBB_PDR_DUPLICATES_REMOVED.
1049 (new_poly_bb): Same.
1051 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1053 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
1055 (build_loop_iteration_domains): Extract bounds on parameters
1056 based on the data size.
1057 (build_scop_context): Do not initialize SCOP_CONTEXT;
1058 add new constraints.
1060 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1062 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1063 * graphite-ppl.h (graphite-ppl.h): Declared.
1065 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1067 * graphite-ppl.c (ppl_print_linear_expr): New.
1068 (debug_ppl_linear_expr): New.
1069 * graphite-ppl.h (ppl_print_linear_expr): Declared.
1070 (debug_ppl_linear_expr): Declared.
1072 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1074 * graphite-interchange.c: Fix comments.
1075 * gcc.dg/graphite/block-1.c: Fix comments.
1077 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1079 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
1080 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
1082 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1084 Reapply the patch from Alexander Monakov that disappeared during
1085 the last merges from trunk.
1087 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1089 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1090 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1092 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1094 * graphite-interchange.c (memory_stride_in_loop): The depth
1095 argument corresponds to a dynamic time dimension, so use
1096 psct_dynamic_dim to refer to the transformed scattering dimension.
1098 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1100 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
1102 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1104 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
1106 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
1107 the root of the LST.
1108 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
1110 (print_lst): Print the root of LST in a different format.
1111 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
1113 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1115 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
1117 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1119 * doc/passes.texi: Document the Graphite infrastructure.
1121 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1123 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
1124 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
1125 and check the SSA representation.
1127 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
1129 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1131 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1133 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1135 * gcc.dg/graphite/interchange-11.c: New.
1137 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1139 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1141 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1143 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1144 Add -fno-loop-strip-mine and -fno-loop-interchange.
1145 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1146 -fno-loop-strip-mine.
1147 * gfortran.dg/graphite/graphite.exp: Same.
1149 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1151 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1152 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1153 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1154 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1155 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1156 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1157 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1158 DEFAULT_FLAGS_GRAPHITE_SCOP.
1159 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1160 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1162 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1164 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1166 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1167 Sebastian Pop <sebastian.pop@amd.com>
1169 * graphite-interchange.c (build_linearized_memory_access): Pass an
1170 offset as parameter.
1171 (memory_stride_in_loop): Include transform scattering in the
1172 access functions to be able to querry the strides in the
1174 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1175 not the psct_iterator_dim.
1177 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1179 * graphite-blocking.c (pbb_do_strip_mine): Removed.
1180 (lst_do_strip_mine_loop): New.
1181 (lst_do_strip_mine): New.
1182 (scop_do_strip_mine): Call lst_do_strip_mine.
1183 * graphite-poly.h (lst_add_loop_under_loop): New.
1184 (lst_find_first_pbb): New.
1186 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1188 * graphite-poly.c (loop_to_lst): Fix LST creation.
1190 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1192 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
1193 sizeof(unsigned long) to make it run on 32bit systems.
1195 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1197 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
1200 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1202 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1204 (write_alias_graph_to_ascii_dot): New.
1205 (write_alias_graph_to_ascii_ecc): Ditto.
1206 (partition_drs_to_sets): Add testing of optimality of current method
1207 which assigns alias numbers according to DFS Comopnent number. used
1208 as heuristic for the upcoming ECC algorithm.
1209 (build_scop_drs): Write to file also with the ecc and dot format.
1211 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1213 * gfortran.dg/graphite/interchange-1.f: XFail.
1215 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1217 * graphite.c (graphite_initialize): Do not handle functions with
1218 more than 100 basic blocks.
1220 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1222 * graphite-blocking.c (pbb_do_strip_mine): Use
1223 PARAM_LOOP_BLOCK_TILE_SIZE.
1225 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1227 * graphite-poly.c (dot_lst_1): New.
1229 * graphite-poly.h (dot_lst): Declared.
1231 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1233 * graphite-dependences.c (dot_deps_stmt_1): New.
1234 (dot_deps_stmt): New.
1235 * graphite-dependences.h (dot_deps_stmt): Declared.
1237 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1239 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1240 not replace cross BB scalar dependences ending on PHI nodes.
1241 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1243 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1245 * graphite-poly.c (apply_poly_transforms): Implement the high
1246 level driver for flag_loop_block.
1247 * opts.c (decode_options): Enable flag_loop_block at -O2.
1248 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1251 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1253 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1256 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1258 * graphite-poly.h (lst_find_pbb): New.
1259 (find_lst_loop): New.
1261 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1263 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1264 * graphite-poly.h (struct scop): Remove dep_graph field.
1265 (SCOP_DEP_GRAPH): Removed.
1267 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1269 * graphite-poly.h (copy_lst): Do full copy of LST.
1271 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1273 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1274 when the loop stride is zero.
1276 * gcc.dg/graphite/id-16.c: New.
1278 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1280 * graphite-dependences.c (reduction_dr_1): New.
1281 (reduction_dr_p): New.
1282 (graphite_legal_transform_dr): Call reduction_dr_p.
1283 (reduction_ddr): Renamed reduction_ddr_p.
1284 * graphite-poly.h (same_pdr_p): New.
1285 (number_of_write_pdrs): New.
1286 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1287 (split_reduction_stmt): Do not split reduction statements
1288 when there are no writes to memory.
1289 (translate_scalar_reduction_to_array_for_stmt): Insert the
1290 memory reduction statement just after the scalar reduction statement.
1292 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1294 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1295 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1297 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1299 * graphite-interchange.c (lst_apply_interchange): New.
1300 (lst_interchange_profitable_p): New.
1301 (lst_try_interchange_loops): New.
1302 (lst_try_interchange): New.
1303 (lst_do_interchange): New.
1304 (pbb_do_interchange): Removed.
1305 (scop_do_interchange): Call lst_do_interchange.
1307 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1309 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1310 SCOP_TRANSFORMED_SCHEDULE.
1315 * graphite-poly.h (lst_p): New.
1318 (LST_LOOP_FATHER): New.
1321 (scop_to_lst): Declared.
1322 (print_lst): Declared.
1323 (debug_lst): Declared.
1324 (new_lst_loop): New.
1325 (new_lst_stmt): New.
1328 (lst_dewey_number): New.
1329 (struct scop): Add original_schedule and transformed_schedule fields.
1330 (SCOP_ORIGINAL_SCHEDULE): New.
1331 (SCOP_TRANSFORMED_SCHEDULE): New.
1332 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1334 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1336 * graphite-dependences.c (reduction_ddr): New.
1337 (graphite_legal_transform_bb): Call reduction_ddr.
1338 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1339 Initialize PBB_IS_REDUCTION.
1340 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1341 (PBB_IS_REDUCTION): New.
1342 (new_poly_bb): Update declaration.
1343 * graphite-scop-detection.h (build_scop_bbs): Removed.
1344 (nb_reductions_in_loop): Removed.
1345 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1346 parameter for reductions.
1347 (try_generate_gimple_bb): Update call to new_poly_bb.
1348 (build_scop_bbs_1): Same.
1349 (build_scop_bbs): Same.
1350 (gsi_for_phi_node): New.
1351 (scalar_close_phi_node_p): Remove gcc_assert.
1352 (split_reduction_stmt): New.
1353 (is_reduction_operation_p): New.
1354 (phi_contains_arg): New.
1355 (follow_ssa_with_commutative_ops): New.
1356 (detect_commutative_reduction_arg): New.
1357 (detect_commutative_reduction_assign): New.
1358 (follow_inital_value_to_phi): New.
1359 (edge_initial_value_for_loop_phi): New.
1360 (initial_value_for_loop_phi): New.
1361 (detect_commutative_reduction): New.
1362 (translate_scalar_reduction_to_array_for_stmt): New.
1363 (insert_copyout): New.
1364 (insert_copyin): New.
1365 (translate_scalar_reduction_to_array): New.
1366 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1367 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1368 (rewrite_commutative_reductions_out_of_ssa): New.
1369 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1370 * sese.h (split_region_for_bb): New.
1372 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1373 * gcc.dg/graphite/interchange-1.c: Fix format.
1374 * gcc.dg/graphite/interchange-10.c: New.
1376 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1378 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1381 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1383 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1384 (rewrite_cross_bb_scalar_dependence): New.
1385 (rewrite_cross_bb_scalar_deps): New.
1386 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1387 Call rewrite_cross_bb_scalar_deps.
1389 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1391 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1392 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1395 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1397 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1398 * graphite-interchange.c (pbb_do_interchange): Same.
1399 * graphite-poly.c (print_scattering_function): Same.
1401 * graphite-poly.h (pbb_loop): New.
1402 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1404 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1406 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1408 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1410 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1411 so don't pass a pointer to it.
1412 (build_alias_set_for_drs): Same.
1413 (build_base_obj_set_for_drs): Same.
1414 (build_scop_drs): Same.
1416 2009-09-26 Li Feng <nemokingdom@gmail.com>
1418 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1419 the alias graph of data references.
1421 2009-09-25 Li Feng <nemokingdom@gmail.com>
1423 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1424 (build_scop_drs): When debugging, write the alias graph to file,
1425 otherwise, should be disabled.
1427 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1429 * Merge from mainline (151310:151361).
1431 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1433 * Merge from mainline (151171:151310).
1435 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1437 * Merge from mainline (151171:151806).
1439 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1441 * Revert the last commit.
1443 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1445 * Merge from mainline (151171:151819).
1447 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1449 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1450 (is_simple_operand): Remove call to stmt_simple_memref_p.
1451 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1453 2009-09-17 David Edelsohn <edelsohn@gnu.org>
1455 * gcc.dg/graphite/interchange-mvt.c: New File.
1456 * gcc.dg/graphite/scop-dsyrk.c: New File.
1457 * gcc.dg/graphite/scop-dsyr2k.c: New File.
1458 * gcc.dg/graphite/scop-mvt.c: New File.
1459 * gcc.dg/graphite/scop-sor.c: New File.
1461 2009-09-17 Li Feng <nemokingdom@gmail.com>
1463 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1464 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1465 (graphite_carried_dependence_level_k): Ditto.
1466 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1467 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1468 (new_poly_dr): Adjust declaration.
1469 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1470 (free_gimple_bb): Added free_data_refs_aux.
1471 (build_poly_dr): Add dr_base_object_set.
1472 (partition_drs_to_sets): New.
1473 (dr_same_base_object_p): New.
1474 (build_alias_set_for_drs): New.
1475 (build_base_object_set_for_drs): New.
1476 (build_scop_drs): Add build_base_obj_set_for_drs.
1477 * graphite-sese-to-poly.h: Added #define for alias set number index and
1478 base object set index.
1479 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1480 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1482 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1484 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1485 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1487 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1489 * graphite-sese-to-poly.c (struct irp_data): Removed.
1490 (idx_record_params): Removed.
1491 (find_params_in_bb): Scan for parameters the access functions; don't
1492 parse the tree representation.
1494 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1496 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1497 passes at -O1 and below.
1499 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1501 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1502 tree-scalar-evolution.h, and then tree-data-ref.h.
1503 * graphite-clast-to-gimple.c: Same.
1504 * graphite-dependences.c: Same.
1505 * graphite-interchange.c: Same.
1506 * graphite-poly.c: Same.
1507 * graphite-scop-detection.c: Same.
1508 * graphite-sese-to-poly.c: Same.
1510 * lambda-code.c: Same.
1511 * matrix-reorg.c: Same.
1512 * tree-data-ref.c: Same.
1513 * tree-if-conv.c: Same.
1514 * tree-loop-distribu: Same.: Same.
1515 * tree-loop-linear.c: Same.
1516 * tree-parloops.c: Same.
1517 * tree-predcom.c: Same.
1518 * tree-vect-patterns.c: Same.
1520 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1522 Partially revert the previous patch, except the following.
1523 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1524 as parameters the operands of the not expression.
1526 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1528 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1529 Do not call analyze_scalar_evolution on assignments.
1530 (instantiate_scev_phi): Call analyze_scalar_evolution.
1531 (instantiate_scev_name): Call instantiate_scev_assign and
1532 instantiate_scev_phi.
1533 (instantiate_scev_not): Adapted to pass as parameters the operands
1534 of the not expression.
1536 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1538 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1539 to pass as parameters the operands of the binary expression.
1541 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1543 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1544 instantiate_scev_not. Handle NEGATE_EXPR.
1545 (instantiate_scev_r): Handle NEGATE_EXPR.
1547 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1549 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1551 (instantiate_scev_r): Move code in instantiate_scev_2
1552 and instantiate_scev_1.
1554 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1556 * tree-scalar-evolution.c (instantiate_scev_3): New.
1557 (instantiate_scev_1): Move code in instantiate_scev_3.
1559 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1561 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1562 (instantiate_scev_1): Move code in instantiate_scev_poly.
1564 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1566 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1567 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1569 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1571 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1572 (instantiate_scev_1): Move code in instantiate_scev_convert.
1574 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1576 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1577 (instantiate_scev_1): Move code in instantiate_scev_binary.
1579 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1581 * tree-scalar-evolution.c (instantiate_scev_name): New.
1582 (instantiate_scev_1): Move code in instantiate_scev_name.
1584 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1586 * Merge from mainline (150992:151171).
1588 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1590 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1592 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1594 * graphite-dependences.c (graphite_legal_transform_bb): Call
1595 pbb_remove_duplicate_pdrs.
1596 * graphite-poly.c (can_collapse_pdr): Removed.
1597 (pdr_find_duplicate): Removed.
1598 (can_collapse_pdrs): New.
1599 (pbb_remove_duplicate_pdrs): New.
1600 (new_poly_dr): Do not look for duplicates.
1601 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1602 (PBB_PDR_DUPLICATES_REMOVED): New.
1603 (pbb_remove_duplicate_pdrs): Declared.
1605 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1607 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1608 the strides by multiplying by PDR_NB_REFS.
1609 * graphite-poly.c (can_collapse_pdr): New.
1610 (pdr_find_duplicate): New.
1611 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1612 Initialize PDR_NB_REFS.
1613 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1615 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1617 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1619 Revert one of the previous commits:
1620 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1621 the computation of symmetric data dependence relations.
1622 (dependency_between_pbbs_p): Same.
1624 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1627 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1630 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1632 * graphite-dependences.c (pddr_original_scattering): Return NULL
1633 for read-read dependence relations.
1634 * graphite-poly.h (enum poly_dr_type): Fix comment.
1637 (pdr_may_write_p): New.
1639 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1641 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1642 (struct poly_dr): Same.
1643 (new_poly_dr): Same.
1644 * graphite-poly.c (new_poly_dr): Same.
1646 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1647 Sebastian Pop <sebastian.pop@amd.com>
1649 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1650 pbb_strip_mine_time_depth. Changed the implementation so that
1651 transformation is expressed as a transformation on
1652 time (scatttering) dimensions. Also, ensures that the 2d+1
1653 scheduling format is preserved.
1654 (pbb_strip_mine_profitable_p): Profitability is based on the
1655 iteration number of a given time (scattering) dimension,
1656 and not on a original loop depth dimension.
1657 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1658 (pbb_do_strip_mine): Call psct_dynamic_dim.
1659 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1660 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1661 (pbb_nb_dynamic_scattering_transform): New.
1662 (psct_dynamic_dim): New.
1664 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1666 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1667 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1668 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1669 * graphite-interchange.c (build_linearized_memory_access): Same.
1670 (memory_stride_in_loop): Same.
1672 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1674 * graphite-dependences.c (pddr_original_scattering): New.
1675 (graphite_legal_transform_dr): Call pddr_original_scattering.
1678 * graphite-dependences.h (dot_deps): Declared.
1679 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1680 (print_pdr): Print PDR_ID.
1681 * graphite-poly.h (struct poly_dr): Add field id.
1684 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1686 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1688 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1689 not delete the original dependence relation.
1691 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1693 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1694 the computation of symmetric data dependence relations.
1695 (dependency_between_pbbs_p): Same.
1697 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1699 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1700 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1701 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1702 (free_poly_ddr): New.
1703 (pddr_is_empty): New.
1704 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1705 (dependence_polyhedron): Same. Remove useless gcc_assert.
1707 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1708 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1709 * graphite-dependences.h (enum poly_dependence_kind): New.
1710 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1711 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1712 (PDRP_SINK): Renamed PDDR_SINK.
1713 (PDRP_DDP): Renamed PDDR_DDP.
1715 (free_poly_ddr): Declared.
1716 * graphite-poly.c (new_scop): Use the new hash function names.
1717 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1718 into original_pddrs.
1719 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1721 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1723 * Merge from mainline (150764:150992).
1725 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1727 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1728 bounds with LT_EXPR to make niter analysis more precise on code
1729 generated by Graphite.
1731 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1733 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1734 (graphite_legal_transform_bb): Same.
1735 (poly_drs_may_alias_p): Same.
1737 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1740 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1741 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1743 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1745 * graphite-poly.c (print_pbb): Print PBB index.
1747 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1749 * Merge from mainline (r150672:150764).
1751 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1753 * graphite-interchange.c (ppl_max_for_le): Moved...
1754 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1755 * graphite-ppl.c (ppl_max_for_le): ... here.
1756 * graphite-ppl.h (ppl_max_for_le): Declared.
1758 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1760 * Merge from mainline (r150372:150672).
1762 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1765 * sese.c (convert_for_phi_arg): New.
1766 (add_guard_exit_phis): Use convert_for_phi_arg.
1768 * gfortran.dg/graphite/id-17.f: New.
1770 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1772 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1773 unknown subscript upper bounds.
1775 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1777 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1778 Pranav Garg <pranav.garg2107@gmail.com>
1780 * graphite-interchange.c (gather_access_strides): Removed.
1781 (ppl_max_for_le): New.
1782 (build_linearized_memory_access): New.
1783 (memory_stride_in_loop): New.
1784 (pbb_interchange_profitable_p): Reimplemented.
1785 * graphite-ppl.h (ppl_new_id_map): New.
1786 (ppl_interchange): New.
1788 * gcc.dg/graphite/interchange-6.c: XFAILed.
1790 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1792 * graphite-interchange.c (compute_subscript): Removed.
1793 (compute_array_size_cstr): Removed.
1794 (compute_array_size_poly): Removed.
1795 (compute_array_size): Removed.
1796 (gather_access_strides_poly): Removed.
1797 (gather_access_strides): Empty.
1799 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1801 * graphite-dependences.c (dependence_polyhedron_1): Replace
1802 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1803 (graphite_legal_transform_dr): Same.
1804 (graphite_carried_dependence_level_k): Same.
1805 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1806 Initialize PDR_NB_SUBSCRIPTS.
1807 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1809 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1810 (PDR_NB_SUBSCRIPTS): New.
1811 (pdr_nb_subscripts): Removed.
1812 (pdr_dim): Simplified.
1813 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1814 with PDR_NB_SUBSCRIPTS.
1816 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1818 * graphite-interchange.c (compute_array_size): Remove use of
1820 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1821 Do not initialize PDR_DATA_CONTAINER.
1822 (print_pdr): Do not print PDR_DATA_CONTAINER.
1823 * graphite-poly.h (struct poly_dr): Remove data_container field.
1824 (PDR_DATA_CONTAINER): Removed.
1825 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1827 (build_poly_dr): Same.
1829 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1831 * gcc.dg/graphite/interchange-9.c: New.
1833 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1834 Sebastian Pop <sebastian.pop@amd.com>
1836 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1837 copy of the dependence polyhedron. Free the temporary objects.
1838 (graphite_carried_dependence_level_k): Free unused objects before
1841 * gcc.dg/graphite/interchange-1.c: XFAILed.
1842 * gcc.dg/graphite/interchange-2.c: XFAILed.
1843 * gcc.dg/graphite/interchange-3.c: XFAILed.
1844 * gcc.dg/graphite/interchange-4.c: XFAILed.
1845 * gcc.dg/graphite/interchange-7.c: XFAILed.
1847 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1849 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1850 Early return without analyzing the data dependences if no
1851 transform has been done. Call restore_scattering if the transform
1853 (graphite-interchange.c): Same.
1854 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1855 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1856 (apply_poly_transforms): Do not gcc_assert that
1857 the transform is legal.
1858 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1859 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1860 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1861 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1862 * graphite-poly.h (struct poly_scattering): New.
1863 (struct poly_bb): Add original, transformed, and saved fields.
1864 Remove transformed_scattering, original_scattering, nb_local_variables,
1865 and nb_scattering_transform fields.
1866 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1867 (poly_scattering_new): New.
1868 (poly_scattering_free): New.
1869 (poly_scattering_copy): New.
1870 (store_scattering_pbb): New.
1871 (store_scattering): New.
1872 (restore_scattering_pbb): New.
1873 (restore_scattering): New.
1874 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1875 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1877 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1879 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1882 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1884 * Makefile.in (graphite.o): Depends on PREDICT_H.
1885 * graphite.c: Include predict.h.
1886 (graphite_finalize): Call tree_estimate_probability.
1887 * predict.c (predict_loops): Do not call scev_initialize and
1889 (tree_estimate_probability_bb): New.
1890 (tree_estimate_probability): Do not initialize loops: move that
1891 code to the driver. Call tree_estimate_probability_bb.
1892 (tree_estimate_probability_driver): New.
1893 (pass_profile): Use tree_estimate_probability_driver.
1894 * predict.h (tree_estimate_probability): Declared.
1896 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1898 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1899 * graphite-dependences.c (graphite_legal_transform): Add time to
1900 TV_GRAPHITE_DATA_DEPS.
1901 (dependency_between_pbbs_p): Same.
1902 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1904 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
1906 * Merge from mainline (r149952:150372).
1908 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1910 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1911 * graphite-blocking.c: Same.
1912 * graphite-clast-to-gimple.c: Same.
1913 * graphite-dependences.c: Same.
1914 * graphite-poly.c: Same.
1915 * graphite-poly.h: Same.
1916 * graphite-ppl.c: Same.
1917 * graphite-scop-detection.c: Same.
1918 * graphite-sese-to-poly.c: Same.
1921 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1923 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1924 (remove_simple_copy_phi): New.
1925 (remove_invariant_phi): New.
1926 (simple_copy_phi_p): New.
1927 (reduction_phi_p): New.
1928 (gsi_for_ssa_name_def): New.
1929 (insert_out_of_ssa_copy): New.
1930 (insert_out_of_ssa_copy_on_edge): New.
1931 (create_zero_dim_array): New.
1932 (scalar_close_phi_node_p): New.
1933 (rewrite_close_phi_out_of_ssa): New.
1934 (rewrite_phi_out_of_ssa): New.
1935 (rewrite_reductions_out_of_ssa): New.
1936 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1938 * gcc.dg/graphite/id-11.c: New.
1939 * gcc.dg/graphite/id-15.c: New.
1940 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1941 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1942 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1943 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1944 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1945 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1946 * gfortran.dg/graphite/id-13.f: New.
1947 * gfortran.dg/graphite/id-5.f: New.
1949 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1951 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1952 check that nb_reductions_in_loop is zero.
1953 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1954 reduction phi nodes.
1955 (nb_reductions_in_loop): Removed.
1956 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1957 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1958 (bb_contains_non_iv_scalar_phi_nodes): Removed.
1959 (scop_contains_non_iv_scalar_phi_nodes): Removed.
1960 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1962 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1964 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1965 statements that have an empty iteration domain.
1966 * gfortran.dg/graphite/id-16.f: New.
1968 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1970 * tree-scalar-evolution.c (instantiate_scev_1): Return
1971 chrec_dont_know when the result is not above instantiate_below.
1972 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1973 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1974 the tree has a known scalar evolution.
1975 * gfortran.dg/graphite/id-14.f: New.
1976 * gfortran.dg/graphite/id-15.f: New.
1978 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1980 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1982 (rename_variables): Keep inserting renames after the ones already
1985 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1987 * graphite-sese-to-poly.c (compare_bb_depths): New.
1988 (graphite_sort_dominated_info): New.
1989 (build_scop_bbs_1): Call graphite_sort_dominated_info.
1990 (build_scop_scattering): Fix comment.
1992 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1994 * graphite.c (graphite_finalize): Call print_loops instead of
1995 dump_function_to_file.
1996 * gcc.dg/graphite/graphite.exp: Fix formatting.
1997 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
1998 loops generated in the graphite output file.
1999 * gcc.dg/graphite/pr35356-2.c: New.
2000 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
2001 * gfortran.dg/graphite/id-12.f: New.
2003 2009-07-24 Li Feng <nemokingdom@gmail.com>
2005 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
2008 2009-07-24 Li Feng <nemokingdom@gmail.com>
2009 Tobias Grosser <grosser@fim.uni-passau.de>
2011 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
2012 alias set number build alias in ACCESSES polyhedron.
2013 (build_alias_set_for_drs): New.
2014 (build_pbb_drs): Added build_alias_set_for_drs.
2015 * graphite-dependences.c (poly_drs_may_alias_p): New.
2016 (graphite_carried_dependence_level_k): Check alias information
2017 before building polyhedron.
2019 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2021 * Makefile.in (lambda-code.o): Fix formatting.
2023 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2025 * Merge from mainline (r149350-149952)
2027 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2029 * graphite-poly.c (apply_poly_transforms): Move strip_mine
2030 before interchange to prepare for loop blocking.
2032 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2034 * graphite-poly.c (apply_poly_transforms): Add checks after every
2036 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
2037 done in apply_poly_transforms.
2039 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2041 * graphite-dependences.c (build_lexicographically_gt_constraint):
2042 Replace RES parameter with *RES.
2043 (dependence_polyhedron_1): Pass an address of the parameter RES
2044 instead of value of RES.
2046 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2048 * graphite.c (graphite_finalize): Fix comment.
2049 (graphite_transform_loops): Reset scev info after code generation
2052 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2054 * graphite.c (graphite_finalize): Call scev_reset.
2056 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2058 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
2059 GBB_CLOOG_IV_TYPES hash table twice.
2060 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
2061 (add_condition_to_domain): Clear GMP values.
2063 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2065 * graphite-dependences.c: Fix formatting.
2066 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
2067 (pbb_number_of_iterations): Free ppl_Linear_Expression.
2068 * graphite-sese-to-poly.c: Fix formatting.
2069 * graphite.c (graphite_transform_loops): Create the hash table
2070 after the early return.
2072 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2074 * gcc.dg/graphite/id-14.c: New.
2075 * gcc.dg/graphite/pr40157.c: New.
2076 * gfortran.dg/graphite/id-11.f: New.
2078 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2080 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
2081 (build_poly_scop): Return false when there are no pbbs within
2082 loops to avoid to pass to cloog scops with no loops.
2084 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2086 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
2087 useless test "i % 2".
2088 (build_pbb_scattering_polyhedrons): Fix formatting.
2089 (build_poly_dr): Same.
2090 * graphite.c (graphite_transform_loops): Restructure.
2092 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
2094 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
2095 reduction_list parameter.
2096 (rewrite_all_phi_nodes_with_iv): Same.
2097 (canonicalize_loop_ivs): Same.
2098 * tree-parloops.c (struct brli): Removed.
2099 (build_reduction_list_info): Removed.
2100 (build_new_reduction): New.
2101 (analyze_reduction_list): Removed.
2102 (gather_scalar_reductions): Find reductions instead of phi
2103 nodes that can't be canonicalized.
2104 (try_create_reduction_list): Remove reduction_list parameter.
2105 (gen_parallel_loop): Same.
2106 (parallelize_loops): Remove analyze_reductions variable,
2107 initialization and free.
2108 Change reduction_list htab initialization to reduction_info
2109 elements instead of ssa names.
2110 Call try_create_reduction_list and gen_parallel_loop without
2111 analyzed_reduction argument.
2112 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
2113 canonicalize_loop_ivs with one less argument.
2114 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2116 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2118 * graphite-dependences.c (new_poly_dr_pair): New.
2119 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
2120 (new_poly_dr_pair): New.
2121 (eq_poly_dr_pair_p): New.
2122 (hash_poly_dr_pair_p): New.
2123 * graphite-dependences.h (struct poly_dr_pair): New.
2124 (eq_poly_dr_pair_p): Declared.
2125 (hash_poly_dr_pair_p): Declared.
2126 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
2127 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
2128 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
2129 * Makefile.in (graphite-poly.o): Add dependence on
2130 graphite-dependences.h.
2132 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2134 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2135 polynomials of degree > 1 pass to Graphite.
2136 * tree-chrec.c (scev_is_linear_expression): Call
2137 evolution_function_is_affine_multivariate_p.
2138 * gfortran.dg/graphite/id-10.f90: New.
2140 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2142 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2143 Instantiate scevs varying in outer loops.
2144 * gfortran.dg/graphite/id-9.f: Correct testcase.
2146 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2148 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2149 redundant constraint.
2151 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2153 * gcc.dg/graphite/graphite.exp: Fix comments.
2154 * gfortran.dg/graphite/graphite.exp: Trigger actions
2155 based on the file names as in the C testsuite.
2156 * gfortran.dg/graphite/block-1.f90: Fix patterns.
2157 * gfortran.dg/graphite/block-2.f: Same.
2158 * gfortran.dg/graphite/block-3.f90: Same.
2159 * gfortran.dg/graphite/block-4.f90: Same.
2160 * gfortran.dg/graphite/id-1.f90: Same.
2161 * gfortran.dg/graphite/id-2.f90: Same.
2162 * gfortran.dg/graphite/id-3.f90: Same.
2163 * gfortran.dg/graphite/id-4.f90: Same.
2164 * gfortran.dg/graphite/id-6.f: Same.
2165 * gfortran.dg/graphite/id-9.f: Same.
2166 * gfortran.dg/graphite/interchange-1.f: Same.
2167 * gfortran.dg/graphite/interchange-2.f: Same.
2168 * gfortran.dg/graphite/scop-1.f: Same.
2170 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2172 * sese.c (expand_scalar_variables_call): New.
2173 (expand_scalar_variables_ssa_name): Handle calls in expander.
2175 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2177 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2178 Expect to see the pattern twice.
2179 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2180 * gcc.dg/graphite/interchange-5.c: Same.
2181 * gcc.dg/graphite/interchange-6.c: Same.
2183 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2185 * gcc.dg/graphite/id-10.c: New.
2186 * gcc.dg/graphite/id-12.c: New.
2187 * gfortran.dg/graphite/id-7.f: New.
2188 * gfortran.dg/graphite/id-8.f: New.
2190 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2192 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2195 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2197 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2199 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2201 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2203 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2205 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2206 building PDR subscripts.
2208 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2210 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2211 computation of array sizes.
2213 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2215 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2217 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
2219 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2220 build_pairwise_constraint, dr_equality_constraints,
2221 build_pairwise_scheduling_equality,
2222 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2223 build_lexicographically_gt_constraint, dependence_polyhedron,
2224 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2225 Move from NNC_Polyhedron to C_Polyhedron.
2226 * graphite-interchange.c (compute_array_size_poly,
2227 gather_access_strides): Dito.
2228 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2229 free_scop, pbb_number_of_iterations): Dito.
2230 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2231 pbb_dim_iter_domain, struct scop): Dito.
2232 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2233 new_Cloog_Domain_from_ppl_Polyhedron,
2234 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2235 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2236 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2237 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2238 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2239 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2240 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2241 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2242 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2243 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2244 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2245 build_scop_iteration_domain, build_poly_dr): Dito
2247 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2249 * gcc.dg/graphite/graphite.exp: Added a rule to execute
2251 * gcc.dg/graphite/run-id-1.c: New.
2253 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2255 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2256 positivity constraint on the symbolic number of iterations.
2258 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2260 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2262 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2263 Tobias Grosser <grosser@fim.uni-passau.de>
2265 * graphite-clast-to-gimple.c (build_scop_context): Removed.
2266 (build_cloog_prog): Directly use SCOP_CONTEXT.
2267 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2268 (free_scop): Free SCOP_CONTEXT.
2269 (print_scop_context): New.
2270 (print_scop): Call print_scop_context.
2271 (debug_scop_context): New.
2272 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2273 (struct scop): Added field context.
2274 (SCOP_CONTEXT): New.
2275 * graphite-sese-to-poly.c (add_param_constraints): New.
2276 (build_scop_context): New.
2277 (build_poly_scop): Call build_scop_context.
2279 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2281 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2282 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2283 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2284 * graphite-ppl.h: Include double-int.h and tree.h.
2285 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2286 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2287 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2288 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2290 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2292 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2293 POINTER_PLUS_EXPR for pointer types.
2294 (clast_to_gcc_expression): Same.
2296 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2298 * graphite-poly.c (print_scattering_function): Early return when
2299 PBB_TRANSFORMED_SCATTERING is not initialized.
2300 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2302 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2304 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2307 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
2309 * tree-parloops.c (analyze_reduction_list): Change return
2311 (try_create_reduction_list): Move the call to
2312 analyze_reduction_list to the beginining.
2313 Call reduction_phi with analyzed_reductions as argument
2314 instead of reduction_list.
2316 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2318 * Merge from mainline (r148296:149346)
2320 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2322 * graphite-scop-detection.c (graphite_can_represent_init): New.
2323 (graphite_can_represent_scev): Call graphite_can_represent_init:
2324 check that the initial value does not contain multiplications of
2326 (stmt_has_simple_data_refs_p): New.
2327 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2328 (is_simple_operand): Fix formatting.
2329 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2331 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2333 * gcc.dg/graphite/id-13.c: New.
2334 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2335 analyze_scalar_evolution, use scalar_evolution_in_region.
2336 (scan_tree_for_params_right_scev): Add extra assert.
2337 (parameter_index_in_region_1): Split from parameter_index_in_region.
2338 (idx_record_params): Use scalar_evolution_in_region.
2339 (find_params_in_bb): Same.
2340 (find_scop_parameters): Same.
2341 (build_loop_iteration_domains): Same.
2342 (create_linear_expr_from_tree): Same.
2343 * sese.c (scalar_evolution_in_region): New.
2344 * sese.h (scalar_evolution_in_region): Declared.
2345 (defined_in_sese_p): New.
2346 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2348 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2351 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2353 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2354 TREE_DATA_REF_H also implies SCEV_H.
2356 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2358 * graphite-poly.c (print_scop_params): New.
2359 (print_scop): Call print_scop_params.
2360 (debug_scop_params): New.
2361 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2363 2009-07-07 Li Feng <nemokingdom@gmail.com>
2365 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2366 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2367 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2368 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2369 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2370 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2372 2009-07-07 Li Feng <nemokingdom@gmail.com>
2374 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2375 for dependency checking part.
2376 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2377 tests for dependency checking.
2378 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2379 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2380 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2381 flag -fdump-tree-graphite-all for autopar testsuites.
2383 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2385 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2386 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2387 canonicalize_loop_ivs): Moved...
2388 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2390 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2392 * tree-parloops.c (try_create_reduction_list): Pass an extra
2393 argument analyzed_reductions. Call analyze_reduction_list.
2394 (gen_parallel_loop): Do not call analyze_reduction_list.
2395 (parallelize_loops): Init and finalize analyzed_reductions.
2397 2009-07-06 Li Feng <nemokingdom@gmail.com>
2399 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2400 Added flag -fno-loop-strip-mine for autopar testcase.
2402 2009-07-04 Li Feng <nemokingdom@gmail.com>
2404 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2405 transformed scattering dimension instead of unmatch orignal when
2406 calling dependence_polyhedron.
2408 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2410 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2412 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2414 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2415 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2417 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2419 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2420 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2421 * graphite-poly.c (pbb_number_of_iterations): New.
2422 * graphite-poly.h (pbb_number_of_iterations): Declared.
2423 (pbb_iterator_dim, pbb_parameter_dim): New.
2425 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2427 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2428 last commit on type of lower and upper bound of loops.
2430 2009-06-29 Li Feng <nemokingdom@gmail.com>
2432 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2433 graphite-dependences.h.
2434 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2435 (mark_bb_with_pbb): New.
2436 (get_stmtfor_depth): New.
2437 (find_pbb_via_hash): New.
2438 (dependency_in_loop_p): New.
2439 (mark_loops_parallel): New.
2440 (free_aux_in_new_loops): New.
2441 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2442 bb with it's relevant pbb. Mark newly created loops. Remove mark
2443 innermost loop parallel without checking.
2444 (gloog): Add parameter BB_PBB_MAPPING.
2445 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2446 (gloog): Change declaration.
2447 (mark_loop_parallel): Make extern.
2448 (free_aux_in_new_loops): Declare.
2449 (bb_pbb_map_hash): New.
2450 (eq_bb_pbb_map): New.
2451 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2452 auto parallelization when flag_graphite_force_parallel is set.
2453 (graphite_finalize): Added free_aux_in_new_loops.
2454 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2455 the innermost loop that marked parallel. Use
2456 flag_graphite_force_parallel instead of loop->can_be_parallel.
2457 (loop_parallel_p): Move inner most checking out of function.
2459 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2461 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2462 type of lower and upper bound of loops signed long int.
2464 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2466 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2467 expression outside the loop.
2469 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2471 * gcc.dg/graphite/interchange-8.c: New.
2473 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2475 * gcc.dg/graphite/interchange-0.c: XFailed.
2476 * gcc.dg/graphite/interchange-5.c: XFailed.
2477 * gcc.dg/graphite/interchange-6.c: XFailed.
2479 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2481 * graphite-interchange.c (compute_array_size_poly): The end of the
2482 recursion should return 1.
2484 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2486 * graphite-interchange.c (compute_array_size_cstr): Allow the
2487 subscript multiplier to be -1.
2488 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2489 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2490 data_container. Initializes PDR_DATA_CONTAINER.
2491 (print_pdr_access_layout): New.
2492 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2493 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2495 (PDR_DATA_CONTAINER): New.
2496 (new_poly_dr): Update declaration.
2497 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2498 (build_poly_dr): Call pdr_add_data_dimensions.
2500 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2502 * graphite-poly.h (struct poly_dr): Fix comment.
2503 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2504 (pdr_add_memory_accesses): New.
2505 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2507 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2509 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2510 (print_pbb): Add call to print_pdrs.
2511 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2513 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2514 Li Feng <nemokingdom@gmail.com>
2516 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2517 (dependency_between_pbbs_p): New.
2518 (lexicographically_gt_p): Assure !empty_p before polyhedron
2519 intersection assign.
2520 (build_lexicographically_gt_constraint): Correct lexicographically
2522 * graphite-dependences.h: New.
2523 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2525 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2527 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2528 (gloog): Print to dump_file the generated clast.
2529 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2530 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2532 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2534 * graphite-poly.c (extend_scattering): Increment
2535 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2537 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2539 * graphite-interchange.c (compute_array_size_poly): Added exit of
2540 recursion condition. Continue iterating even after the first equality.
2541 (compute_array_size): Same.
2543 2009-06-24 Li Feng <nemokingdom@gmail.com>
2545 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2546 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2547 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2548 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2549 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2551 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2553 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2554 only when the use verifies is_gimple_reg.
2556 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2558 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2559 Allocate scaldims after call to unify_scattering_dimensions.
2561 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2563 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2565 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2566 Albert Cohen <albert.cohen@inria.fr>
2568 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2569 variables for the strip mining.
2571 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2572 Pranav Garg <pranav.garg2107@gmail.com>
2574 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2575 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2576 (graphite-blocking.o): New rule.
2577 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2578 * graphite-blocking.c: New.
2579 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2580 flag_loop_strip_mine.
2581 (psct_scattering_dim_for_loop_depth): New.
2582 * graphite-poly.h (scop_do_strip_mine): Declared.
2583 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2584 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2585 flag_loop_strip_mine.
2587 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2589 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2590 a GMP value and a PPL coefficient at each iteration of a loop.
2592 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2594 * graphite-dependences.c (dependence_polyhedron): Do not use
2595 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2596 pbb_nb_scattering_transform.
2597 (graphite_legal_transform_dr): Same.
2598 * graphite-poly.c (extend_scattering): Same.
2599 (unify_scattering_dimensions): Same.
2600 (print_scattering_function): Same.
2601 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2602 PBB_NB_LOCAL_VARIABLES.
2603 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2604 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2605 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2606 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2607 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2608 (pbb_nb_scattering_transform): New.
2609 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2610 (psco_scattering_dim): Add assert on parameters.
2611 (psct_scattering_dim): Same.
2612 (psct_scattering_dim_for_loop_depth): Declared.
2613 (psct_local_var_dim): New.
2614 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2615 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2616 correct layout, call pbb_nb_local_vars.
2617 (psct_add_local_variable, psct_add_scattering_dimension): New.
2618 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2619 Initialize PBB_NB_SCATTERING_TRANSFORM.
2621 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2623 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2624 (set_coef): Renamed ppl_set_coef.
2625 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2627 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2629 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2630 test a boolean against 1.
2631 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2632 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2633 (pbb_do_interchange): Returns true when a transform has been performed.
2634 (scop_do_interchange): Same.
2635 * graphite-poly.c (apply_poly_transforms): Use the return value of
2636 scop_do_interchange.
2637 * graphite-poly.h (scop_do_interchange): Update declaration.
2639 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2641 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2643 * sese.c (sese_reset_aux_in_loops): New.
2644 * sese.h (sese_reset_aux_in_loops): New.
2646 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2648 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2649 multiplier and multiply the constant by the multiplier.
2650 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2651 (build_poly_dr): Do not use the multiplier to define the subscript.
2653 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2655 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2656 compiler's data reference. Initialize PDR_CDR.
2657 (print_pdr): Call dump_data_reference.
2658 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2659 Add compiler_dr field.
2660 (PDR_BB): Renamed PDR_PBB.
2662 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2663 GCC's data reference representation.
2664 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2665 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2667 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2669 * graphite-poly.c (print_scattering_function): Also print the layout.
2670 * graphite-poly.h (pbb_nb_local_vars): New.
2672 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2674 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2676 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2678 * graphite-poly.c (print_pdr, debug_pdr): New.
2679 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2680 (PDR_BASE): Removed.
2682 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2684 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2687 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2689 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2690 subscript identification column.
2691 (pbb_do_interchange): Print to dump_file that some loops "will be
2692 interchanged". Rely on that chain of characters in the testcases.
2693 * gcc.dg/graphite/interchange-0.c: New.
2694 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2695 interchange-*.c files and compile them with -floop-interchange.
2697 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2699 * graphite-interchange.c (interchange_profitable_p): Renamed
2700 pbb_interchange_profitable_p.
2702 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2703 Harsha Jagasia <harsha.jagasia@amd.com>
2704 Pranav Garg <pranav.garg2107@gmail.com>
2706 * graphite-interchange.c (interchange_profitable_p): Make static.
2707 (pbb_interchange_loop_depths, pbb_do_interchange,
2708 scop_do_interchange): New.
2709 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2710 for flag_loop_interchange.
2711 * graphite-poly.h (scop_do_interchange): Declared.
2712 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2713 flag_loop_interchange is used.
2715 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2717 * graphite-dependences.c (dependence_polyhedron): Update use of
2718 pbb_nb_scattering_dims.
2719 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2720 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2721 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2722 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2724 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2726 * graphite.c: Cleanup foo.
2728 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2730 * Merge from mainline (r143684:148293).
2731 * Disabled libpcp until it gets fixed.
2733 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2734 Harsha Jagasia <harsha.jagasia@amd.com>
2736 * graphite-interchange.c: New.
2737 * Makefile.in (graphite-interchange.o): New.
2738 * graphite-poly.h (interchange_profitable_p): Declared.
2739 * graphite-ppl.h (value_max): New.
2741 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2743 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2744 * graphite-poly.h: Fix some comments.
2748 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2751 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2752 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2753 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2754 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2755 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2756 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2757 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2758 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2759 * graphite-clast-to-gimple.c: Same.
2760 * graphite-dependences.c: Same.
2761 * graphite-poly.c: Same.
2762 * graphite-sese-to-poly.c: Same.
2764 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2766 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2767 expressions for an IV rename, as returned by clast_to_gcc_expression.
2768 (copy_renames): Rename new_name to expr.
2769 * sese.c (debug_rename_elt): Same.
2772 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2773 the information from the rename map.
2774 (rename_variables_in_stmt): Same.
2775 (add_loop_exit_phis): Rename new_name to expr.
2776 (insert_loop_close_phis): Same.
2777 (add_guard_exit_phis): Same. Call force_gimple_operand.
2778 * sese.h (struct rename_map_elt): Rename new_name to expr.
2779 (new_rename_map_elt): Same.
2781 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2783 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2784 * sese.c (set_rename): Make it extern.
2785 * sese.h (set_rename): Declared.
2787 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2789 * graphite-poly.c (extend_scattering): Free values.
2790 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2792 (ppl_print_powerset_matrix): Same.
2793 * graphite-scop-detection.c (free_scops_1): New.
2794 (limit_scops): Call free_scops_1.
2795 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2796 (build_poly_dr): Free PPL coefficients.
2797 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2799 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2801 * graphite-dependences.c: New.
2802 * graphite-data-ref.c: Removed.
2803 * graphite-data-ref.h: Removed.
2804 * Makefile.in (graphite-data-ref.o): Removed.
2805 (graphite-dependences.o): Added.
2806 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2807 * graphite-poly.c: Same.
2808 Move the data dependence testing to graphite-dependences.c.
2810 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2812 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2813 from graphite_cannot_represent_loop. Code refactored.
2814 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2816 2009-05-17 Li Feng <nemokingdom@gmail.com>
2818 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2819 Cover all the testcases (not only the filtered ones).
2821 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2823 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2824 unnecessary check. Update comments. Move check for REAL_TYPE here.
2825 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2826 done in (stmt_simple_for_scop_p).
2828 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2830 * graphite.c (print_global_statistics): New.
2831 (print_graphite_scop_statistic): New.
2832 (print_graphite_statistics): New.
2833 (graphite_initialize, graphite_transform_loops): Print statistics.
2834 * graphite-scop-detection (build_scops): Print statistics.
2835 (print_graphite_scop_statistics): New.
2836 (print_graphite_statistics): New.
2838 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2840 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2841 (debug_clast_name_index): Removed.
2842 (debug_clast_name_indexes_1): Removed.
2843 (debug_clast_name_indexes): Removed.
2844 (clast_name_index_elt_info): Removed.
2845 (eq_clast_name_indexes): Removed.
2846 (clast_name_to_index): Removed.
2847 (new_clast_name_index): Removed.
2848 (save_clast_name_index): Removed.
2849 (save_var_name): Moved...
2850 (init_sese_params_index): Removed.
2851 (clast_name_to_gcc): Remove use of name_tree.
2852 (initialize_cloog_names): Same.
2853 (gloog): Do not call init_sese_params_index.
2854 * graphite-sese-to-poly.c (save_var_name): ...here.
2855 (parameter_index_in_region): New.
2856 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2857 (parameter_index_in_region): Removed.
2858 (is_parameter): Remove use of name_tree.
2859 * sese.h (struct name_tree): Removed.
2860 (struct sese): Remove use of name_tree. New field params_names.
2861 (SESE_PARAMS_NAMES): New.
2862 (SESE_PARAMS): Remove duplicate.
2863 (parameter_index_in_region): Removed.
2864 (sese_nb_params): Remove use of name_tree.
2865 (struct clast_name_index): New.
2866 (new_clast_name_index): New.
2867 (clast_name_to_index): New.
2868 (save_clast_name_index): New.
2869 (debug_clast_name_index): New.
2870 (debug_clast_name_indexes_1): New.
2871 (debug_clast_name_indexes): New.
2872 (clast_name_index_elt_info): New.
2873 (eq_clast_name_indexes): New.
2875 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2877 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2878 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2879 (graphite_loop_normal_form): Do not pass region. Do not
2880 initialize SESE_OLDIVS.
2881 (build_graphite_loop_normal_form): Update call to
2882 graphite_loop_normal_form.
2883 * sese.c (debug_oldivs): Removed.
2884 (new_sese): Do not initialize SESE_OLDIVS.
2885 (free_sese): Do not free SESE_OLDIVS.
2886 (oldiv_for_loop): Removed.
2887 * sese.h (struct sese): Remove old_ivs.
2888 (SESE_OLDIVS): Removed.
2889 (oldiv_for_loop): Removed.
2891 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2893 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2894 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
2895 replaced by a call to newivs_to_depth_to_newiv.
2896 (clast_to_gcc_expression): Pass newivs, remove ivstack.
2897 (clast_to_gcc_expression_red): Same.
2898 (gcc_type_for_clast_expr): Same.
2899 (gcc_type_for_clast_eq): Same.
2900 (graphite_translate_clast_equation): Same.
2901 (graphite_create_guard_cond_expr): Same.
2902 (graphite_create_new_guard): Same.
2903 (graphite_create_new_loop): Same.
2904 (build_iv_mapping): Same.
2905 (translate_clast): Same.
2907 (loop_iv_stack_patch_for_consts): Removed. *
2908 sese.c (iv_stack_entry_is_constant): Removed.
2909 (iv_stack_entry_is_iv): Removed.
2910 (loop_iv_stack_push_iv): Removed.
2911 (loop_iv_stack_insert_constant): Removed.
2912 (loop_iv_stack_pop): Removed.
2913 (loop_iv_stack_get_iv): Removed.
2914 (loop_iv_stack_get_iv_from_name): Removed.
2915 (debug_loop_iv_stack): Removed.
2916 (free_loop_iv_stack): Removed.
2917 (loop_iv_stack_remove_constants): Removed. *
2918 sese.h (iv_stack_entry_kind): Removed.
2919 (iv_stack_entry_data_union): Removed.
2920 (iv_stack_entry_struct): Removed.
2921 (iv_stack_entry_p): Removed.
2922 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2923 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2924 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2925 loop_iv_stack_pop, free_loop_iv_stack): Removed.
2926 (gbb_loop_at_index): Fix indenting.
2927 (gbb_loop_index): Removed.
2929 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2931 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2932 Call clast_name_to_index.
2934 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2936 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2937 do not pass params. Get params from SESE_PARAMS.
2938 (clast_to_gcc_expression): Same.
2939 (clast_to_gcc_expression_red): Same.
2940 (gcc_type_for_clast_eq): Same.
2941 (graphite_translate_clast_equation): Same.
2942 (graphite_create_new_loop): Same.
2943 * sese.c (rename_variables_in_stmt): Fix comment.
2945 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2947 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2949 Call save_clast_name_index.
2950 (translate_clast): Pass newivs_index.
2951 (gloog): Create and free newivs_index.
2953 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2955 * graphite-clast-to-gimple.c (clast_name_index): New structure.
2956 (clast_name_index_p): New type.
2957 (debug_clast_name_index): New.
2958 (debug_clast_name_indexes_1): New.
2959 (debug_clast_name_indexes): New.
2960 (clast_name_index_elt_info): New.
2961 (eq_clast_name_indexes): New.
2962 (clast_name_to_index): New.
2963 (new_clast_name_index): New.
2964 (save_clast_name_index): New.
2965 (init_sese_params_index): New.
2966 (gloog): Call init_sese_params_index.
2967 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2968 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2969 (free_sese): Free SESE_PARAMS_INDEX.
2970 * sese.h (struct sese): Add params_index.
2971 (SESE_PARAMS_INDEX): New.
2973 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2975 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2976 (graphite_create_new_loop): Pass the newivs vector. Push the
2977 newly created IV to newivs.
2978 (translate_clast): Pass the newivs vector.
2979 (gloog): Create and destroy the newivs vector.
2981 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2983 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2984 (graphite_loop_normal_form): Initialize loop->aux with the unique
2985 IV that has been created.
2987 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
2989 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2990 scev with parameters in the base part. They where forbidden
2993 2009-05-11 Li Feng <nemokingdom@gmail.com>
2995 * gcc.dg/graphite/graphite.exp: Set different default
2996 compile options by file names.
2997 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2998 * gcc.dg/graphite/id-{1-9}.c: Ditto.
2999 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
3000 * gcc.dg/graphite/scop-matmult.c: Ditto.
3002 2009-05-08 Li Feng <nemokingdom@gmail.com>
3004 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
3005 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
3006 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
3007 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
3009 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3011 * graphite-scop-detection (build_scops_1): Fix little bug introduced
3014 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3016 * graphite-scop-detection.c (graphite_can_represent_scev): Only
3017 allow integer constant strides.
3018 (graphite_can_represent_expr): Depend on outermost_loop.
3019 (stmt_simple_memref_p, graphite_cannot_represent_loop,
3020 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
3021 build_scops_1): Same.
3022 (scopdet_basic_block_info): Same and insert layered SCoP
3024 (try_generate_gimple_bb): Cleanup.
3025 (build_scops): Enable data references.
3027 * gcc.dg/graphite/id-5.c: New.
3028 * gcc.dg/graphite/id-9.c: New.
3029 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
3030 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
3032 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3034 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
3035 that we have not yet built for this SCoP.
3037 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3039 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
3040 for complex numbers.
3042 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3044 * graphite-ppl.c: Fix build if cloog is not available.
3046 2009-05-04 Li Feng <nemokingdom@gmail.com>
3048 * tree-parloops.c (loop_parallel_p): Remove construction of
3049 NITER and REDUCTION_LIST.
3050 (try_get_loop_niter): New.
3051 (try_create_reduction_list): New.
3052 (parallelize_loops): Bypass the failed checkings in autopar
3053 when can_be_parallel in loop structure is set to true.
3055 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3057 * gcc.dg/graphite/id-6.c: Update testcase.
3058 * gcc.dg/graphite/scop-3.c: Dito.
3060 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3062 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3063 Enable EQ_EXPR and NE_EXPR again.
3065 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3067 * graphite-scop-detection.c (graphite_can_represent_scev):
3068 Add check if scev is affine multivariate.
3069 (harmful_stmt_in_bb): Check if we can represent the conditions.
3070 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
3072 * gcc.dg/graphite/id-7.c: New.
3074 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3076 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
3077 Check all bbs in region, not only the bbs that are represented in
3079 (build_poly_scop): Add newline.
3080 * gcc.dg/graphite/id-8.c: New.
3082 2009-04-30 Li Feng <nemokingdom@gmail.com>
3084 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
3085 when loop initialize.
3086 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
3087 * common.opt: Declare flag_graphite_force_parallel.
3088 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
3090 * graphite-poly.c (apply_poly_transforms): Introduce
3091 flag_graphite_force_parallel.
3092 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
3093 * toplev.c (process_options): ditto and replace a not correctly
3096 2009-04-30 Li Feng <nemokingdom@gmail.com>
3098 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
3099 Change the call of gbb_loop_at_index and/or gbb_loop_index due
3100 to the redefinition.
3101 (compute_cloog_iv_types_1): ditto.
3102 (build_iv_mapping): ditto.
3103 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
3105 (free_gimple_bb): Removed GBB_LOOPS related free part.
3106 (build_bb_loops): Removed.
3107 * sese.h (struct gimple_bb): Removed loops.
3108 (GBB_LOOPS): Removed.
3109 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
3110 (gbb_loop_index): ditto.
3112 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3114 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
3115 allow non constant strides.
3116 * gcc.dg/graphite/scop-20.c: New.
3118 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3120 * graphite-scop-detection.c (dot_all_scops): Fix system call
3121 return value warning.
3124 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3126 * gcc.dg/graphite/id-6.c: Fix pattern.
3127 * gcc.dg/graphite/scop-3.c: Same.
3129 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3131 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3132 build_pairwise_constraint, dr_equality_constraints,
3133 build_pairwise_scheduling_equality,
3134 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3135 build_lexicographically_gt_constraint, dependence_polyhedron,
3136 graphite_legal_transform_dr, graphite_legal_transform_bb,
3137 graphite_legal_transform): New.
3138 * graphite-poly.h (graphite_legal_transform): Declared.
3139 * graphite-sese-to-poly.c (build_poly_scop): Call to
3140 graphite_legal_transform is disabled for the moment.
3142 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3144 * graphite-poly.h (pbb_nb_scattering_dims): New.
3145 (pbb_nb_scattering): Use it.
3147 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3149 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3150 Pointset_Powerset version of ppl_insert_dimensions.
3151 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3153 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3155 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3157 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3159 * graphite-poly.h: Fix comment.
3161 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3163 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3165 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3167 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3170 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3172 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3173 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3176 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
3178 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3179 handle EQ_EXPR and NE_EXPR.
3181 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
3183 * graphite-poly.h (poly_dr): Fix comment.
3185 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3186 Tobias Grosser <grosser@fim.uni-passau.de>
3188 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3189 with a zero dimension polyhedron.
3190 (find_scop_parameters): Move the call to scop_set_nb_params here.
3191 (build_loop_iteration_domains): Store in loop->aux the iteration
3193 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3194 by any loop in scop.
3195 (build_poly_scop): Do not call scop_set_nb_params.
3197 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3198 Tobias Grosser <grosser@fim.uni-passau.de>
3200 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3201 add_condition_to_domain not GT_EXPR.
3203 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3205 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3206 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3207 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3208 upper_bound_assign to calculate unions.
3209 * gcc.dg/graphite/id-6.c: New.
3211 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3213 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3214 handle abnormal edges.
3216 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3218 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3219 (free_poly_bb): Also free poly_drs.
3220 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3221 (poly_dr): Polyhedron to Pointset_Powerset.
3222 (pdr_accessp_nb_subscripts): Same.
3223 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3226 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3228 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3229 names into more meaningful names.
3231 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3233 * gfortran.dg/graphite/interchange-1.c: New.
3234 * gfortran.dg/graphite/interchange-2.c: New.
3236 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3238 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3240 * tree-parloops.c (rewrite_phi_with_iv): New.
3241 (rewrite_all_phi_nodes_with_iv): New.
3242 (canonicalize_loop_ivs): Call them.
3244 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3246 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3247 graphite_find_data_references_in_stmt.
3248 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3249 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3251 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3253 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3255 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3257 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3258 instead of bb_in_region.
3259 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
3260 (build_sese_conditions): Use flag_bb_in_sese.
3261 * sese.c (register_bb_in_sese): Removed.
3262 (new_sese): Remove initialization of SESE_REGION_BBS.
3263 (free_sese): Do not free SESE_REGION_BBS.
3264 * sese.h (struct sese): Remove field region_basic_blocks.
3265 (SESE_REGION_BBS): Removed.
3266 (bb_in_sese_p): Implement in function of bb_in_region.
3268 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3270 * graphite-scop-detection.c (limit_scops): Deal only with single exit
3273 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3275 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3277 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3278 (add_condition_to_domain): New.
3279 (add_condition_to_pbb): New.
3280 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3281 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3283 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3285 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3286 ppl_Pointset_Powerset.
3287 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3288 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3289 (pbb_nb_loops): Same.
3290 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3291 add_conditions_to_domain): Same.
3292 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3293 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3294 ppl_const_Polyhedron_t.
3295 (ppl_print_powerset_matrix): New.
3296 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3297 ppl_print_powerset_matrix): New.
3298 (ppl_print_polyhedron_matrix): Updated.
3300 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3302 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3304 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3306 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3307 (print_iteration_domains, debug_iteration_domain,
3308 debug_iteration_domains): New.
3309 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3310 debug_iteration_domains): Declared.
3311 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3314 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
3315 Sebastian Pop <sebastian.pop@amd.com>
3317 * graphite-poly.h (print_iteration_domain): New.
3318 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3319 (build_sese_conditions_1, build_sese_conditions_after,
3320 build_sese_conditions_before): New.
3321 (build_sese_conditions): Rewritten.
3323 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3324 Tobias Grosser <grosser@fim.uni-passau.de>
3326 Cleanup of code generation liveouts.
3327 * graphite-clast-to-gimple.c (translate_clast): Use a single
3328 rename_map instead of one per translated statement.
3329 Do not use SESE_LIVEOUT_RENAMES.
3330 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3331 (gloog): Do not use SESE_LIVEOUT_RENAMES.
3332 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3333 phi node of a reduction: when a loop contains a reduction used outside
3334 the loop, there should be a scalar close phi node on the exit block.
3335 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3336 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3337 (free_sese): Do not free them.
3338 (sese_build_liveouts_use): Do not use them.
3339 (sese_build_liveouts_bb): Same.
3340 (sese_build_liveouts): Same.
3341 (sese_insert_phis_for_liveouts): Same.
3342 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
3343 (defined_in_loop_p): New.
3344 (alive_after_loop): New.
3345 (close_phi_not_yet_inserted_p): New.
3346 (struct alep, alep_p): New.
3347 (add_loop_exit_phis): Remove from the rename_map all the names defined
3348 in the code generated loop.
3349 (insert_loop_close_phis): Traverse the rename_map passed to it.
3350 Don't use SESE_LIVEOUT_RENAMES.
3351 (default_liveout_before_guard): Renamed default_before_guard.
3352 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3353 (graphite_copy_stmts_from_block): Do not directly call set_rename.
3354 (register_sese_liveout_renames): Removed.
3355 (copy_bb_and_scalar_dependences): Do not call it.
3356 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3358 (SESE_LIVEOUT): Removed.
3359 (SESE_LIVEOUT_RENAMES): Removed.
3360 (SESE_REDUCTION_LIST): Removed.
3361 (sese_build_liveouts): Removed.
3362 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3363 (insert_loop_close_phis): Pass a htab_t instead of a sese.
3364 (insert_guard_phis): Same.
3365 (rename_map_elt): Declare a VEC of them.
3366 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3367 trees not pointers to trees.
3369 Rewrite in canonical close SSA form:
3370 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3371 (limit_scops): Close the scop after the block containing the close phi
3373 (canonicalize_loop_closed_ssa): New.
3374 (canonicalize_loop_closed_ssa_form): New.
3375 (build_scops): Call canonicalize_loop_closed_ssa_form.
3377 * graphite-sese-to-poly.c: Fix typos.
3379 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3381 * graphite-poly.c (print_scattering_function, print_pbb_domain):
3383 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3384 (print_pbb): Add conditions.
3386 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
3387 Sebastian Pop <sebastian.pop@amd.com>
3389 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3390 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3391 (build_scop_bbs_1): New.
3392 (build_scop_bbs): Rewrite.
3393 * sese.h (bb_in_region): New.
3395 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3397 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3399 (print_scop): Style.
3400 * graphite-poly.h (poly_bb): Add drs vector.
3401 (PBB_DRS): Add accessor.
3402 * graphite-sese-to-poly.c (build_poly_dr): New.
3403 (build_pbb_drs, build_scop_drs): New.
3404 (build_poly_scop): call build_scop_drs (Disabled at the moment).
3406 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3408 * tree-ssa-loop.c: Include forgotten toplev.h
3410 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3412 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
3413 * gcc.dg/graphite/pr37883.c: Remove -floop-*
3414 * gcc.dg/graphite/pr37928.c: Same
3415 * gcc.dg/graphite/pr38409.c: Same
3416 * gcc.dg/graphite/pr38498.c: Same
3417 * gcc.dg/graphite/pr38559.c: Same
3418 * gcc.dg/graphite/pr39335.c: Same
3419 * gcc.dg/graphite/pr39335_1.c: Same
3420 * gfortran.dg/graphite/block-2.f: Same
3421 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3424 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
3426 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3427 build_access_matrix, build_scop_data_accesses): Remove access function
3428 building. (We get a new version soon).
3429 (build_bb_loops, scan_tree_for_params_right_scev): Update.
3430 * sese.h (nb_loops_around_loop_in_sese): Remove.
3431 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3433 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
3434 Sebastian Pop <sebastian.pop@amd.com>
3436 * graphite-scop-detection.c (struct scopdet_info): Rename last
3438 (scopdet_basic_block_info, build_scops_1): Don't use
3439 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
3441 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
3442 Sebastian Pop <sebastian.pop@amd.com>
3444 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3445 * sese.c (sese_build_liveouts_use): Renamed from
3446 sese_build_livein_liveouts_use. Remove liveins.
3447 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3448 Call sese_build_liveouts_use.
3449 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3450 Call sese_build_liveouts_bb.
3451 (new_sese, free_sese): Remove liveins.
3452 (sese_add_exit_phis_var): Deleted.
3453 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3455 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3457 * sese.h (sese): Remove num_ver and livein.
3458 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3460 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3462 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3464 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3466 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3467 (build_scop_scattering): Do not use compare_prefix_loops any more.
3468 (nb_common_loops): New.
3470 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3472 * sese.c (get_new_name_from_old_name): Renamed get_rename.
3473 (register_old_and_new_names): Renamed set_rename.
3475 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3477 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
3478 of the decl from the previous commit.
3480 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3482 * graphite-scop-detection.c (dot_scop): New.
3483 * graphite-scop-detection.h (dot_scop): Declared.
3485 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3487 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
3489 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3491 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
3492 condition at the end of the loop.
3493 * graphite.c (graphite_initialize, graphite_finalize): Print to
3494 dump_file the compiled function.
3495 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
3496 of create_empty_loop_on_edge.
3497 (translate_clast): Update the code generation of loops for the new
3499 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
3501 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3503 Reverted the patch from 2009-03-19.
3505 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
3507 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3509 (print_scop): Style.
3510 * graphite-poly.h (poly_bb): Add drs vector.
3511 (PBB_DRS): Add accessor.
3512 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
3513 (build_access_matrix_with_af, build_access_matrix,
3514 build_scop_data_accesses): Delete.
3515 (build_poly_dr): New.
3516 (build_pbb_drs, build_scop_drs): New.
3517 (build_poly_scop): call build_scop_drs.
3519 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
3521 * graphite-scop-detection.c (dot_all_scops_1): Close the table
3522 once per basic block.
3524 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3526 * graphite-scop-detection.c (graphite_can_represent_scev): New.
3527 (graphite_can_represent_expr): Renamed from loop_affine_expr
3529 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
3530 (graphite_cannot_represent_loop): Add scop_entry to parameters.
3531 (scopdet_basic_block_info): Actually define entry_block.
3532 (stmt_simple_memref_p): Moved here from ...
3534 * tree-data-ref.c (stmt_simple_memref_p): here.
3535 * tree-data-ref.h (stmt_simple_memref_p): Removed.
3537 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3539 * gcc.dg/graphite/id-4.c: New.
3541 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3543 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3544 (register_old_and_new_names): Update the content of the map.
3545 When there was already a rename_map_elt in the map at that
3547 (copy_bb_and_scalar_dependences): Do rename_variables after
3548 expand_scalar_variables.
3549 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3550 of the map. When there was already a rename_map_elt in the
3551 map at that location, free it.
3552 (translate_clast): Pass the rename_map. Do not initialize and free
3553 a rename_map per stmt_user.
3554 (gloog): Initialize and free one rename_map and pass it to
3557 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3559 * sese.c (expand_scalar_variables_stmt,
3560 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
3562 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
3563 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
3564 the gimple_stmt_iterator of the statement to be expanded.
3565 * graphite-scop-detection.c (is_simple_operand): Do handle
3568 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3570 * graphite-scop-detection.c (is_simple_operand): Do not handle
3572 * gcc.dg/graphite/id-2.c: New.
3574 * graphite-sese-to-poly.c (build_bb_loops,
3575 add_value_to_dim, scan_tree_for_params_right_scev,
3576 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
3577 find_params_in_bb, build_loop_iteration_domains,
3578 add_conditions_to_domain): Remove subtract.
3580 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3582 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
3583 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
3584 pbb_loop_at_index -> gbb_loop_at_index.
3585 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
3586 (debug_loop_vec): Delete.
3587 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
3588 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
3589 (PBB_LOOPS): Removed.
3590 (PBB_BLACK_BOX): Insert cast.
3591 (pbb_set_black_box): New setter.
3592 (pbb_loop_at_index, pbb_loop_index): Removed.
3593 (scop_set_region, scop_set_nb_params): New.
3594 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
3595 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
3596 (build_poly_scop): Use scop_set_nb_params.
3597 * sese.h (gimple_bb): Add LOOPS.
3598 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
3600 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3602 Revert previous commit.
3604 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3606 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3607 (register_old_and_new_names): Update the content of the map.
3608 When there was already a rename_map_elt in the map at that
3610 (copy_bb_and_scalar_dependences): Do rename_variables after
3611 expand_scalar_variables.
3612 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3613 of the map. When there was already a rename_map_elt in the
3614 map at that location, free it.
3615 (translate_clast): Pass the rename_map. Do not initialize and free
3616 a rename_map per stmt_user.
3617 (gloog): Initialize and free one rename_map and pass it to
3620 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3622 Remove forgotten line in revert.
3624 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3626 Revert previous commit.
3628 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3630 * sese.c (register_old_and_new_names): Update the content
3631 of the map. When there was already a rename_map_elt in the
3632 map at that location, free it.
3633 (copy_bb_and_scalar_dependences): Do rename_variables after
3634 expand_scalar_variables.
3635 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3636 of the map. When there was already a rename_map_elt in the
3637 map at that location, free it.
3638 (translate_clast): Pass the rename_map. Do not initialize and free
3639 a rename_map per stmt_user.
3640 (gloog): Initialize and free one rename_map and pass it to
3643 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3645 * graphite-clast-to-gimple.c (translate_clast): context_loop
3648 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3649 Sebastian Pop <sebastian.pop@amd.com>
3651 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
3652 of the use of ppl_Polyhedron_map_space_dimensions.
3654 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3655 Sebastian Pop <sebastian.pop@amd.com>
3657 * graphite-poly.c (unify_scattering_dimensions): Fix types.
3658 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
3659 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
3660 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
3661 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
3662 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
3663 pbb_nb_params): New.
3664 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
3665 nb_loops_around_pbb): Adapt return types.
3667 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
3669 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3670 graphite-clast-to-gimple.o, graphite-data-ref.o,
3671 graphite-scop-detection.o, graphite-poly.o): Add
3674 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
3676 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3677 graphite-clast-to-gimple.o, graphite-data-ref.o,
3678 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
3680 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3682 * gcc.dg/graphite/pr37485.c: Remove -floop-block
3683 * gcc.dg/graphite/pr37828.c: Same.
3684 * gcc.dg/graphite/pr37684.c: Same.
3685 * gcc.dg/graphite/block-0.c: Same.
3686 * gcc.dg/graphite/block-1.c: Same.
3687 * gcc.dg/graphite/block-2.c: Same.
3688 * gcc.dg/graphite/block-3.c: Same.
3689 * gcc.dg/graphite/block-4.c: Same.
3690 * gcc.dg/graphite/block-5.c: Same.
3691 * gcc.dg/graphite/block-6.c: Same.
3692 * gfortran.dg/graphite/pr38083.f90: Same.
3693 * gfortran.dg/graphite/block-1.f90: Same.
3694 * gfortran.dg/graphite/block-3.f90: Same.
3695 * gfortran.dg/graphite/pr37852.f90: Same.
3696 * gfortran.dg/graphite/block-4.f90: Same.
3697 * gfortran.dg/graphite/pr37980.f90: Same.
3698 * gfortran.dg/graphite/pr38953.f90: Same.
3699 * gfortran.dg/graphite/pr37857.f90: Same.
3700 * opts.c: Remove -floop-block from -O2.
3701 * graphite-poly.c: Fail if -floop-block -floop-interchange or
3702 -floop-strip-mine are used.
3704 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3705 Sebastian Pop <sebastian.pop@amd.com>
3707 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
3709 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
3710 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
3711 strip_mine_profitable_p, is_interchange_valid,
3712 graphite_trans_bb_block, graphite_trans_loop_block,
3713 graphite_trans_scop_block): Temporary removed.
3714 (extend_scattering, unify_scattering_dimensions): New.
3715 (print_scattering_function, graphite_read_transforms):
3716 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3717 (graphite_generate_scattering_fns): Removed.
3718 (apply_poly_transforms): Cleanup.
3719 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3720 (schedule_to_scattering): Moved.
3721 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
3722 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
3723 (pbb_nb_scattering): New.
3724 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3725 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
3727 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
3729 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3730 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
3731 -> PBB_TRANSFORMED_SCATTERING.
3732 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
3733 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
3734 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
3735 (check_poly_representation): Do not return bool.
3736 (graphite_transform_loops): Reformat.
3737 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
3739 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
3741 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
3742 debug_pbb_domain, debug_pbb, debug_scop): New.
3743 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
3744 debug_pbb_domain, debug_pbb, debug_scop): Declared.
3746 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3749 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
3750 when the type precision of the induction variable should be
3751 larger than the type precision of nit.
3752 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
3753 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
3754 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
3756 * gcc.dg/graphite/pr39335_1.c: New.
3757 * gcc.dg/graphite/pr39335.c: New.
3759 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3761 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3762 SSA_NAMES not struct reduction_info.
3764 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3766 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
3768 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3769 Tobias Grosser <grosser@fim.uni-passau.de>
3771 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
3772 (free_sese): Free SESE_REDUCTION_LIST.
3773 * sese.h (struct sese): Add field reduction_list.
3774 (SESE_REDUCTION_LIST): New.
3775 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
3776 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
3778 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3779 Tobias Grosser <grosser@fim.uni-passau.de>
3781 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
3784 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3785 Tobias Grosser <grosser@fim.uni-passau.de>
3787 * tree-parloops.c (struct brli, build_reduction_list_info,
3788 analyze_reduction_list, gather_scalar_reductions): New.
3789 (loop_parallel_p): Build a reduction list containing only
3790 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
3791 (gen_parallel_loop): Call the analysis analyze_reduction_list.
3792 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
3793 * tree-flow.h (gather_scalar_reductions): Declared.
3795 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
3798 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
3799 number_of_iterations_exit from a gcc_assert.
3801 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
3802 Jan Sjodin <jan.sjodin@amd.com>
3804 * output.h (graphite_out_file, graphite_in_file): Declared.
3805 * toplev.c (graphite_out_file, graphite_in_file): New.
3806 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
3807 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
3808 Don't call schedule_to_scattering.
3809 * common.opt (fgraphite-write, fgraphite-read): New.
3810 * graphite-poly.c: Include output.h.
3811 (print_scattering_function, print_scattering_functions,
3812 debug_scattering_function, debug_scattering_functions,
3813 graphite_write_transforms, graphite_read_transforms,
3814 graphite_generate_scattering_fns): New.
3815 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
3816 Call graphite_generate_scattering_fns, graphite_write_transforms,
3817 graphite_read_transforms.
3818 (new_poly_bb): Initialize PBB_SCATTERING.
3819 (free_poly_bb): Free PBB_SCATTERING.
3820 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
3821 * graphite-poly.h (struct poly_bb): Add field scattering.
3822 (PBB_SCATTERING): New.
3823 (print_scattering_function, print_scattering_functions,
3824 debug_scattering_function, debug_scattering_functions): Declared.
3825 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
3826 GMP values, not integers!
3827 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
3828 ppl_read_polyhedron_matrix): New.
3829 * graphite-ppl.h (ppl_print_polyhedron_matrix,
3830 debug_ppl_polyhedron_matrix,
3831 ppl_read_polyhedron_matrix): Declared.
3832 * Makefile.in (graphite-poly.o): Depends on output.h.
3834 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3835 Tobias Grosser <grosser@fim.uni-passau.de>
3838 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3839 scalar evolutions in the scop_entry->loop_father.
3841 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3842 Tobias Grosser <grosser@fim.uni-passau.de>
3844 * graphite.h (ref_nb_loops): Remove declaration.
3845 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
3846 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
3847 debug_gbb): Moved to sese.h.
3850 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3851 Tobias Grosser <grosser@fim.uni-passau.de>
3853 * graphite-data-ref.[ch]: Disable.
3855 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3856 Tobias Grosser <grosser@fim.uni-passau.de>
3858 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3859 scalar evolutions in the scop_entry->loop_father.
3861 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3863 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
3864 (graphite_cannot_represent_loop_niter): Renamed
3865 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
3866 (limit_scops): build_sese_loop_nests does not return a bool.
3867 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
3868 * sese.c (nb_reductions_in_loop): ... from here.
3869 (graphite_loop_normal_form): ... from here.
3870 (sese_record_loop): Does not fail, so does not return a bool.
3871 (build_sese_loop_nests): Same.
3872 * sese.h (build_sese_loop_nests): Update declaration.
3873 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
3874 (build_graphite_loop_normal_form): New.
3875 (gloog): Call build_graphite_loop_normal_form.
3876 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
3877 build_sese_loop_nests.
3879 * gcc.dg/graphite/id-1.c: New.
3881 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3882 Tobias Grosser <grosser@fim.uni-passau.de>
3884 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
3885 The SCoP detection fix is sufficient.
3887 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3889 PR tree-optimization/39260
3890 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
3891 the basic block contains a condition with a real type.
3892 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
3894 * gcc.dg/graphite/pr39260.c: New.
3896 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3898 * graphite-poly.c: Inlcude params.h.
3899 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
3901 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
3902 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
3904 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3905 Tobias Grosser <grosser@fim.uni-passau.de>
3907 * graphite-scop-detection.c (dot_all_scops_1,
3908 dot_all_scops): Moved here.
3909 * graphite-scop-detection.h (dot_all_scops): Declared here.
3910 * graphite.c (graphite_initialize, graphite_finalize): New.
3911 (graphite_transform_loops): Cleaned up.
3912 * sese.c (debug_oldivs): Moved here.
3913 * graphite-poly.c (graphite_apply_transformations): Renamed
3914 apply_poly_transforms.
3915 (debug_loop_vec): Moved here.
3916 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
3917 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
3918 find_scop_parameters, build_scop_iteration_domain,
3919 add_conditions_to_constraints, build_scop_canonical_schedules,
3920 build_scop_data_accesses): Now static.
3921 (build_poly_scop, check_poly_representation): New.
3923 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3925 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
3926 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
3927 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
3928 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
3929 scan_tree_for_params_right_scev, scan_tree_for_params_int,
3930 scan_tree_for_params, struct irp_data, dx_record_params,
3931 find_params_in_bb, find_scop_parameters, gbb_from_bb,
3932 build_loop_iteration_domains, add_conditions_to_domain,
3933 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
3934 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
3935 build_sese_conditions, add_conditions_to_constraints,
3936 build_scop_iteration_domain, build_access_matrix_with_af,
3937 build_access_matrix,
3938 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
3940 * graphite-sese-to-poly.c: New.
3941 * graphite-sese-to-poly.h: New.
3943 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
3945 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3947 * graphite.c: Split graphite code generation to a new file.
3948 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
3949 max_precision_type, clast_to_gcc_expression_red,
3950 clast_to_gcc_expression, gcc_type_for_clast_expr,
3951 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
3952 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
3953 graphite_create_new_guard, clast_get_body_of_loop,
3954 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
3955 graphite_create_new_loop, build_iv_mapping, copy_renames,
3956 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3957 compute_cloog_iv_types, free_scattering, save_var_name,
3958 initialize_cloog_names, build_scop_context, build_cloog_prog,
3959 set_cloog_options, debug_clast_stmt, scop_to_clast,
3960 print_generated_program, debug_generated_program,
3961 gloog): Moved to graphite-clast-to-gimple.c.
3963 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
3965 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
3966 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
3967 loop_iv_stack_pop, loop_iv_stack_get_iv,
3968 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
3969 free_loop_iv_stack, loop_iv_stack_remove_constants,
3970 debug_rename_elt, debug_rename_map_1, debug_rename_map,