This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/51938] missed optimization: 2 comparisons
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 06 Jun 2012 21:22:59 +0000
- Subject: [Bug rtl-optimization/51938] missed optimization: 2 comparisons
- Auto-submitted: auto-generated
- References: <bug-51938-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51938
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> 2012-06-06 21:22:59 UTC ---
Note that if I replace:
if(x<0) return NEG;
with:
if(!(x>=0)) return NEG;
then ifcombine recognizes the pattern and optimizes it (the generated code is
slightly different since that changes the behavior for NaN).
No time to investigate right now, but I wanted to add this note to the PR.