IOR with nonzero, range cannot contain 0.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 17 Nov 2020 15:04:38 +0000 (10:04 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 17 Nov 2020 16:58:07 +0000 (11:58 -0500)
commita5f9c27bfc4417224e332392bb81a2d733b2b5bf
tree4924d184b2ab656e77a14f962af4844954438028
parentc2cf58f0e3a32b803c890ea8daa8d9f550cf9888
IOR with nonzero, range cannot contain 0.

Remove zero from IOR ranges with non-zero masks.

gcc/
PR tree-optimization/83072
* range-op.cc (wi_optimize_and_or): Remove zero from IOR range when
mask is non-zero.
gcc/testsuite/
* gcc.dg/pr83072.c: New.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr83072.c [new file with mode: 0644]