Look for a relation between operands only when possible.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 23 Sep 2021 13:32:00 +0000 (09:32 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 23 Sep 2021 16:56:43 +0000 (12:56 -0400)
commitfe4e6c824a580012bf9034cc33f0b440df93f56f
treed51ab000122b4b0e4c987ac4c00cccf6d0675680
parent053e1d642104d19d5f9e5fb08a9e7354a0db28f5
Look for a relation between operands only when possible.

Do not look for a relation between 2 operands if there is no range-ops handler.

gcc/
PR tree-optimization/102463
* gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
there is no range-ops handler, don't look for a relation.

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