https://gcc.gnu.org/g:cc2f3e408ee095653e6658b3126efce717a5586e
commit r15-275-gcc2f3e408ee095653e6658b3126efce717a5586e Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 8 08:15:51 2024 +0100 Remove redundant check operand_equal_p already has checking code to verify the hash is equal, avoid doing that again in gimplify_hasher::equal. * gimplify.cc (gimplify_hasher::equal): Remove redundant checking. Diff: --- gcc/gimplify.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index 457b33a4293..7f94f5f5098 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -19593,9 +19593,5 @@ gimplify_hasher::equal (const elt_t *p1, const elt_t *p2) if (!operand_equal_p (t1, t2, 0)) return false; - /* Only allow them to compare equal if they also hash equal; otherwise - results are nondeterminate, and we fail bootstrap comparison. */ - gcc_checking_assert (hash (p1) == hash (p2)); - return true; }