re PR tree-optimization/72817 (wrong code at -O3 on x86_64-linux-gnu (in both 32...
authorBin Cheng <bin.cheng@arm.com>
Tue, 16 Aug 2016 09:13:50 +0000 (09:13 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 16 Aug 2016 09:13:50 +0000 (09:13 +0000)
commit8f21990a676b65040761886e54fc9d5149ec014c
tree8a0e3d884dc48aba31f839c3b7d5ab8a28c04e5c
parentf6ba953d245fe7f6a39eedc94c97ae7c2c7ffe13
re PR tree-optimization/72817 (wrong code at -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit modes))

PR tree-optimization/72817
PR tree-optimization/73450
* tree-ssa-loop-niter.c (number_of_iterations_ne): Check
multiple_of_p for adjusted IV.base.

gcc/testsuite
* gcc.dg/tree-ssa/pr72817.c: New test.
* gcc.dg/tree-ssa/pr73450.c: New test.

From-SVN: r239494
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr72817.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr73450.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c