Commit 9e72bd67 by Abseil Team Committed by Copybara-Service

Remove redundant check of is_soo() while prefetching heap blocks.

PiperOrigin-RevId: 640620462
Change-Id: I72c0a7f0f549404ad8310b8cebd7dd491341390b
parent 49e0099a
...@@ -3887,7 +3887,7 @@ class raw_hash_set { ...@@ -3887,7 +3887,7 @@ class raw_hash_set {
// cache misses. This is intended to overlap with execution of calculating the // cache misses. This is intended to overlap with execution of calculating the
// hash for a key. // hash for a key.
void prefetch_heap_block() const { void prefetch_heap_block() const {
if (is_soo()) return; assert(!is_soo());
#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__) #if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
__builtin_prefetch(control(), 0, 1); __builtin_prefetch(control(), 0, 1);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment