[all-commits] [llvm/llvm-project] 8e382a: [Support] Simplify parallelForEach{, N}

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jan 23 10:35:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e382ae91b97161930a128e56774d6e1242b6514
      https://github.com/llvm/llvm-project/commit/8e382ae91b97161930a128e56774d6e1242b6514
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-01-23 (Sun, 23 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Support/Parallel.h
    M llvm/lib/Support/Parallel.cpp

  Log Message:
  -----------
  [Support] Simplify parallelForEach{,N}

* Merge parallel_for_each into parallelForEach (this removes 1 `Fn(...)` call)
* Change parallelForEach to use parallelForEachN
* Move parallelForEachN into Parallel.cpp

My x86-64 `lld` executable is 100KiB smaller.
No noticeable difference in performance.

Reviewed By: lattner

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




More information about the All-commits mailing list