diff options
author | Bin Cheng <bin.cheng@arm.com> | 2016-08-09 15:01:49 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2016-08-09 15:01:49 +0000 |
commit | 8aa46dd2d5808a951afee6c6322615225f298d6a (patch) | |
tree | 6cd5c3604c5e81b7542cdeeee6648cae43c955ff /gcc/tree-scalar-evolution.c | |
parent | f4fce1837cb18401b714379b7b18ede89b9d4fe5 (diff) | |
download | gcc-8aa46dd2d5808a951afee6c6322615225f298d6a.zip gcc-8aa46dd2d5808a951afee6c6322615225f298d6a.tar.gz gcc-8aa46dd2d5808a951afee6c6322615225f298d6a.tar.bz2 |
re PR tree-optimization/72772 (Missed SCEV after pass reordering@236440)
PR tree-optimization/72772
* tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
parameter STOP.
* tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
parameter STOP and update calls. Move expand_simple_operations
function call from here...
(simplify_using_initial_conditions): ...to here. Delete parameter
STOP.
(tree_simplify_using_condition): Delete parameter STOP.
* tree-scalar-evolution.c (simple_iv_with_niters): Update call to
simplify_using_initial_conditions.
From-SVN: r239290
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index 7c5cefd..b8bfe51 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -3484,7 +3484,7 @@ simple_iv_with_niters (struct loop *wrto_loop, struct loop *use_loop, bool allow_nonconstant_step) { enum tree_code code; - tree type, ev, base, e, stop; + tree type, ev, base, e; wide_int extreme; bool folded_casts, overflow; @@ -3601,8 +3601,7 @@ simple_iv_with_niters (struct loop *wrto_loop, struct loop *use_loop, return true; e = fold_build2 (code, boolean_type_node, base, wide_int_to_tree (type, extreme)); - stop = (TREE_CODE (base) == SSA_NAME) ? base : NULL; - e = simplify_using_initial_conditions (use_loop, e, stop); + e = simplify_using_initial_conditions (use_loop, e); if (!integer_zerop (e)) return true; |