]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/37375 ([graphite] Parameter detection and scev only take a surroundi...
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 9 Sep 2008 18:39:45 +0000 (18:39 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 9 Sep 2008 18:39:45 +0000 (18:39 +0000)
commita213b2190b451de691e9517e68dffd533f299bb9
tree73195c19addce9aac12faa4c9914cd880f94c5b0
parent00ca66405c3b9da27fab36bd55e62148e97d7491
re PR middle-end/37375 ([graphite] Parameter detection and scev only take a surrounding loop as border)

2008-09-05  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/37375
* tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
(new_scev_info_str, eq_scev_info, find_var_scev_info,
set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
set_instantiated_value): Pass instantiated_below.
(analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
above functions.
(instantiate_scev_1, instantiate_scev): Pass a basic block above which the
definitions are not instantiated.

* tree-scalar-evolution.h (instantiate_scev): Update declaration.
(block_before_loop): New.
* tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
* graphite.c (block_before_scop): New.
(loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
basic block, not a loop for determining the parameters.
(scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
scop.
(idx_record_params, find_params_in_bb, find_scop_parameters,
build_loop_iteration_domains, add_conditions_to_domain): Update calls
to instantiate_scev.

* Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.

From-SVN: r140164
gcc/ChangeLog
gcc/Makefile.in
gcc/graphite.c
gcc/tree-data-ref.c
gcc/tree-scalar-evolution.c
gcc/tree-scalar-evolution.h