[all-commits] [llvm/llvm-project] 5f276d: [libc] Drop RPC port count and index to 32-bit num...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Aug 15 09:11:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f276d3d3360af72d4c2deafe2844f164cacbe7e
      https://github.com/llvm/llvm-project/commit/5f276d3d3360af72d4c2deafe2844f164cacbe7e
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M libc/src/__support/RPC/rpc.h

  Log Message:
  -----------
  [libc] Drop RPC port count and index to 32-bit numbers

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.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D157980




More information about the All-commits mailing list