diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-09-12 19:02:53 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-09-12 19:02:53 +0000 |
commit | 7c465a5f41f5e862bb6438a93c34fa089e5dd109 (patch) | |
tree | 26eb14949731a60e7304a78f285cd0805b4a7256 /llvm/lib/CodeGen/UnreachableBlockElim.cpp | |
parent | 5730bf04292dfeed06b3717a32b26acaa1690c69 (diff) | |
download | bcm5719-llvm-7c465a5f41f5e862bb6438a93c34fa089e5dd109.tar.gz bcm5719-llvm-7c465a5f41f5e862bb6438a93c34fa089e5dd109.zip |
Fix bitmask upper bounds check
Rather than checking KMP_CPU_SETSIZE, which doesn't exist when using Hwloc, we
use the get_max_proc() function which can vary based on the operating system.
For example on Windows with multiple processor groups, it might be the case that
the highest bit possible in the bitmask is not equal to the number of hardware
threads on the machine but something higher than that.
Differential Revision: https://reviews.llvm.org/D24206
llvm-svn: 281245
Diffstat (limited to 'llvm/lib/CodeGen/UnreachableBlockElim.cpp')
0 files changed, 0 insertions, 0 deletions