re PR tree-optimization/92039 (Spurious -Warray-bounds warnings building 32-bit glibc)
authorRichard Biener <rguenther@suse.de>
Fri, 15 Nov 2019 09:09:16 +0000 (09:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 15 Nov 2019 09:09:16 +0000 (09:09 +0000)
commitf0af4848ac40d2342743c9b16416310d61db85b5
treeb64ffc105c8bdfb89f1ac8de221eae89109d1df0
parent0227ffa98e122d5716d508c435cb8323cd93bfef
re PR tree-optimization/92039 (Spurious -Warray-bounds warnings building 32-bit glibc)

2019-11-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92039
PR tree-optimization/91975
* tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
previous change, treat invariants consistently as non-constant.
(tree_estimate_loop_size): Ternary ops with just the first op
constant are not optimized away.

* gcc.dg/tree-ssa/cunroll-2.c: Revert to state previous to
unroller adjustment.
* g++.dg/tree-ssa/ivopts-3.C: Likewise.

From-SVN: r278281
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/ivopts-3.C
gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c
gcc/tree-ssa-loop-ivcanon.c