https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90078
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Apr 25 18:08:14 2019 New Revision: 270583 URL: https://gcc.gnu.org/viewcvs?rev=270583&root=gcc&view=rev Log: PR tree-optimization/90240 Revert: 2019-04-23 Bin Cheng <bin.ch...@linux.alibaba.com> PR tree-optimization/90078 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add checks for infinite_cost overflow. * gcc/testsuite/g++.dg/tree-ssa/pr90078.C: New test. Removed: branches/gcc-9-branch/gcc/testsuite/g++.dg/tree-ssa/pr90078.C Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/testsuite/ChangeLog branches/gcc-9-branch/gcc/tree-ssa-loop-ivopts.c