diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-08-21 06:42:54 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-08-21 06:43:38 -0500 |
commit | 6970920ca6ab318616a13df8967093de9dbedca2 (patch) | |
tree | 9d5b202095eeeeae07065e08ca2f5b4e78eba527 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 189f4aca68938b88f72beee9b792794837cde522 (diff) | |
download | llvm-6970920ca6ab318616a13df8967093de9dbedca2.zip llvm-6970920ca6ab318616a13df8967093de9dbedca2.tar.gz llvm-6970920ca6ab318616a13df8967093de9dbedca2.tar.bz2 |
[libc] Remove 'try_open' from the client interface
We previously provided the `try_open` facility to indicate if opening a
port failed. This is used on the server to continuously poll and quit if
there is no work. However the Client currently has no way to recover
from not finding a port and simply spins repeatedly. The abstraction
here costs us some resources. This patch changes the interface to only
allow `open` on the client side and merges the loops. This saves us a
branch and a good number of registers.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D158365
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions