commit | 3937e4042edcd6728f62ef527a9ead492c22228b | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Wed May 17 23:22:10 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Wed May 17 23:22:10 2017 +0000 |
tree | c2587c4836ffbd55a5d9c4f44eacf4b0293c932f | |
parent | 0817426586b988469c1122a6ce7752984f837bd8 [diff] |
[Statistics] Use Statistic::operator+= instead of adding and assigning separately. I believe this technically fixes a multithreaded race condition in this code. But my primary concern was as part of looking at removing the ability to treat Statistics like a plain unsigned. There are many weird operations on Statistics in the codebase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303314 91177308-0d34-0410-b5e6-96231b3b80d8