Commit 29bd16cb by Abseil Team Committed by Copybara-Service

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

PiperOrigin-RevId: 640359514
Change-Id: Ic321d23cad283425c686536ae7be04a490a950d5
parent 8777d440
...@@ -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 {
assert(!is_soo()); if (is_soo()) return;
#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