]> git.ipfire.org Git - thirdparty/gcc.git/commit
Quicker relation check.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 8 Feb 2023 17:36:23 +0000 (12:36 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 26 Apr 2023 19:17:08 +0000 (15:17 -0400)
commitbf50499a14943b64f19bd72c60422683f7ecd0ee
treea58c08892041363a64d830b6de9cfb4dd97bbc34
parent40c7f943e882e8c5eccf45fc28146559f446764d
Quicker relation check.

If either of the SSA names in a comparison do not have any equivalences
or relations, we can short-circuit the check slightly.

* value-relation.cc (dom_oracle::query_relation): Check early for lack
of any relation.
* value-relation.h (equiv_oracle::has_equiv_p): New.
gcc/value-relation.cc
gcc/value-relation.h