diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-05-15 16:22:27 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-05-15 06:16:23 -0500 |
commit | 45b899b92f5762c15d435e58666f5eee18e73b40 (patch) | |
tree | 0f766267d2a15c0797280dff8fef7e5e7a17fd3a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9417d9fc38c81e1c13aec49f81fa7bf93c9a4bb6 (diff) | |
download | llvm-45b899b92f5762c15d435e58666f5eee18e73b40.zip llvm-45b899b92f5762c15d435e58666f5eee18e73b40.tar.gz llvm-45b899b92f5762c15d435e58666f5eee18e73b40.tar.bz2 |
[libc] Cache ownership of the shared buffer in the port
This patch adds another variable to cache cases where we know that we
own the buffer. This allows us to skip the atomic load on the inbox
because we already know its state. This is legal immediately after
opening a port, or when sending immediately after a recieve. This
caching nets a significant (~17%) speedup for the basic open, send,
recieve combination.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D150516
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions