aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-07-13 00:51:43 +0000
committerNico Weber <nicolasweber@gmx.de>2015-07-13 00:51:43 +0000
commit0e80816fe88e1723fc48839e728c9517db267626 (patch)
tree3a2280e4abb431f679e5d4c403f822e3e1184ec0 /llvm/lib/Analysis/VectorUtils.cpp
parent3b68edd1416dcf53d1e2c6ca260055e941e6de47 (diff)
downloadllvm-0e80816fe88e1723fc48839e728c9517db267626.zip
llvm-0e80816fe88e1723fc48839e728c9517db267626.tar.gz
llvm-0e80816fe88e1723fc48839e728c9517db267626.tar.bz2
Fix lld tests with LLVM_ENABLE_THREADS disabled.
With LLVM_ENABLE_THREADS disabled, all the llvm code assumes that it runs on a single thread and doesn't use any mutexes. lld still spawned lots of threads in that case and called into llvm, assuming that llvm is thread-safe. As fix, let lld use only a single thread if LLVM_ENABLE_THREADS is disabled. I left in all the mutexes in lld. That means lld is a bit slower than necessary in single-thread mode, but that's probably worth the simpler code. llvm-svn: 242004
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
0 files changed, 0 insertions, 0 deletions