aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-sese-to-poly.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-25graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.Sebastian Pop1-1/+1
2009-10-05 Sebastian Pop <sebastian.pop@amd.com> * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. * graphite-interchange.c (pbb_do_interchange): Same. * graphite-poly.c (print_scattering_function): Same. (debug_pdrs): Same. * graphite-poly.h (pbb_loop): New. * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. From-SVN: r154557
2009-11-25graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, so ↵Sebastian Pop1-16/+14
don't pass a pointer to it. 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, so don't pass a pointer to it. (build_alias_set_for_drs): Same. (build_base_obj_set_for_drs): Same. (build_scop_drs): Same. From-SVN: r154555
2009-11-25graphite-sese-to-poly.c (build_scop_drs): Disable writing to file the alias ↵Li Feng1-1/+1
graph of data references. 2009-09-26 Li Feng <nemokingdom@gmail.com> * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file the alias graph of data references. From-SVN: r154554
2009-11-25graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.Li Feng1-0/+52
2009-09-25 Li Feng <nemokingdom@gmail.com> * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. (build_scop_drs): When debugging, write the alias graph to file, otherwise, should be disabled. From-SVN: r154553
2009-11-25re PR tree-optimization/41118 (Wrong dependence analysis in graphite for ↵Li Feng1-13/+54
unrestricted pointers) 2009-09-17 Li Feng <nemokingdom@gmail.com> PR middle-end/41118 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. (graphite_carried_dependence_level_k): Ditto. * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. (new_poly_dr): Adjust declaration. * graphite-sese-to-poly.c (free_data_refs_aux): New. (free_gimple_bb): Added free_data_refs_aux. (build_poly_dr): Add dr_base_object_set. (partition_drs_to_sets): New. (dr_same_base_object_p): New. (build_alias_set_for_drs): New. (build_base_object_set_for_drs): New. (build_scop_drs): Add build_base_obj_set_for_drs. * graphite-sese-to-poly.h: Added #define for alias set number index and base object set index. * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. * libgomp/testsuite/libgomp.graphite/pr4118.c: New. From-SVN: r154549
2009-11-25graphite-sese-to-poly.c (struct irp_data): Removed.Sebastian Pop1-50/+10
2009-09-14 Sebastian Pop <sebastian.pop@amd.com> * graphite-sese-to-poly.c (struct irp_data): Removed. (idx_record_params): Removed. (find_params_in_bb): Scan for parameters the access functions; don't parse the tree representation. From-SVN: r154547
2009-11-18re PR debug/41888 (ICE from '-O -ftree-loop-distribution -fgraphite-identity ↵Alexandre Oliva1-1/+6
-g') PR debug/41888 PR debug/41886 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts are ok. * graphite-sese-to-poly.c (graphite_stmt_p): Likewise. (try_generate_gimple_bb): Skip debug stmts when finding data refs. * sese.c (sese_build_liveouts_bb): Skip debug stmts. (sese_bad_liveouts_use): New. (sese_reset_debug_liveouts_bb): New. (sese_build_liveouts): Use it. (rename_variables_in_stmt): Reset debug stmts rather than creating new vars for them. (expand_scalar_variable_stmt): Likewise. From-SVN: r154279
2009-10-26graphite-sese-to-poly.c (check_poly_representation): Fix compile without ↵Richard Guenther1-1/+1
checking. 2009-10-26 Richard Guenther <rguenther@suse.de> * graphite-sese-to-poly.c (check_poly_representation): Fix compile without checking. From-SVN: r153549
2009-09-17graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ↵Alexander Monakov1-29/+26
ARRAY_REFs. 2009-09-17 Alexander Monakov <amonakov@ispras.ru> gcc: * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. libgomp: * testsuite/libgomp.graphite/bounds.c: New test. From-SVN: r151802
2009-08-12Dont add unknown subscript upper bounds.Sebastian Pop1-8/+12
2009-08-11 Sebastian Pop <sebastian.pop@amd.com> * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add unknown subscript upper bounds. * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL. From-SVN: r150693
2009-08-12Add PDR->nb_subscripts.Sebastian Pop1-1/+2
2009-08-11 Sebastian Pop <sebastian.pop@amd.com> * graphite-dependences.c (dependence_polyhedron_1): Replace pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. (graphite_legal_transform_dr): Same. (graphite_carried_dependence_level_k): Same. * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. Initialize PDR_NB_SUBSCRIPTS. (print_pdr_access_layout): Replace pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. * graphite-poly.h (struct poly_dr): Add nb_subscripts field. (PDR_NB_SUBSCRIPTS): New. (pdr_nb_subscripts): Removed. (pdr_dim): Simplified. * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. From-SVN: r150690
2009-08-12Undo changes to the PDR representation.Sebastian Pop1-15/+9
2009-08-11 Sebastian Pop <sebastian.pop@amd.com> * graphite-interchange.c (compute_array_size): Remove use of PDR_DATA_CONTAINER. * graphite-poly.c (new_poly_dr): Remove argument data_container. Do not initialize PDR_DATA_CONTAINER. (print_pdr): Do not print PDR_DATA_CONTAINER. * graphite-poly.h (struct poly_dr): Remove data_container field. (PDR_DATA_CONTAINER): Removed. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of PDR_DATA_CONTAINER. (build_poly_dr): Same. From-SVN: r150689
2009-08-12Restore original scattering when the transform is not legal.Sebastian Pop1-2/+2
2009-08-05 Sebastian Pop <sebastian.pop@amd.com> * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. Early return without analyzing the data dependences if no transform has been done. Call restore_scattering if the transform is not legal. (graphite-interchange.c): Same. * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. (graphite_read_transforms): Initialize PBB_TRANSFORMED. (apply_poly_transforms): Do not gcc_assert that the transform is legal. (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. * graphite-poly.h (struct poly_scattering): New. (struct poly_bb): Add original, transformed, and saved fields. Remove transformed_scattering, original_scattering, nb_local_variables, and nb_scattering_transform fields. (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. (poly_scattering_new): New. (poly_scattering_free): New. (poly_scattering_copy): New. (store_scattering_pbb): New. (store_scattering): New. (restore_scattering_pbb): New. (restore_scattering): New. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Initialize PBB_TRANSFORMED and PBB_ORIGINAL. From-SVN: r150686
2009-08-05build alias set for drs in SCoP instead of in pbb.Li Feng1-3/+13
2009-08-05 Li Feng <nemokingdom@gmail.com> * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set for each poly_bb_p. (build_scop_drs): Build alias set for each SCoP. From-SVN: r150478
2009-07-31New Graphite files.Sebastian Pop1-0/+2089
2009-07-30 Sebastian Pop <sebastian.pop@amd.com> * ChangeLog.graphite: New. * graphite-blocking.c: New. * graphite-clast-to-gimple.c: New. * graphite-clast-to-gimple.h: New. * graphite-dependences.c: New. * graphite-dependences.h: New. * graphite-interchange.c: New. * graphite-poly.c: New. * graphite-poly.h: New. * graphite-ppl.c: New. * graphite-ppl.h: New. * graphite-scop-detection.c: New. * graphite-scop-detection.h: New. * graphite-sese-to-poly.c: New. * graphite-sese-to-poly.h: New. * sese.c: New. * sese.h: New. From-SVN: r150300