path oracle: Do not look back to the root oracle for killing defs.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 29 Oct 2021 14:25:47 +0000 (16:25 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 29 Oct 2021 15:57:34 +0000 (17:57 +0200)
commitdc173a433eed2d248f3fc50c8affe676a2604974
tree6565593cd98076b2b88ff239ecaa870472897ac5
parent4b3a325f07acebf47e82de227ce1d5ba62f5bcae
path oracle: Do not look back to the root oracle for killing defs.

Since registering a kill means removing all references to it from the
path oracle list, make sure we don't look back to the root oracle
either.

Tested on x86-64 Linux.

Co-authored-by: Andrew MacLeod <amacleod@redhat.com>
gcc/ChangeLog:

* value-relation.cc (path_oracle::killing_def): Add a
self-equivalence so we don't look to the root oracle.
gcc/value-relation.cc