tree-call-cdce: If !HONOR_NANS do not make code with NaNs (PR88055)
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 19 Apr 2019 16:58:01 +0000 (18:58 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 19 Apr 2019 16:58:01 +0000 (18:58 +0200)
commitc5c4d431e0d526738fbf54a92d36fefff8f647e4
treeec8affc01cdd4316eb8e6b0b070196568ad9fa76
parent3734fb6a274e7574f614bb8139d085e19c85ff9e
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.

From-SVN: r270460
gcc/ChangeLog
gcc/tree-call-cdce.c