[COMMITTED] Dump should be read only. Do not trigger new lookups.

Andrew MacLeod amacleod@redhat.com
Wed Jun 23 14:27:01 GMT 2021


When we are dumping the rangers state, we tend to do it at the end when 
EVRP is shutting down.  The dumping routine is checking to see if the 
cache has an on-entry value or the edge generates a range before 
dumping, but when it does the actual dump, its calling range_on_edge 
which can go and do additional lookups. That late in the game, it can 
cause a trap in SCEV if a PHI node attempts to be rcalculated when a 
loop has been rewritten.

Instead, query the range_on_edge from the cache, which will only show 
information we know, and not cause additional lookups.

Bootstrap on x86_64-pc-linux-gnu with no regressions.  pushed.

Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Dump-should-be-read-only.-Do-not-trigger-new-lookups.patch
Type: text/x-patch
Size: 883 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210623/90525065/attachment.bin>


More information about the Gcc-patches mailing list