[Bug tree-optimization/57371] Simplify (double)i != 0

2018-11-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 --- Comment #10 from Marc Glisse --- (In reply to Yury Gribov from comment #9) > TBH I didn't implement all Josephs suggestions (particularly my patch does > not try to optimize more under -ffast-math and friends)... Your choice if you want to

[Bug tree-optimization/57371] Simplify (double)i != 0

2018-11-19 Thread ygribov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 Yury Gribov changed: What|Removed |Added CC||ygribov at gcc dot gnu.org --- Comment #9

[Bug tree-optimization/57371] Simplify (double)i != 0

2018-11-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 Marc Glisse changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/57371] Simplify (double)i != 0

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #7

[Bug tree-optimization/57371] Simplify (double)i != 0

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 --- Comment #6 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 16:29:49 2017 New Revision: 252296 URL: https://gcc.gnu.org/viewcvs?rev=252296=gcc=rev Log: Remove useless floating point casts in comparisons. 2017-08-04 Yury Gribov

[Bug tree-optimization/57371] Simplify (double)i != 0

2017-08-04 Thread ygribov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 --- Comment #5 from Yury Gribov --- Author: ygribov Date: Fri Aug 4 20:29:12 2017 New Revision: 250877 URL: https://gcc.gnu.org/viewcvs?rev=250877=gcc=rev Log: Remove useless floating point casts in comparisons. 2017-08-04 Yury Gribov

[Bug tree-optimization/57371] Simplify (double)i != 0

2017-07-02 Thread tetra2005 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 Yuri Gribov changed: What|Removed |Added CC||tetra2005 at gmail dot com --- Comment #4

[Bug tree-optimization/57371] Simplify (double)i != 0

2013-05-28 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug tree-optimization/57371] Simplify (double)i != 0

2013-05-22 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 --- Comment #1 from joseph at codesourcery dot com joseph at codesourcery dot com --- On Wed, 22 May 2013, glisse at gcc dot gnu.org wrote: int f(int i){ return (double)i != 0; } compiled with -Ofast (I don't think -ffast-math matters)

[Bug tree-optimization/57371] Simplify (double)i != 0

2013-05-22 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371 --- Comment #2 from Marc Glisse glisse at gcc dot gnu.org --- Thank you for this very detailed analysis :-) (In reply to jos...@codesourcery.com from comment #1) * If not all values of the integer type can be represented in the floating-point