[PATCH] D66822: Hardware cache line size builtins

Zoe Carver via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 27 13:18:36 PDT 2019


zoecarver added a comment.

> BTW, I note that facebook uses 128 bytes for x86

They also use 64 for arm which is interesting (the opposite of this patch).

Also, see this comment in the same snippet:

> We assume a cache line size of 64, so we use a cache line pair size of 128

Which would indicate that 64 is the correct number of bytes for x86. But maybe we should double that for `hardware_destructive_interference_size`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66822/new/

https://reviews.llvm.org/D66822





More information about the cfe-commits mailing list