aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-10-17 13:19:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-10-17 13:19:51 +0000
commit92900aec89c94d569a94c4f2e42d90e25f993bb0 (patch)
tree0c41f10e1e0ccec68344f859431ef7ab51907ab3 /gcc/tree-scalar-evolution.c
parent7ea3a3c75964dfef45eaa771fc914ec15a6aada9 (diff)
downloadgcc-92900aec89c94d569a94c4f2e42d90e25f993bb0.zip
gcc-92900aec89c94d569a94c4f2e42d90e25f993bb0.tar.gz
gcc-92900aec89c94d569a94c4f2e42d90e25f993bb0.tar.bz2
2017-10-17 Richard Biener <rguenther@suse.de>
* graphite-scop-detection.c (scop_detection::stmt_has_simple_data_refs_p): Always use the full nest as region. (try_generate_gimple_bb): Likewise. * sese.c (scalar_evolution_in_region): Simplify now that SCEV can handle instantiation in regions. * tree-scalar-evolution.c (instantiate_scev_name): Also instantiate in the non-loop part of a function if requested. From-SVN: r253811
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c
index b6c1fce..b47b4ed 100644
--- a/gcc/tree-scalar-evolution.c
+++ b/gcc/tree-scalar-evolution.c
@@ -2358,11 +2358,9 @@ instantiate_scev_name (edge instantiate_below,
struct loop *def_loop;
basic_block def_bb = gimple_bb (SSA_NAME_DEF_STMT (chrec));
- /* A parameter (or loop invariant and we do not want to include
- evolutions in outer loops), nothing to do. */
+ /* A parameter, nothing to do. */
if (!def_bb
- || loop_depth (def_bb->loop_father) == 0
- || ! dominated_by_p (CDI_DOMINATORS, def_bb, instantiate_below->dest))
+ || !dominated_by_p (CDI_DOMINATORS, def_bb, instantiate_below->dest))
return chrec;
/* We cache the value of instantiated variable to avoid exponential