https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88055

--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Fri Apr 19 16:58:01 2019
New Revision: 270460

URL: https://gcc.gnu.org/viewcvs?rev=270460&root=gcc&view=rev
Log:
tree-call-cdce: If !HONOR_NANS do not make code with NaNs (PR88055)

If we don't HONOR_NANS we should not try to use any unordered
comparison results.  Best case those will just be optimized away;
realistically, they ICE.  For example, the rs6000 backend has some
code that specifically checks we never do this.


        PR tree-optimization/88055
        * tree-call-cdce.c (comparison_code_if_no_nans): New function.
        (gen_one_condition): Use it if !HONOR_NANS.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-call-cdce.c

Reply via email to