[libcxx-commits] [PATCH] D122536: [libc++] Optimize `exception_ptr`, especially for the empty case

Fabian Wolff via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 26 15:05:02 PDT 2022


fwolff created this revision.
fwolff added reviewers: ldionne, Mordante.
fwolff added a project: libc++.
Herald added a project: All.
fwolff requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Fixes #44892 <https://github.com/llvm/llvm-project/issues/44892>. The example given there does indeed optimize away completely with my changes and `-O2`. Unfortunately, replacing the current out-of-line definitions with inline ones is an ABI break, so the change is complicated somewhat by the necessary preprocessor guards (I hope I haven't missed any).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122536

Files:
  libcxx/include/__config
  libcxx/include/exception
  libcxx/src/support/runtime/exception_pointer_cxxabi.ipp
  libcxx/src/support/runtime/exception_pointer_unimplemented.ipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122536.418422.patch
Type: text/x-patch
Size: 5798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220326/3144222c/attachment.bin>


More information about the libcxx-commits mailing list