• Fangrui Song's avatar
    [Support] Simplify parallelForEach{,N} · 8e382ae9
    Fangrui Song authored
    * 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
    8e382ae9
Parallel.h 8.59 KB