]> gcc.gnu.org Git - gcc.git/commit
Share common ordered comparison code with UN*_EXPR.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 10 Oct 2022 12:56:01 +0000 (14:56 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 11 Oct 2022 13:52:24 +0000 (15:52 +0200)
commit4cbc312a31424ca4ff7cdd358fc47b9c9511a646
tree016da7d1463e4d7c36f8be01d843e4bd5121d3a5
parentad7cff63de618ed723e5df68f0cc9e950d5769e3
Share common ordered comparison code with UN*_EXPR.

Most unordered comparisons can use the result from the ordered
version, if the operands are known not to be NAN or if the result is
true.

gcc/ChangeLog:

* range-op-float.cc (class foperator_unordered_lt): New.
(class foperator_relop_unknown): Remove
(class foperator_unordered_le): New.
(class foperator_unordered_gt): New.
(class foperator_unordered_ge): New.
(class foperator_unordered_equal): New.
(floating_op_table::floating_op_table): Replace all UN_EXPR
entries with their appropriate fop_unordered_* counterpart.
gcc/range-op-float.cc
This page took 0.064877 seconds and 6 git commands to generate.