Check for equivalence after merging relations.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 17 May 2022 01:39:30 +0000 (21:39 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 17 May 2022 15:43:32 +0000 (11:43 -0400)
commit6101a276c34b94f692206739d98aa7faf2e7b2ad
treef975c63b58602ab3f43a3c365cd044b561e5e906
parent61a6923e8917b6efcf349515a00a485dfd5b42e4
Check for equivalence after merging relations.

When registering a relation, we need to merge with any existing relation
before checking if it was an equivalence... otherwise it was not being
handled properly.

gcc/
PR tree-optimization/105458
* value-relation.cc (path_oracle::register_relation): Merge, then check
for equivalence.

gcc/testsuite/
* gcc.dg/pr105458.c: New.
gcc/testsuite/gcc.dg/pr105458.c [new file with mode: 0644]
gcc/value-relation.cc