[libcxx-commits] [PATCH] D133661: [libc++] Improve binary size when using __transaction

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Sep 11 02:36:40 PDT 2022


philnik added subscribers: joanahalili, hans, alexfh.
philnik added a comment.

@hans @alexfh @joanahalili Could you check whether this patch fixes the problems encountered in D128146 <https://reviews.llvm.org/D128146> (i.e. applying this patch shouldn't increase the binary size much)? Compiling

  #include <__utility/transaction.h>
  
  void do_something();
  void do_something_else();
  
  void func() {
    std::__transaction __guard([] { do_something(); });
    do_something_else();
    __guard.__complete();
  }

with `clang++ -std=c++2b -fno-exceptions -O3 ./transaction.cpp -c -g` shows a decrease of about 400bytes in binary size with this patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133661/new/

https://reviews.llvm.org/D133661



More information about the libcxx-commits mailing list