re PR tree-optimization/79159 (spurious array-bounds warning)
authorBin Cheng <bin.cheng@arm.com>
Tue, 24 Jan 2017 13:09:27 +0000 (13:09 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 24 Jan 2017 13:09:27 +0000 (13:09 +0000)
commitcf8d19de268ebcd25bb6e917ff16ee286d96dedd
tree33da9dab32cb1102151fce01f63a0a6c3ff22f24
parent5fd1486ce58297190c2b924e96e716087139a8b5
re PR tree-optimization/79159 (spurious array-bounds warning)

PR tree-optimization/79159
* tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
(record_nonwrapping_iv): Imporve boundary using above function if no
value range information.

gcc/testsuite
PR tree-optimization/79159
* g++.dg/tree-ssa/pr79159.C: New test.

From-SVN: r244868
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr79159.C [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c