This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Jun 2015 07:13:11 +0000
- Subject: [Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.
- Auto-submitted: auto-generated
- References: <bug-64130-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64130
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #6)
> (In reply to kugan from comment #5)
> > I think it should be in from front-end?
>
> ?
Yes this is really not a good comment to make. This is not even front-end
specific optimization and can happen in Fortran, Ada, etc.
Basically when a > 100, 100/a is 0 so 100/a == 0 is the same as a > 100.