summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-09-12 19:02:53 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-09-12 19:02:53 +0000
commit7c465a5f41f5e862bb6438a93c34fa089e5dd109 (patch)
tree26eb14949731a60e7304a78f285cd0805b4a7256 /llvm/lib/ExecutionEngine
parent5730bf04292dfeed06b3717a32b26acaa1690c69 (diff)
downloadbcm5719-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/ExecutionEngine')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud