[Support][PPC] Fix bot failures due to cd53ded557c3
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 4 Aug 2020 13:30:51 +0000 (08:30 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 4 Aug 2020 14:00:49 +0000 (09:00 -0500)
commit62a933b72c5b060bcb2c7332d05082f002d6c65a
tree0f734509a2eb5e665ab004af0a6b02ede873672a
parent1c0a0dfa0236514fd1fbb1bccd8ad29f9d64e915
[Support][PPC] Fix bot failures due to cd53ded557c3

Commit https://reviews.llvm.org/rGcd53ded557c3 attempts to fix the
computation in computeHostNumPhysicalCores() to respect Affinity.
However, the GLIBC wrapper of the affinity system call fails with
a default size of cpu_set_t on systems that have more than 1024 CPUs.
This just fixes the computation on such large machines.
llvm/lib/Support/Host.cpp