https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80345
--- Comment #13 from amker at gcc dot gnu.org --- Author: amker Date: Tue Apr 11 08:15:51 2017 New Revision: 246833 URL: https://gcc.gnu.org/viewcvs?rev=246833&root=gcc&view=rev Log: Backport from mainline 2016-02-10 Bin Cheng <bin.ch...@arm.com> PR tree-optimization/68021 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if when computing the value of biv cand by itself. gcc/testsuite PR tree-optimization/80345 * gcc.c-torture/compile/pr80345.c Backport from mainline 2016-02-10 Bin Cheng <bin.ch...@arm.com> PR tree-optimization/68021 * gcc.dg/tree-ssa/pr68021.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr80345.c branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/pr68021.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/tree-ssa-loop-ivopts.c