]> git.ipfire.org Git - thirdparty/gcc.git/commit
Range_on_edge in ranger_cache should return true for all ranges.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 16 Jun 2021 15:14:36 +0000 (11:14 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 17 Jun 2021 00:07:40 +0000 (20:07 -0400)
commit8a22a10c7879109c3906e1b865c50fe236b89f41
tree9ed502f14d93c4c7faf5bc29a22cfb907580c8fe
parent487be9201c96d0a5c7c325339bc9c4916e933ed8
Range_on_edge in ranger_cache should return true for all ranges.

Range_on_edge was implemented in the cache to always return a range, but
only returned true when the edge actally changed the range.
Return true with any range that can be calculated.

* gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
true when a range can be calculated.
* gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
gcc/gimple-range-cache.cc
gcc/gimple-range.cc