This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48189] [4.3/4.4/4.5/4.6/4.7 Regression] ICE: SIGFPE (division by zero) in in predict_loops () at predict.c:991 with --param max-predicted-iterations=0
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Mar 2011 12:46:21 +0000
- Subject: [Bug tree-optimization/48189] [4.3/4.4/4.5/4.6/4.7 Regression] ICE: SIGFPE (division by zero) in in predict_loops () at predict.c:991 with --param max-predicted-iterations=0
- Auto-submitted: auto-generated
- References: <bug-48189-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48189
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.21 12:46:09
CC| |hubicka at gcc dot gnu.org
Target Milestone|--- |4.3.6
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-21 12:46:09 UTC ---
Honza, if the loop is predicted to run zero times the exit edge isn't executed.
What's the probability value for this? I'd say it's NaN (aka, not relevant
as it isn't executed as all).
It doesn't seem to be correct to limit max-predicted-iterations to >= 1
as estimated_loop_iterations_int could return zero as well.