]> gcc.gnu.org Git - gcc.git/commit
Correctly unify recomputation with existing range.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 23 Jun 2021 19:25:45 +0000 (15:25 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 24 Jun 2021 17:25:58 +0000 (13:25 -0400)
commit5bdcfb74ff97b42f08993af8614c35685fdd8689
tree573c834dd99bba578438d63718260251f5b61c1d
parent90fa63e134f478c775b64b281901ecbba3c9f15b
Correctly unify recomputation with existing range.

When propagating the on-entry cache, new block ranges are calculated
by combining all the incoming edges and comparing to the old value.
When a recomputation was performed on an edge, it didn't take into account
that the value in the block may already be better than a potential
recompuation... Thus a worse values was sometimes propagated.
Fixed by simply calling the now correct range_on_edge the cache provides.

* gimple-range-cache.cc (ranger_cache::propagate_cache): Call
range_on_edge instead of manually calculating.
gcc/gimple-range-cache.cc
This page took 0.061324 seconds and 6 git commands to generate.