Dimitry Andric c3f7be36e8 Merge commit d989ffd10 from llvm git (by Dimitry Andric):
Implement computeHostNumHardwareThreads() for FreeBSD

  This retrieves CPU affinity via FreeBSD's cpuset(2) API, and makes
  LLVM respect affinity settings configured by the user via the
  cpuset(1) command.

  In particular, this allows to reduce the number of threads used on
  machines with high core counts, which can interact badly with
  parallelized build systems. This is particularly noticable with lld,
  which spawns lots of threads even for linking e.g. hello_world!

  This fix is related to PR48193, but does not adress the more
  fundamental problem, which is that LLVM by default grabs as many CPUs
  and/or threads as possible.

  Reviewed By: MaskRay

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

Originally by:	mjg
MFC after:	1 week
2020-12-03 19:29:18 +00:00
..
2020-11-26 17:39:51 +00:00
2020-11-20 06:02:31 +00:00
2020-03-29 02:40:03 +00:00
2020-10-24 15:58:42 +00:00
2020-12-01 15:53:12 +00:00
2020-01-25 21:16:45 +00:00
2020-10-16 17:03:27 +00:00
2020-10-24 17:08:59 +00:00
2020-08-22 20:52:02 +00:00
2020-02-19 17:09:08 +00:00
2020-07-10 19:58:07 +00:00
2020-06-24 01:51:05 +00:00
2020-06-17 10:42:20 +00:00
2020-08-24 18:13:44 +00:00
2020-06-22 07:46:24 +00:00
2020-08-07 08:41:14 +00:00
2020-06-17 11:57:48 +00:00
2020-10-22 01:05:34 +00:00
2020-10-27 23:03:15 +00:00
2020-06-09 05:43:51 +00:00