https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90240
--- Comment #9 from bin cheng <amker at gcc dot gnu.org> --- Author: amker Date: Tue Apr 30 03:00:59 2019 New Revision: 270673 URL: https://gcc.gnu.org/viewcvs?rev=270673&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: trunk/gcc/testsuite/g++.dg/tree-ssa/pr90078.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-loop-ivopts.c