diff options
author | Abseil Team <absl-team@google.com> | 2024-06-04 19:18:06 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-06-04 19:18:57 -0700 |
commit | 29bd16cb925bd762ac7ca90e26ad044200ae0711 (patch) | |
tree | 03b2be43358384b7b7154d765ee1b6a9d2ee935e /absl | |
parent | 8777d4408904ae184593014e71ff8fc0bb3bdecd (diff) |
Remove redundant check of is_soo() while prefetching heap blocks.
PiperOrigin-RevId: 640359514
Change-Id: Ic321d23cad283425c686536ae7be04a490a950d5
Diffstat (limited to 'absl')
-rw-r--r-- | absl/container/internal/raw_hash_set.h | 2 |
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 2ea07e40..9ef9a6be 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 { - assert(!is_soo()); + if (is_soo()) return; #if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__) __builtin_prefetch(control(), 0, 1); #endif |