summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-06-02 08:44:05 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-06-02 08:44:05 +0000
commit7ae684a8b48aee6bb67f1acd3221b458fb7cea05 (patch)
treea93d73f4d8fa11d3b0a0df7f22fa6da2b67c38a7 /llvm/unittests/Support/MathExtrasTest.cpp
parenta30f684a6728265dceedf391e795f0f054fb96cc (diff)
downloadbcm5719-llvm-7ae684a8b48aee6bb67f1acd3221b458fb7cea05.tar.gz
bcm5719-llvm-7ae684a8b48aee6bb67f1acd3221b458fb7cea05.zip
Switch statistics to use relaxed updates to a std::atomic.
This removes usage of the hacky, incorrect, and TSan-unfriendly home-grown atomics. It should actually be more efficient in some cases. Based on our existing usage of <atomic>, all of this is portably available AFAICT. One small challenge is initializing the stastic, but I've tried a comparable sample out on MSVC (the most likely to complain here) and it seems to work. Will have to watch the build bots of course. llvm-svn: 271504
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud