diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-06-02 08:44:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-06-02 08:44:05 +0000 |
commit | 7ae684a8b48aee6bb67f1acd3221b458fb7cea05 (patch) | |
tree | a93d73f4d8fa11d3b0a0df7f22fa6da2b67c38a7 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | a30f684a6728265dceedf391e795f0f054fb96cc (diff) | |
download | bcm5719-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