This is an archive of the discontinued LLVM Phabricator instance.

[libc] Drop RPC port count and index to 32-bit numbers
ClosedPublic

Authored by jhuber6 on Aug 15 2023, 6:53 AM.

Details

Summary

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.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 15 2023, 6:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 15 2023, 6:53 AM
jhuber6 requested review of this revision.Aug 15 2023, 6:53 AM
JonChesterfield accepted this revision.Aug 15 2023, 9:08 AM

It would probably be sensible to type some of these integers to detect passing them in the wrong order. Enum class.

This revision is now accepted and ready to land.Aug 15 2023, 9:08 AM
This revision was automatically updated to reflect the committed changes.