]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not try to logical fold floating point relations.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 25 Jan 2023 16:13:23 +0000 (11:13 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 27 Jan 2023 14:32:42 +0000 (09:32 -0500)
commitec5e99e95954fd629283a9c9572193dd95471fea
tree1f804bcdb9b53f05378f6e55acb7de69360e44a8
parent3caa3a3f1a0dbf347d38eadf27f00a209f3030c4
Do not try to logical fold floating point relations.

relation_fold_and_or looks for relations among common operands feeding
logical ands and ors.  With no knowledge of NANs, it should not attempt
to do this with floating point ssa names.

PR tree-optimization/108447
gcc/
* gimple-range-fold.cc (old_using_range::relation_fold_and_or):
Do not attempt to fold HONOR_NAN types.

gcc/testsuite/
* gcc.dg/pr108447.c: New.
gcc/gimple-range-fold.cc
gcc/testsuite/gcc.dg/pr108447.c [new file with mode: 0644]