aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-20 14:41:45 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-20 12:41:45 +0000
commit77c9d5b4e6e5d9b2da11249168211a45d2e716c8 (patch)
tree622f8a14e9ac79e665e7c044d11173797cafb6ca /gcc/tree-ssa-loop-niter.c
parent11f8114b514ed877872b5e61e771bdefb4e6bee0 (diff)
downloadgcc-77c9d5b4e6e5d9b2da11249168211a45d2e716c8.zip
gcc-77c9d5b4e6e5d9b2da11249168211a45d2e716c8.tar.gz
gcc-77c9d5b4e6e5d9b2da11249168211a45d2e716c8.tar.bz2
prefetch-5.c: xfail.
* gcc.dg/tree-ssa/prefetch-5.c: xfail. * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce realistic upper bounds here. From-SVN: r236508
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index c61083e..5afc9b3 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -3115,7 +3115,6 @@ idx_infer_loop_bounds (tree base, tree *idx, void *dta)
tree low, high, type, next;
bool sign, upper = true, at_end = false;
struct loop *loop = data->loop;
- bool reliable = true;
if (TREE_CODE (base) != ARRAY_REF)
return true;
@@ -3187,14 +3186,14 @@ idx_infer_loop_bounds (tree base, tree *idx, void *dta)
&& tree_int_cst_compare (next, high) <= 0)
return true;
- /* If access is not executed on every iteration, we must ensure that overlow may
- not make the access valid later. */
+ /* If access is not executed on every iteration, we must ensure that overlow
+ may not make the access valid later. */
if (!dominated_by_p (CDI_DOMINATORS, loop->latch, gimple_bb (data->stmt))
&& scev_probably_wraps_p (initial_condition_in_loop_num (ev, loop->num),
step, data->stmt, loop, true))
- reliable = false;
+ upper = false;
- record_nonwrapping_iv (loop, init, step, data->stmt, low, high, reliable, upper);
+ record_nonwrapping_iv (loop, init, step, data->stmt, low, high, false, upper);
return true;
}