aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2024-06-04 10:49:37 -0700
committerCopybara-Service <copybara-worker@google.com>2024-06-04 10:50:42 -0700
commit9645a2fb848516b3dec22afb60f4a7a860fe35d1 (patch)
tree0f8c8a31d8167ef389e52f8b2b5bb679d0c453cc
parent4953bbcd90368b333e8985cc87ca20db1fe8957c (diff)
downloadabseil-9645a2fb848516b3dec22afb60f4a7a860fe35d1.tar.gz
abseil-9645a2fb848516b3dec22afb60f4a7a860fe35d1.tar.bz2
abseil-9645a2fb848516b3dec22afb60f4a7a860fe35d1.zip
Remove redundant check of is_soo() while prefetching heap blocks.
PiperOrigin-RevId: 640208455 Change-Id: I4c2b7d3f1adad2078e8a5f805574f71c4d7743d4
-rw-r--r--absl/container/internal/raw_hash_set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 9ef9a6be..2ea07e40 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -3887,7 +3887,7 @@ class raw_hash_set {
// cache misses. This is intended to overlap with execution of calculating the
// hash for a key.
void prefetch_heap_block() const {
- if (is_soo()) return;
+ assert(!is_soo());
#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
__builtin_prefetch(control(), 0, 1);
#endif