diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-20 08:05:12 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-20 08:05:12 +0000 |
commit | b718fe638db7f365e5c5ff86eb12b0246aee9554 (patch) | |
tree | 049852a66bb3c2b176b99851ac916058e794f7d0 /gcc/tree-ssa-loop-niter.c | |
parent | fdcb802df2ec636e96d2200ea957fef6045ebce6 (diff) | |
download | ppe42-gcc-b718fe638db7f365e5c5ff86eb12b0246aee9554.tar.gz ppe42-gcc-b718fe638db7f365e5c5ff86eb12b0246aee9554.zip |
PR rtl-optimization/32283
* tree-ssa-loop-niter.c (scev_probably_wraps_p): Use type of the base
of the induction variable to decide whether it may wrap.
* tree-ssa-loop-ivopts.c (rewrite_use_compare): Emit the initialization
of the bound before the loop.
* simplify-rtx.c (simplify_binary_operation_1): Add two simplifications
regarding AND.
(simplify_plus_minus): Only fail if no simplification is possible.
* loop-iv.c (simple_rhs_p): Consider reg + reg and reg << cst simple.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142035 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 33aacae83b5..13b10c9f1c4 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -3053,7 +3053,7 @@ scev_probably_wraps_p (tree base, tree step, /* If we can use the fact that signed and pointer arithmetics does not wrap, we are done. */ - if (use_overflow_semantics && nowrap_type_p (type)) + if (use_overflow_semantics && nowrap_type_p (TREE_TYPE (base))) return false; /* To be able to use estimates on number of iterations of the loop, |