[all-commits] [llvm/llvm-project] 6580d8: [Support] Don't include <algorithm> in MathExtras.h

Nico Weber via All-commits all-commits at lists.llvm.org
Fri Apr 16 08:54:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6580d8a2b14d50b7e067dc86df6e5dd65703d147
      https://github.com/llvm/llvm-project/commit/6580d8a2b14d50b7e067dc86df6e5dd65703d147
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

  Changed paths:
    M llvm/include/llvm/Support/MathExtras.h

  Log Message:
  -----------
  [Support] Don't include <algorithm> in MathExtras.h

MathExtras.h is indirectly included in over 98% of LLVM's
translation units. It currently expands to over 1MB of stuff,
over which far more than half is due to <algorithm>. Since not
using <algorithm> is slightly less code, do that.

No behavior change.

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




More information about the All-commits mailing list