]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove redundant check
authorRichard Biener <rguenther@suse.de>
Mon, 8 Jan 2024 07:15:51 +0000 (08:15 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 7 May 2024 12:19:34 +0000 (14:19 +0200)
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.

gcc/gimplify.cc

index 457b33a4293f7d10c2f4213bbb6dfe640200843a..7f94f5f50985b8dbade4e078c5243466907892ae 100644 (file)
@@ -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;
 }