[all-commits] [llvm/llvm-project] 1e35e9: [libc++] Disable tree invariant check in asserts mode

Hans via All-commits all-commits at lists.llvm.org
Tue Jul 4 06:42:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e35e93e30c25bf67d3038f3e227dc6be729743d
      https://github.com/llvm/llvm-project/commit/1e35e93e30c25bf67d3038f3e227dc6be729743d
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M libcxx/include/__tree

  Log Message:
  -----------
  [libc++] Disable tree invariant check in asserts mode

This is a follow-up to D153672 which removed the old debug mode and
moved many of those checks to the regular asserts mode.

The tree invariant check is too expensive for the regular asserts mode,
making element removal O(n) instead of O(log n), so disable it until
there is a new debug assert category it can be put in.

Differential revision: https://reviews.llvm.org/D154417




More information about the All-commits mailing list