http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48189
--- Comment #14 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-19 08:20:11 UTC --- Author: mpolacek Date: Fri Apr 19 08:18:29 2013 New Revision: 198085 URL: http://gcc.gnu.org/viewcvs?rev=198085&root=gcc&view=rev Log: Backport from mainline 2013-01-08 Steven Bosscher <ste...@gcc.gnu.org> Jakub Jelinek <ja...@redhat.com> PR tree-optimization/48189 * predict.c (predict_loops): If max is 0, don't call compare_tree_int. If nitercst is 0, don't predict the exit edge. * gcc.dg/pr48189.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr48189.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/predict.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog