Ranger: More efficient zero/nonzero check.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 27 Sep 2021 22:53:54 +0000 (18:53 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 6 Oct 2021 13:11:50 +0000 (09:11 -0400)
commit4b8ca6c6177b2bd948c1cb2a116955b942751559
treeded96deed7cd8fae6d1c4fe7461235e0c01c402c
parent90c3a62272313bb08cd5d9a948ff2d71af73b294
Ranger: More efficient zero/nonzero check.

A recent change introduced a frequent check for zero and non-zero which has
caused a lot of extra temporary trees to be created.  Make the check more
efficent as it is always a pointer and thus unsigned.

* gimple-range-cache.cc (non_null_ref::adjust_range): Check for
zero and non-zero more efficently.
gcc/gimple-range-cache.cc