[all-commits] [llvm/llvm-project] e851ae: scudo: Re-order Allocator fields for improved perf...

pcc via All-commits all-commits at lists.llvm.org
Mon Sep 28 11:52:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e851aeb0a5084d968d6384fbc2257bbe05dcdacb
      https://github.com/llvm/llvm-project/commit/e851aeb0a5084d968d6384fbc2257bbe05dcdacb
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2020-09-28 (Mon, 28 Sep 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h

  Log Message:
  -----------
  scudo: Re-order Allocator fields for improved performance. NFCI.

Move smaller and frequently-accessed fields near the beginning
of the data structure in order to improve locality and reduce
the number of instructions required to form an access to those
fields. With this change I measured a ~5% performance improvement on
BM_malloc_sql_trace_default on aarch64 Android devices (Pixel 4 and
DragonBoard 845c).

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




More information about the All-commits mailing list