This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/63387] Optimize pairs of isnan() calls into a single isunordered()
- 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: Sat, 27 Sep 2014 06:35:36 +0000
- Subject: [Bug other/63387] Optimize pairs of isnan() calls into a single isunordered()
- Auto-submitted: auto-generated
- References: <bug-63387-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63387
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Thanks.
The simplify pattern probably needs an extra test that the types of @0 and @1
are compatible, so we don't try to produce unord(float,double). In that case,
it isn't as obvious that converting the first argument to double then using
unord would be better than 2 isnan, but it may still be worth it.
Now we have to wait until the branch that handles those patterns gets merged.