[libc-commits] [PATCH] D157980: [libc] Drop RPC port count and index to 32-bit numbers

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Aug 15 06:53:40 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, jdoerfert, tianshilei1992, sivachandra.
Herald added subscribers: libc-commits, arphaman.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

The port count and index into the ports was originally written as a
64-bit number. This was with an abundance of caution, however it's
highly unlikely that any configuration will excede a 32-bit number as
most machines  will require something in the low-thousands. Because GPUs
are functionally 32-bit in many of their operations this costs us some
extra time and registers to do the 64-bit operations. Doing this saves
us about four registers in most tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157980

Files:
  libc/src/__support/RPC/rpc.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157980.550315.patch
Type: text/x-patch
Size: 9039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230815/2b42ea79/attachment.bin>


More information about the libc-commits mailing list