diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-01-16 14:05:10 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-01-16 14:05:10 -0500 |
commit | f04557374dd37a15842197ce075be600276d341d (patch) | |
tree | dc54b33a9cb4b53c4275ded3de83cbfdda67848c /src/ioq.c | |
parent | c6d6720c3026efb74092c021a06f8f2c6d36fb67 (diff) | |
download | bfs-f04557374dd37a15842197ce075be600276d341d.tar.xz |
ioq: Prefetch slots with a write intent
Diffstat (limited to 'src/ioq.c')
-rw-r--r-- | src/ioq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -387,7 +387,7 @@ static struct ioq_ent *ioq_slot_pop(struct ioqq *ioqq, ioq_slot *slot, bool bloc // slot is not full, this will prefetch an invalid address, but // experimentally this is worth it on both Intel (Alder Lake) // and AMD (Zen 2). - __builtin_prefetch((void *)(prev << 1)); + __builtin_prefetch((void *)(prev << 1), 1 /* write */); #endif // empty → skip(1) |