http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48189
--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-04 11:05:08 UTC --- Author: mpolacek Date: Thu Apr 4 11:03:11 2013 New Revision: 197478 URL: http://gcc.gnu.org/viewcvs?rev=197478&root=gcc&view=rev Log: Backported from mainline 2013-01-09 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. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr48189.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/predict.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog