This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/63387] Optimize pairs of isnan() calls into a single isunordered()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]