aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-01-08 08:15:51 +0100
committerRichard Biener <rguenther@suse.de>2024-05-07 14:19:34 +0200
commitcc2f3e408ee095653e6658b3126efce717a5586e (patch)
tree112e3ed83955e08853d70011a3ef7041d4dc37eb /gcc
parente1f56c67a82172730c377a96a46e8d75445e6a48 (diff)
downloadgcc-cc2f3e408ee095653e6658b3126efce717a5586e.zip
gcc-cc2f3e408ee095653e6658b3126efce717a5586e.tar.gz
gcc-cc2f3e408ee095653e6658b3126efce717a5586e.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimplify.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index 457b33a..7f94f5f 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;
}