http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56999
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-19
08:19:16 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 <[email protected]>
Jakub Jelinek <[email protected]>
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